# Description: Library for YUV scaling # URL: https://chromium.googlesource.com/libyuv/libyuv/ # Maintainer: Tim Biermann, tbier at posteo dot de # Depends on: libjpeg-turbo name=libyuv version=1904 release=1 _commit=ccdf870348764e4b77fa3b56accb2a896a901bad # https://chromium.googlesource.com/libyuv/libyuv/+archive/$_commit.tar.gz source=(https://crux.nu/files/distfiles/libyuv-$version.tar.gz 0001-CMakeLists.txt-Apply-SONAME-and-multiarch.patch 0003-CMakeLists.txt-Install-missing-yuvconstants-binary.patch 0004-CMakeLists.txt-Do-not-enable-NEON-for-armel-armhf.patch) renames=($name-$version.tar.gz SKIP SKIP SKIP) build() { patch -Np1 -i $SRC/0001-CMakeLists.txt-Apply-SONAME-and-multiarch.patch patch -Np1 -i $SRC/0003-CMakeLists.txt-Install-missing-yuvconstants-binary.patch patch -Np1 -i $SRC/0004-CMakeLists.txt-Do-not-enable-NEON-for-armel-armhf.patch sed -i 's|yuvconvert ${JPEG_LIBRARY}|${ly_lib_shared} ${JPEG_LIBRARY}|' CMakeLists.txt cmake -S . -B build -G Ninja \ -D CMAKE_INSTALL_PREFIX=/usr \ -D CMAKE_INSTALL_LIBDIR=lib \ -D CMAKE_BUILD_TYPE=Release \ -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \ -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \ -D UNIT_TEST=OFF \ -Wno-dev cmake --build build DESTDIR=$PKG cmake --install build }