diff options
Diffstat (limited to 'examples/recipes/mpfr/build.yml')
-rw-r--r-- | examples/recipes/mpfr/build.yml | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/examples/recipes/mpfr/build.yml b/examples/recipes/mpfr/build.yml new file mode 100644 index 0000000..619bec7 --- /dev/null +++ b/examples/recipes/mpfr/build.yml @@ -0,0 +1,59 @@ +meta: + version: '4.2.1' +tasks: + unpack: + fetch: + - name: '{{name}}-{{version}}.tar.xz' + sha256: '277807353a6726978996945af13e52829e3abd7a9a5b7fb2793894e18f1fcbb2' + run: | + tar xf {{dldir}}/{{name}}-{{version}}.tar.xz + + configure: + args: + host: 'platform' + parent: + task: 'unpack' + build_depends: + - recipe: 'toolchain' + task: 'build_depends' + depends: + - recipe: 'toolchain' + task: 'depends' + - recipe: 'gmp' + task: 'install' + run: | + mkdir {{name}}-build + cd {{name}}-build + ../{{name}}-{{version}}/configure \ + --build={{build.gnu_triplet}} \ + --host={{host.gnu_triplet}} \ + --prefix={{host.prefix}} + find -name config.log -delete + + compile: + args: + host: 'platform' + parent: + task: 'configure' + run: | + cd {{name}}-build + make + + install: + args: + host: 'platform' + parent: + task: 'compile' + output: + default: + runtime_depends: + - recipe: 'toolchain' + task: 'depends' + - recipe: 'gmp' + task: 'install' + run: | + cd {{name}}-build + make DESTDIR={{destdir}} install + rm {{destdir}}{{host.prefix}}/lib/*.a + rm {{destdir}}{{host.prefix}}/lib/*.la + |