pantry/projects/code.videolan.org/rist/librist/package.yml
Jacob Heider 95ad8bea0b
fix(librist)
closes #3228
2023-09-05 14:24:24 -04:00

38 lines
942 B
YAML

distributable:
url: https://code.videolan.org/rist/librist/-/archive/v{{version}}/librist-v{{version}}.tar.gz
strip-components: 1
versions:
gitlab: code.videolan.org:rist/librist
build:
dependencies:
tea.xyz/gx/cc: c99
mesonbuild.com: '>=0.47<1'
ninja-build.org: 1
working-directory:
build
script:
# POSIX compliance issue between the code and the environment
- run: |
if test "{{hw.platform}}" = "darwin"; then
sed -i.bak -e 's/generation = (buf\.st_mtim\.tv_sec << 32).*/generation = buf.st_mtime << 32;/' srp_shared.c
rm srp_shared.c.bak
fi
working-directory: ../tools
if: ^0.2.8
- meson .. --prefix={{prefix}} --libdir={{prefix}}/lib --buildtype=release
- ninja -v
- ninja install
env:
CC: clang
test:
script: |
ristsrppasswd test test
provides:
- bin/rist2rist
- bin/ristreceiver
- bin/ristsender
- bin/ristsrppasswd