diff options
Diffstat (limited to 'examples/recipes/zlib/build.yml')
-rw-r--r-- | examples/recipes/zlib/build.yml | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/examples/recipes/zlib/build.yml b/examples/recipes/zlib/build.yml new file mode 100644 index 0000000..3e72844 --- /dev/null +++ b/examples/recipes/zlib/build.yml @@ -0,0 +1,52 @@ +meta: + version: '1.3' +tasks: + unpack: + fetch: + - name: '{{name}}-{{version}}.tar.gz' + sha256: 'ff0ba4c292013dbc27530b3a81e1f9a813cd39de01ca5e0f8bf355702efa593e' + run: | + tar xf {{dldir}}/{{name}}-{{version}}.tar.gz + + configure: + args: + host: 'platform' + parent: + task: 'unpack' + build_depends: + - recipe: 'toolchain' + task: 'build_depends' + depends: + - recipe: 'toolchain' + task: 'depends' + run: | + mkdir {{name}}-build + cd {{name}}-build + ../{{name}}-{{version}}/configure \ + --prefix={{host.prefix}} + find -name configure.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' + run: | + cd {{name}}-build + make DESTDIR={{destdir}} install + rm {{destdir}}{{host.prefix}}/lib/*.a + |