2019-03-19 18:10:12 +11:00
|
|
|
# Description: An open source JPEG 2000 codec.
|
|
|
|
# URL: https://github.com/uclouvain/openjpeg
|
2023-08-13 09:37:20 +02:00
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2019-03-19 18:10:12 +11:00
|
|
|
# Depends on: lcms2 libpng
|
|
|
|
|
|
|
|
name=openjpeg2
|
2024-02-28 21:26:59 +01:00
|
|
|
version=2.5.2
|
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() {
|
2023-08-17 19:18:12 +02:00
|
|
|
cmake -S openjpeg-$version -B build -G Ninja \
|
2023-08-13 09:37:20 +02:00
|
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
2024-02-27 22:18:16 +01:00
|
|
|
-D CMAKE_INSTALL_LIBDIR=lib \
|
2023-08-13 09:37:20 +02:00
|
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
|
|
|
-Wno-dev
|
2019-03-19 18:10:12 +11:00
|
|
|
|
2023-08-13 09:37:20 +02:00
|
|
|
cmake --build build
|
|
|
|
DESTDIR=$PKG cmake --install build
|
2019-03-19 18:10:12 +11:00
|
|
|
}
|