diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2023-10-02 01:11:29 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2023-10-02 01:11:29 +0200 |
commit | e739a7e89a6282f735d91daeb0c213efe9c0b077 (patch) | |
tree | c752019620f1454883dd1c2f7f464f1bf0b4d7f4 /examples/recipes/mpc@1.3.1.yml | |
parent | 2c21f689fc372aaf54601c041cd3e15f625093d6 (diff) | |
download | rebel-e739a7e89a6282f735d91daeb0c213efe9c0b077.tar rebel-e739a7e89a6282f735d91daeb0c213efe9c0b077.zip |
examples: update toolchain
Diffstat (limited to 'examples/recipes/mpc@1.3.1.yml')
-rw-r--r-- | examples/recipes/mpc@1.3.1.yml | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/examples/recipes/mpc@1.3.1.yml b/examples/recipes/mpc@1.3.1.yml new file mode 100644 index 0000000..835b0af --- /dev/null +++ b/examples/recipes/mpc@1.3.1.yml @@ -0,0 +1,57 @@ +tasks: + unpack: + fetch: + - name: '{{pn}}-{{pv}}.tar.gz' + sha256: 'ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8' + 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' + - recipe: 'mpfr' + task: 'install' + run: | + mkdir {{pn}}-build + cd {{pn}}-build + ../{{pn}}-{{pv}}/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 {{pn}}-build + make + + install: + args: + host: 'platform' + inherit: + task: 'compile' + output: + default: + runtime_depends: + - recipe: 'toolchain' + task: 'depends' + - recipe: 'mpfr' + task: 'install' + run: | + cd {{pn}}-build + make DESTDIR={{destdir}} install + rm {{destdir}}{{host.prefix}}/lib/*.a + rm {{destdir}}{{host.prefix}}/lib/*.la + |