contrib/openjpeg2/Pkgfile

24 lines
686 B
Plaintext
Raw Normal View History

2019-03-19 18:10:12 +11:00
# Description: An open source JPEG 2000 codec.
# URL: https://github.com/uclouvain/openjpeg
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: lcms2 libpng
name=openjpeg2
2019-05-20 20:42:46 +10:00
version=2.3.1
2019-03-19 18:10:12 +11:00
release=1
2019-05-20 20:42:46 +10:00
source=(https://github.com/uclouvain/openjpeg/archive/v$version/openjpeg-$version.tar.gz)
2019-03-19 18:10:12 +11:00
build() {
2020-11-07 16:54:22 +00:00
[[ -e /usr/bin/ninja ]] && PKGMK_OJPG2_OPTIONS=' -GNinja'
cmake -Sopenjpeg-$version -Bbuild $PKGMK_OJPG2_OPTIONS \
-DCMAKE_INSTALL_PREFIX=/usr \
2019-03-19 18:10:12 +11:00
-DCMAKE_BUILD_TYPE=Release \
2020-11-07 16:54:22 +00:00
-DCMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS -DNDEBUG" \
-DCMAKE_C_FLAGS_RELEASE="$CFLAGS -DNDEBUG" \
-Wno-dev
2019-03-19 18:10:12 +11:00
2020-11-07 16:54:22 +00:00
# cmake --build/install fails
make -C build
make DESTDIR=$PKG -C build install
2019-03-19 18:10:12 +11:00
}