summaryrefslogtreecommitdiffstats
path: root/examples/recipes/gmp@6.2.1.yml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/recipes/gmp@6.2.1.yml')
-rw-r--r--examples/recipes/gmp@6.2.1.yml53
1 files changed, 53 insertions, 0 deletions
diff --git a/examples/recipes/gmp@6.2.1.yml b/examples/recipes/gmp@6.2.1.yml
new file mode 100644
index 0000000..0226fd9
--- /dev/null
+++ b/examples/recipes/gmp@6.2.1.yml
@@ -0,0 +1,53 @@
+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}}
+ 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'
+ run: |
+ cd {{pn}}-build
+ make DESTDIR={{destdir}} install
+ rm {{destdir}}{{host.prefix}}/lib/*.a
+ rm {{destdir}}{{host.prefix}}/lib/*.la
+