blob: 7bf4cb28160f1fd1cc4c69be65fa2ce1db914046 (
plain)
1 # Description: Library for YUV scaling
2 # URL: https://chromium.googlesource.com/libyuv/libyuv/
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on: libjpeg-turbo
5
6 name=libyuv
7 version=1813
8 release=1
9 _commit=3aebf69d668177e7ee6dbbe0025e5c3dbb525ff2
10 source=(https://chromium.googlesource.com/libyuv/libyuv/+archive/$_commit.tar.gz)
11 renames=($name-$version.tar.gz)
12
13 build() {
14 sed -i 's|yuvconvert ${JPEG_LIBRARY}|${ly_lib_shared} ${JPEG_LIBRARY}|' CMakeLists.txt
15 cmake -S . -B build -G Ninja \
16 -D CMAKE_INSTALL_PREFIX=/usr \
17 -D CMAKE_INSTALL_LIBDIR=lib \
18 -D CMAKE_BUILD_TYPE=Release \
19 -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
20 -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
21 -Wno-dev
22
23 cmake --build build
24 DESTDIR=$PKG cmake --install build
25 }
|