diff options
-rw-r--r-- | ffmpeg/APKBUILD | 11 | ||||
-rw-r--r-- | libomxil-bellagio/APKBUILD | 22 |
2 files changed, 30 insertions, 3 deletions
diff --git a/ffmpeg/APKBUILD b/ffmpeg/APKBUILD index a40c64b..2c82132 100644 --- a/ffmpeg/APKBUILD +++ b/ffmpeg/APKBUILD @@ -98,20 +98,25 @@ source="https://ffmpeg.org/releases/ffmpeg-$pkgver.tar.xz # add support for AV1 codec for all archies except armhf and armv7 # as aom is not available on them _aom=""; +_omx=""; case "$CARCH" in x86|x86_64|aarch64|ppc64le|s390x ) _aom="--enable-libaom"; makedepends="$makedepends aom-dev" ;; esac +case "$CARCH" in + aarch64|arm* ) + _omx="--enable-omx --enable-omx-rpi"; makedepends="$makedepends libomxil-bellagio-dev" ;; +esac + build() { local _dbg="--disable-debug" local _arch_opts="" [ -n "$DEBUG" ] && _dbg="--enable-debug" case "$CARCH" in - x86) _arch_opts="--disable-asm" ;; - aarch64|arm*) _arch_opts="- --enable-omx --enable-omx-rpi --enable-nonfree" ;; + x86) _asm="--disable-asm" ;; esac ./configure \ @@ -141,7 +146,7 @@ build() { --enable-vaapi \ --enable-vdpau \ --enable-libopus \ - $_arch_opts $_aom $_dbg + $_asm $_aom $_omx $_dbg make ${CC:-gcc} -o tools/qt-faststart $CFLAGS tools/qt-faststart.c make doc/ffmpeg.1 doc/ffplay.1 diff --git a/libomxil-bellagio/APKBUILD b/libomxil-bellagio/APKBUILD new file mode 100644 index 0000000..6dd0116 --- /dev/null +++ b/libomxil-bellagio/APKBUILD @@ -0,0 +1,22 @@ +# Contributor: Karel Kočí <cynerd@email.cz> +# Maintainer: Karel Kočí <cynerd@email.cz> +pkgname=libomxil-bellagio +pkgver=0.9.1 +pkgrel=0 +pkgdesc="Bellagio OpenMAX IL" +url="https://github.com/felipec/libomxil-bellagio" +arch="armhf aarch64" +license="LGPLv2.1" +options="!check" + +source="$pkgname-$pkgver.tar.gz::https://github.com/felipec/libomxil-bellagio/archive/$pkgver.tar.gz" + +build() { + ./configure + make +} + +package() { + make DESTDIR="$pkgdir" install +} +sha512sums="70fee42ea7a44eed728c0fede4b5e4350c88fa24e33e1a023e7a34d1fd86ca577d2d95b5ac234298cf08a7835ade6eb8a34deeb89e31ae48e6bde1ffbb613588 libomxil-bellagio-0.9.1.tar.gz" |