# Contributor: Martin Schmidt # Maintainer: Patrycja Rosa pkgname=openh264 pkgver=2.3.1 pkgrel=0 options="!check" pkgdesc="OpenH264 is a codec library which supports H.264 encoding and decoding" url="https://github.com/cisco/openh264" arch="all" license="BSD-2-Clause" makedepends="nasm" subpackages="$pkgname-dev" source="$pkgname-$pkgver.tar.gz::https://github.com/cisco/openh264/archive/v$pkgver.tar.gz" build() { # This is a codec, don't override opt level. export CFLAGS=${CFLAGS/-Os/} export CXXFLAGS=${CXXFLAGS/-Os/} case "$CARCH" in x86*|aarch64|armv7) local asm="Yes" ;; *) local asm="No" ;; esac make ARCH="$CARCH" \ BUILDTYPE=Release \ USE_ASM=$asm \ ENABLEPIC=Yes \ HAVE_AVX2=No } package() { make DESTDIR="$pkgdir" PREFIX="/usr" install } sha512sums=" fd59c767794cdfb934d692d5929e4500d78606cbf1e403bc7c7dce048cc07e40daa0794357adb856d29479427a53460c76338e156b6bbeaa36139afcd603c8e1 openh264-2.3.1.tar.gz "