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