summaryrefslogtreecommitdiffstats
path: root/examples/e2fsprogs.yml
blob: d51a0f9d0013fe527295261ec62885ba69b16754 (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
60
61
62
63
64
65
66
67
68
69
tasks:
  unpack:
    fetch:
      - name: 'e2fsprogs-1.46.4.tar.xz'
        sha256: 'b11042533c1b1dcf17512f0da48e05b0c573dada1dd8b762864d10f4dc399713'
    run: |
      tar xf {{dldir}}/e2fsprogs-1.46.4.tar.xz

  configure:
    args:
      host: 'platform'
    inherit:
      task: 'unpack'
    build_depends:
      - recipe: 'toolchain'
        task: 'build_depends'
    depends:
      - recipe: 'toolchain'
        task: 'depends'
    run: |
      export CC={{host.cross_compile}}gcc
      export CXX={{host.cross_compile}}g++
      export AR={{host.cross_compile}}ar
      export NM={{host.cross_compile}}nm
      export RANLIB={{host.cross_compile}}ranlib
      export STRIP={{host.cross_compile}}strip

      mkdir e2fsprogs-build
      cd e2fsprogs-build
      ../e2fsprogs-1.46.4/configure \
        --build={{build.gnu_triplet}} \
        --host={{host.gnu_triplet}} \
        --prefix={{host.prefix}}

  compile:
    args:
      host: 'platform'
    inherit:
      task: 'configure'
    build_depends:
      - recipe: 'toolchain'
        task: 'build_depends'
    depends:
      - recipe: 'toolchain'
        task: 'depends'
    run: |
      cd e2fsprogs-build
      make -j8

  install:
    args:
      host: 'platform'
    inherit:
      task: 'compile'
    build_depends:
      - recipe: 'toolchain'
        task: 'build_depends'
    depends:
      - recipe: 'toolchain'
        task: 'depends'
    output:
      default:
        runtime_depends:
          - recipe: 'toolchain'
            task: 'depends'
    run: |
      cd e2fsprogs-build
      make DESTDIR={{destdir}} install