smlinux/xorg/jasper/jasper.SMBuild
PktSurf 233f2d68a8 Upgraded xorg/freetype to 2.13.0
Discarded unused options in xorg/jasper
Upgraded xorg/libxkbcommon to 1.5.0
Added a fix for compiling xorg/xorg-server with gcc 12 and above
2023-06-07 22:28:03 +05:30

41 lines
998 B
Text
Executable file

# Maintainer: PktSurf <smlinux@pktsurf.in>
app=jasper
version=2.0.16
build=2sml
homepage="http://www.ece.uvic.ca/~mdadams/jasper/"
download="https://github.com/jasper-software/jasper/archive/refs/tags/version-$version.tar.gz"
requires="cmake libjpeg-turbo libxmu glew freeglut"
desc="free implementation of the JPEG-2000 standard"
prepbuilddir() {
mkandenterbuilddir
rm -rf $app-$version
tar xf $srcdir/$app-$version.tar.?z*
cd $app-$version
fixbuilddirpermissions
}
build() {
mkdir -p smbuild && cd smbuild
cmake .. \
-DCMAKE_INSTALL_PREFIX= \
-DCMAKE_INSTALL_LIBDIR=lib \
-DLATEX_FOUND=NO
# Fix fancy doc directory naming
sed -i "s@JasPer@jasper-$version@g" \
cmake_install.cmake \
doc/cmake_install.cmake
make
make install DESTDIR=$pkg
cp ../LICENSE $pkgdocs/
mkfinalpkg
}
sha512sums="
309ee468bb5fdf6ad26e60a8990c94726ee1c9cf2d744d7496026de2460d68a6dcbfb551c02c3cdcaddcbd2ff85e804b29fa9c2df75a6e4c7a215f96b3fd80db jasper-2.0.16.tar.lz
"