diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2021-11-03 17:15:36 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2021-11-03 17:15:36 +0100 |
commit | c40a4dcdcf46a0c01c97cf294384088b761d1ddf (patch) | |
tree | 2c89978f7484dd01b475ca2e67a5e01cb008e84f /examples/recipes/mpc@1.2.1.yml | |
parent | 272a73cae03d7c5ae22ff94b935a1d37f437ebef (diff) | |
download | rebel-c40a4dcdcf46a0c01c97cf294384088b761d1ddf.tar rebel-c40a4dcdcf46a0c01c97cf294384088b761d1ddf.zip |
examples: move version number to filename
Diffstat (limited to 'examples/recipes/mpc@1.2.1.yml')
-rw-r--r-- | examples/recipes/mpc@1.2.1.yml | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/examples/recipes/mpc@1.2.1.yml b/examples/recipes/mpc@1.2.1.yml new file mode 100644 index 0000000..f5afb74 --- /dev/null +++ b/examples/recipes/mpc@1.2.1.yml @@ -0,0 +1,57 @@ +tasks: + unpack: + fetch: + - name: '{{pn}}-{{pv}}.tar.gz' + sha256: '17503d2c395dfcf106b622dc142683c1199431d095367c6aacba6eec30340459' + 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 + |