diff options
Diffstat (limited to 'examples/recipes/zlib@1.2.11.yml')
-rw-r--r-- | examples/recipes/zlib@1.2.11.yml | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/examples/recipes/zlib@1.2.11.yml b/examples/recipes/zlib@1.2.11.yml new file mode 100644 index 0000000..099b80c --- /dev/null +++ b/examples/recipes/zlib@1.2.11.yml @@ -0,0 +1,50 @@ +tasks: + unpack: + fetch: + - name: '{{pn}}-{{pv}}.tar.gz' + sha256: 'c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1' + run: | + tar xf {{dldir}}/{{pn}}-{{pv}}.tar.gz + + configure: + args: + host: 'platform' + inherit: + task: 'unpack' + build_depends: + - recipe: 'toolchain' + task: 'build_depends' + depends: + - recipe: 'toolchain' + task: 'depends' + run: | + mkdir {{pn}}-build + cd {{pn}}-build + ../{{pn}}-{{pv}}/configure \ + --prefix={{host.prefix}} + find -name configure.log -delete + + compile: + args: + host: 'platform' + inherit: + task: 'configure' + run: | + cd {{pn}}-build + make + + install: + args: + host: 'platform' + inherit: + task: 'compile' + output: + default: + runtime_depends: + - recipe: 'toolchain' + task: 'depends' + run: | + cd {{pn}}-build + make DESTDIR={{destdir}} install + rm {{destdir}}{{host.prefix}}/lib/*.a + |