summaryrefslogtreecommitdiffstats
path: root/examples/recipes/zlib@1.3.yml
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2023-10-02 01:11:29 +0200
committerMatthias Schiffer <mschiffer@universe-factory.net>2023-10-02 01:11:29 +0200
commite739a7e89a6282f735d91daeb0c213efe9c0b077 (patch)
treec752019620f1454883dd1c2f7f464f1bf0b4d7f4 /examples/recipes/zlib@1.3.yml
parent2c21f689fc372aaf54601c041cd3e15f625093d6 (diff)
downloadrebel-e739a7e89a6282f735d91daeb0c213efe9c0b077.tar
rebel-e739a7e89a6282f735d91daeb0c213efe9c0b077.zip
examples: update toolchain
Diffstat (limited to 'examples/recipes/zlib@1.3.yml')
-rw-r--r--examples/recipes/zlib@1.3.yml50
1 files changed, 50 insertions, 0 deletions
diff --git a/examples/recipes/zlib@1.3.yml b/examples/recipes/zlib@1.3.yml
new file mode 100644
index 0000000..0102e74
--- /dev/null
+++ b/examples/recipes/zlib@1.3.yml
@@ -0,0 +1,50 @@
+tasks:
+ unpack:
+ fetch:
+ - name: '{{pn}}-{{pv}}.tar.gz'
+ sha256: 'ff0ba4c292013dbc27530b3a81e1f9a813cd39de01ca5e0f8bf355702efa593e'
+ 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
+