kind: autotools
depends:
- core.bst
sources:
- kind: git
  url: upstream:libmad-tarball
  track: baserock/0.15.1b-gstreamer-sdk-fork
  ref: f2b21c41aef22e81b605afe96e1e6ef1bea0cfdc
config:
  configure-commands:
  - |
    OPTS=
    case %{arch} in
        mips64*)  ARCH_FLAGS="--enable-fpm=64bit" ;;
    esac
    ./configure --prefix="%{prefix}" --sysconfdir=/etc $ARCH_FLAGS
