mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
aur/ffmpeg-shinobi to 4.3.2-3
Use if/elfi for CARCH checks
This commit is contained in:
parent
72c196af31
commit
61a41b7332
1 changed files with 11 additions and 3 deletions
|
@ -6,12 +6,15 @@
|
||||||
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
|
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
|
||||||
# Contributor: Paul Mattal <paul@archlinux.org>
|
# Contributor: Paul Mattal <paul@archlinux.org>
|
||||||
|
|
||||||
|
# ALARM:
|
||||||
|
# - remove lto from building
|
||||||
|
|
||||||
buildarch=28
|
buildarch=28
|
||||||
|
|
||||||
pkgname=ffmpeg-shinobi
|
pkgname=ffmpeg-shinobi
|
||||||
_pkgname=ffmpeg
|
_pkgname=ffmpeg
|
||||||
pkgver=4.3.2
|
pkgver=4.3.2
|
||||||
pkgrel=2
|
pkgrel=3
|
||||||
pkgdesc='FFmpeg from the 4.3 release branch for use with Shinobi'
|
pkgdesc='FFmpeg from the 4.3 release branch for use with Shinobi'
|
||||||
arch=(x86_64 aarch64 armv6h armv7h)
|
arch=(x86_64 aarch64 armv6h armv7h)
|
||||||
url=https://ffmpeg.org/
|
url=https://ffmpeg.org/
|
||||||
|
@ -181,8 +184,13 @@ build() {
|
||||||
--enable-version3
|
--enable-version3
|
||||||
)
|
)
|
||||||
|
|
||||||
[[ $CARCH == "armv7h" || $CARCH == "aarch64" ]] && _args+=('--host-cflags="-fPIC"' --enable-librsvg)
|
if [[ $CARCH == "x86_64" ]]; then
|
||||||
[[ $CARCH == "armv6h" || $CARCH == 'arm' ]] && _args+=('--extra-libs="-latomic"' --enable-librsvg)
|
_args+=(--enable-libaom --enable-libmfx --enable-librav1e --enable-libvmaf --enable-nvdec --enable-nvenc)
|
||||||
|
elif [[ $CARCH == "armv7h" || $CARCH == "aarch64" ]]; then
|
||||||
|
_args+=('--host-cflags="-fPIC"' --enable-librsvg)
|
||||||
|
elif [[ $CARCH == "armv6h" || $CARCH == "arm" ]]; then
|
||||||
|
_args+=('--extra-libs="-latomic"' --enable-librsvg)
|
||||||
|
fi
|
||||||
|
|
||||||
./configure "${_args[@]}"
|
./configure "${_args[@]}"
|
||||||
make
|
make
|
||||||
|
|
Loading…
Reference in a new issue