contrib/libde265/Pkgfile

25 lines
700 B
Plaintext
Raw Normal View History

2023-03-05 04:15:43 +01:00
# Description: h.265 video codec implementation
# URL: https://github.com/strukturag/libde265
# Maintainer: John McQuah, jmcquah at disroot dot org
# Depends on:
2023-11-22 08:43:32 +01:00
# Optional: libsdl2
2023-03-05 04:15:43 +01:00
name=libde265
2023-12-21 02:06:12 +01:00
version=1.0.15
2023-03-05 04:15:43 +01:00
release=1
source=(https://github.com/strukturag/$name/releases/download/v$version/$name-$version.tar.gz)
build() {
2023-11-22 08:43:32 +01:00
prt-get isinst libsdl2 && PKGMK_DE2SDL=ON || PKGMK_DE2SDL=OFF
cmake -B build -S $name-$version -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DENABLE_ENCODER=ON \
-DENABLE_SDL=$PKGMK_DE2SDL \
-DCMAKE_C_FLAGS="$CFLAGS"
2023-03-05 04:15:43 +01:00
2023-11-22 08:43:32 +01:00
ninja -C build -j ${JOBS:-1}
DESTDIR=$PKG ninja -C build install
2023-03-05 04:15:43 +01:00
}