opt/jasper/Pkgfile

39 lines
1.0 KiB
Plaintext
Raw Normal View History

2023-08-27 17:40:08 +02:00
# Description: Codec JPEG-2000 Part-1 standard
2021-05-08 07:06:03 +02:00
# URL: https://www.ece.uvic.ca/~frodo/jasper/
2023-08-27 17:40:08 +02:00
# Maintainer: Tim Biermann, tbier at posteo dot de
2021-05-08 07:06:03 +02:00
# Depends on: freeglut libjpeg-turbo xorg-libxmu
name=jasper
2024-01-12 23:42:11 +01:00
version=4.1.2
2022-03-05 17:10:30 +01:00
release=1
source=(https://github.com/jasper-software/jasper/releases/download/version-$version/jasper-$version.tar.gz)
2021-05-08 07:06:03 +02:00
build() {
2023-08-27 17:40:08 +02:00
local config="
2024-01-12 23:42:11 +01:00
-D CMAKE_INSTALL_PREFIX=/usr
-D CMAKE_INSTALL_LIBDIR=lib
-D CMAKE_BUILD_TYPE=Release
-D CMAKE_SKIP_BUILD_RPATH=ON
-D JAS_ENABLE_OPENGL=ON
-D JAS_ENABLE_LIBJPEG=ON
-D CMAKE_SKIP_RPATH=ON
-D OpenGL_GL_PREFERENCE=GLVND"
2021-05-08 07:06:03 +02:00
2023-08-27 17:40:08 +02:00
#build static lib
( cmake -S $name-$version -B build-static -G Ninja $config \
-D JAS_ENABLE_SHARED=OFF
cmake --build build-static
)
2021-05-08 07:06:03 +02:00
2023-08-27 17:40:08 +02:00
#build shared lib
( cmake -S $name-$version -B build-shared -G Ninja $config \
-D JAS_ENABLE_SHARED=ON
cmake --build build-shared
)
2021-05-08 07:06:03 +02:00
2023-08-27 17:40:08 +02:00
DESTDIR=$PKG cmake --install build-static
DESTDIR=$PKG cmake --install build-shared
2021-05-08 07:06:03 +02:00
2023-08-27 17:40:08 +02:00
rm -r $PKG/usr/share/doc
2021-05-08 07:06:03 +02:00
}