opt/jasper/Pkgfile

39 lines
980 B
Plaintext
Raw Normal View History

2021-05-08 07:06:03 +02:00
# Description: Codec JPEG-2000 Part-1 standard.
# URL: https://www.ece.uvic.ca/~frodo/jasper/
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: freeglut libjpeg-turbo xorg-libxmu
name=jasper
2022-11-06 09:16:17 +01:00
version=4.0.0
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() {
local config="
-D CMAKE_INSTALL_PREFIX=/usr
-D CMAKE_INSTALL_LIBDIR=lib
-D CMAKE_BUILD_TYPE=Release
2022-03-05 17:10:30 +01:00
-D CMAKE_SKIP_BUILD_RPATH=ON
2021-05-08 07:06:03 +02:00
-D JAS_ENABLE_OPENGL=ON
-D JAS_ENABLE_LIBJPEG=ON
-D CMAKE_SKIP_RPATH=ON
-D OpenGL_GL_PREFERENCE=GLVND"
#build static lib
2022-03-05 21:46:13 +01:00
( cmake -S $name-$version -B build-static -G Ninja $config \
2022-03-05 17:10:30 +01:00
-D JAS_ENABLE_SHARED=OFF
cmake --build build-static
2021-05-08 07:06:03 +02:00
)
#build shared lib
2022-03-05 21:46:13 +01:00
( cmake -S $name-$version -B build-shared -G Ninja $config \
2022-03-05 17:10:30 +01:00
-D JAS_ENABLE_SHARED=ON
cmake --build build-shared
2021-05-08 07:06:03 +02:00
)
2022-03-05 17:10:30 +01:00
DESTDIR=$PKG cmake --install build-static
DESTDIR=$PKG cmake --install build-shared
2021-05-08 07:06:03 +02:00
rm -r $PKG/usr/share/doc
}