diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2021-10-02 23:26:34 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2021-10-02 23:26:34 +0200 |
commit | 24c5dde75192a2358dca2b16ef3a79079e4da504 (patch) | |
tree | 7046d8e1982d7ee57722ce94f1570bc78d685472 /examples | |
parent | 87ce3429acc0d9fde5773b82e04325189f3aeb42 (diff) | |
download | rebel-24c5dde75192a2358dca2b16ef3a79079e4da504.tar rebel-24c5dde75192a2358dca2b16ef3a79079e4da504.zip |
examples: add recipes for zlib, gmp, mpfr and mpc
These are dependencies of gcc.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/gmp.yml | 54 | ||||
-rw-r--r-- | examples/mpc.yml | 58 | ||||
-rw-r--r-- | examples/mpfr.yml | 58 | ||||
-rw-r--r-- | examples/zlib.yml | 51 |
4 files changed, 221 insertions, 0 deletions
diff --git a/examples/gmp.yml b/examples/gmp.yml new file mode 100644 index 0000000..da49878 --- /dev/null +++ b/examples/gmp.yml @@ -0,0 +1,54 @@ +meta: + version: '6.2.1' +tasks: + unpack: + fetch: + - name: '{{pn}}-{{pv}}.tar.lz' + sha256: '2c7f4f0d370801b2849c48c9ef3f59553b5f1d3791d070cffb04599f9fc67b41' + run: | + tar xf {{dldir}}/{{pn}}-{{pv}}.tar.lz + + 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 \ + --build={{build.gnu_triplet}} \ + --host={{host.gnu_triplet}} \ + --prefix={{host.prefix}} + + compile: + args: + host: 'platform' + inherit: + task: 'configure' + run: | + cd {{pn}}-build + make -j8 + + 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 + rm {{destdir}}{{host.prefix}}/lib/*.la + diff --git a/examples/mpc.yml b/examples/mpc.yml new file mode 100644 index 0000000..4de8d05 --- /dev/null +++ b/examples/mpc.yml @@ -0,0 +1,58 @@ +meta: + version: '1.2.1' +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}} + + compile: + args: + host: 'platform' + inherit: + task: 'configure' + run: | + cd {{pn}}-build + make -j8 + + 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 + diff --git a/examples/mpfr.yml b/examples/mpfr.yml new file mode 100644 index 0000000..c2341f7 --- /dev/null +++ b/examples/mpfr.yml @@ -0,0 +1,58 @@ +meta: + version: '4.1.0' +tasks: + unpack: + fetch: + - name: '{{pn}}-{{pv}}.tar.xz' + sha256: '0c98a3f1732ff6ca4ea690552079da9c597872d30e96ec28414ee23c95558a7f' + run: | + tar xf {{dldir}}/{{pn}}-{{pv}}.tar.xz + + configure: + args: + host: 'platform' + inherit: + task: 'unpack' + build_depends: + - recipe: 'toolchain' + task: 'build_depends' + depends: + - recipe: 'toolchain' + task: 'depends' + - recipe: 'gmp' + task: 'install' + run: | + mkdir {{pn}}-build + cd {{pn}}-build + ../{{pn}}-{{pv}}/configure \ + --build={{build.gnu_triplet}} \ + --host={{host.gnu_triplet}} \ + --prefix={{host.prefix}} + + compile: + args: + host: 'platform' + inherit: + task: 'configure' + run: | + cd {{pn}}-build + make -j8 + + install: + args: + host: 'platform' + inherit: + task: 'compile' + output: + default: + runtime_depends: + - recipe: 'toolchain' + task: 'depends' + - recipe: 'gmp' + task: 'install' + run: | + cd {{pn}}-build + make DESTDIR={{destdir}} install + rm {{destdir}}{{host.prefix}}/lib/*.a + rm {{destdir}}{{host.prefix}}/lib/*.la + diff --git a/examples/zlib.yml b/examples/zlib.yml new file mode 100644 index 0000000..d84451e --- /dev/null +++ b/examples/zlib.yml @@ -0,0 +1,51 @@ +meta: + version: '1.2.11' +tasks: + unpack: + fetch: + - name: '{{pn}}-{{pv}}.tar.gz' + sha256: 'c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1' + 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}} + + compile: + args: + host: 'platform' + inherit: + task: 'configure' + run: | + cd {{pn}}-build + make -j8 + + 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 + |