summaryrefslogtreecommitdiffstats
path: root/examples/recipes/mpfr.yml
blob: 61642acd17bdffdd7cc3da521ab7a03df4f224d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
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}}
      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: 'gmp'
            task: 'install'
    run: |
      cd {{pn}}-build
      make DESTDIR={{destdir}} install
      rm {{destdir}}{{host.prefix}}/lib/*.a
      rm {{destdir}}{{host.prefix}}/lib/*.la