summaryrefslogtreecommitdiff
path: root/svt-hevc/Pkgfile
blob: b59f2316c481f53af4cffdf31e91b9d77fa484f7 (plain)
    1 # Description: SVT HEVC encoder
    2 # URL: https://github.com/OpenVisualCloud/SVT-HEVC
    3 # Maintainer: Tim Biermann, tbier at posteo dot de
    4 # Depends on: cmake yasm
    5 
    6 name=svt-hevc
    7 version=1.5.1
    8 release=1
    9 source=(https://github.com/OpenVisualCloud/SVT-HEVC/archive/v$version/$name-$version.tar.gz)
   10 
   11 build() {
   12   prt-get isinst ninja && PKGMK_SVTHEVC+=' -G Ninja'
   13 
   14   export LDFLAGS="$LDFLAGS -Wl,-z,noexecstack"
   15 
   16   cmake -S SVT-HEVC-$version -B build $PKGMK_SVTHEVC \
   17     -D CMAKE_INSTALL_PREFIX=/usr \
   18     -D CMAKE_INSTALL_LIBDIR=lib \
   19     -D CMAKE_BUILD_TYPE=Release \
   20     -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
   21     -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
   22     -D BUILD_SHARED_LIBS=ON \
   23     -D NATIVE=OFF \
   24     -Wno-dev
   25   cmake --build build
   26   DESTDIR=$PKG cmake --install build
   27 }

Generated by cgit