smlinux/gtk/openjpeg/smbuild
PktSurf 05e903aace Added sysconfdir build option to gtk/dbus-glib
Upgraded gtk/openjpeg to 2.5.2
Upgraded poppler to 24.02.0
2024-11-05 17:13:51 +05:30

36 lines
823 B
Bash

# Maintainer: PktSurf <smlinux@pktsurf.in>
app=openjpeg
version=2.5.2
build=1sml
homepage="https://github.com/uclouvain/openjpeg"
download="https://github.com/uclouvain/openjpeg/archive/refs/tags/v$version.tar.gz"
desc="An open source JPEG 2000 codec"
requires="libpng lcms2"
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=/usr \
-DCMAKE_INSTALL_LIBDIR=lib \
-DBUILD_STATIC_LIBS=OFF
make
make install DESTDIR=$pkg
cp ../LICENSE $pkgdocs/
mkfinalpkg
}
sha512sums="
00c9d43d3b0c500e79e2f8986b1d54d811ba3adb92766521831fbf2003577df5edbf7019027a3029f6c690d0eac5d834de41809bca10c7aac6040cf775847395 openjpeg-2.5.2.tar.lz
"