pantry/projects/sourceforge.net/faad2/package.yml

40 lines
909 B
YAML
Raw Normal View History

distributable:
url: https://github.com/knik0/faad2/archive/refs/tags/{{version}}.tar.gz
strip-components: 1
versions:
github: knik0/faad2
build:
dependencies:
2023-11-07 22:31:54 +03:00
cmake.org: '*'
gnu.org/autoconf: '*'
gnu.org/automake: '*'
gnu.org/libtool: '*'
linux:
gnu.org/gcc: '*'
script:
2023-11-07 22:31:54 +03:00
- run: |
./bootstrap
./configure $CONFIGURE_ARGS
make --jobs {{ hw.concurrency }} install
if: <2.11
- run: |
cmake .. $CMAKE_ARGS
cmake --build .
cmake --install .
working-directory: build
if: '>=2.11'
env:
CONFIGURE_ARGS:
- --disable-debug
- --disable-dependency-tracking
- --prefix="{{prefix}}"
- --libdir="{{prefix}}/lib"
2023-11-07 22:31:54 +03:00
CMAKE_ARGS:
- -DCMAKE_INSTALL_PREFIX="{{prefix}}"
provides:
- bin/faad
test:
script:
- faad -h > output.txt || true
- cat output.txt | grep infile.mp4