1
0
forked from ports/contrib

25 lines
724 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
2020-12-31 11:37:35 +00:00
version=2.4.0
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-08 12:11:28 +00:00
# cmake --build/install fails, so don't offer ninja right now
#[[ -e /usr/bin/ninja ]] && PKGMK_OJPG2+=' -G Ninja'
cmake -S openjpeg-$version -B build $PKGMK_OJPG2 \
-D CMAKE_INSTALL_PREFIX=/usr \
-D CMAKE_BUILD_TYPE=Release \
2020-12-06 23:59:47 +00:00
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
2020-11-07 16:54:22 +00:00
-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
}