distributable:
  url: https://downloads.sourceforge.net/project/opencore-amr/fdk-aac/fdk-aac-{{version}}.tar.gz
  strip-components: 1
versions:
  url: https://sourceforge.net/projects/opencore-amr/files/fdk-aac/
  match: /fdk-aac-\d+\.\d+\.\d+\.tar\.gz/
  strip:
    - /^fdk-aac-/
    - /\.tar\.gz/
build:
  dependencies:
    linux:
      gnu.org/gcc: '*'
  script:
    - ./configure $ARGS
    - make --jobs {{ hw.concurrency }} install
  env:
    ARGS:
      - --disable-dependency-tracking
      - --prefix={{prefix}}
      - --enable-example
provides:
  - bin/aac-enc
test:
  script:
    - aac-enc test.wav test.aac
    - ls | grep test.aac
