summaryrefslogtreecommitdiffstats
path: root/examples/recipes/zlib
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2024-04-04 01:13:09 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2024-04-04 01:16:43 +0200
commit1896ea04204b8086a4f25e257dc5605e5505d768 (patch)
tree694b5298958c0152ce4fe58c42f864980fd6b9df /examples/recipes/zlib
parentaa914e75251af3f9691be621a8c266320158bace (diff)
downloadrebel-1896ea04204b8086a4f25e257dc5605e5505d768.tar
rebel-1896ea04204b8086a4f25e257dc5605e5505d768.zip
driver: recipe: move each recipe into a separate directory
Diffstat (limited to 'examples/recipes/zlib')
-rw-r--r--examples/recipes/zlib/build.yml52
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..65c0d19
--- /dev/null
+++ b/examples/recipes/zlib/build.yml
@@ -0,0 +1,52 @@
+meta:
+ version: '1.3'
+tasks:
+ unpack:
+ fetch:
+ - name: '{{basename}}-{{version}}.tar.gz'
+ sha256: 'ff0ba4c292013dbc27530b3a81e1f9a813cd39de01ca5e0f8bf355702efa593e'
+ run: |
+ tar xf {{dldir}}/{{basename}}-{{version}}.tar.gz
+
+ 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 \
+ --prefix={{host.prefix}}
+ find -name configure.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
+