smlinux/gtk/openjpeg/smbuild
PktSurf 9d657e0a1d Upgraded base/perl to 5.38.0
Renamed .SMBuild files to smbuild for simplicity
Added musl-fts, musl-obstack, glslang, python-glad, libptytty, libmilter, elfutils and fuse to base section build list
Discarded fuse2 and fuse3 from base section
Temporarily discarded slapt-get, syslinux, p7zip, acpid, libelf-compat, gnu-eif, libtirpc, mozilla-nss,
lua53, qpdf, kernel-source and signify from base section build list
Disabled nls and made amends to base/e2fsprogs
Upgraded base/git to 2.46.2
Upgraded extra/gnumeric to 1.12.57
Disabled nls in base/gnutls, extra/dia
Disabled a patch and made amends in base/llvm
Fixed configure.local file in base/mandoc
Upgraded base/rust to 1.79
Fixed a ton of build files to use build prefix as /usr and miscellaneous changes
Discarded extra/bluez,blueman,scrcpy,adafruit-io
Added tomb to extra
Added new build option to extra/libass
Upgraded extra/mpv to 0.37.0
Disabled tests in gtk/gdk-pixbuf
Upgraded gtk/goffice to 0.10.57
Added gtk-doc to gtk section
Fixed build options in gtk/gtk2
Added new patches to gtk/gtk3
Added gtksourceview to gtk section
Added vulkan-headers to xorg section
Upgraded xorg/mesa to 23.1.9
Added libplacebo to xorg section
Fixed build stuff in xorg/glew
2024-10-29 20:25:20 +05:30

43 lines
1.1 KiB
Text

# Maintainer: PktSurf <smlinux@pktsurf.in>
app=openjpeg
version=2.3.1
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
applypatch $srcdir/openjpeg2-remove-thirdparty.patch
}
build() {
mkdir -p smbuild && cd smbuild
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DOPENJPEG_INSTALL_LIB_DIR="lib" \
-DBUILD_JPWL:BOOL=ON \
-DBUILD_MJ2:BOOL=ON \
-DBUILD_JPIP:BOOL=ON \
-DBUILD_JP3D:BOOL=ON \
-DBUILD_STATIC_LIBS=OFF
make
make install DESTDIR=$pkg
cp ../LICENSE $pkgdocs/
mkfinalpkg
}
sha512sums="
e7e9c359ba1e8af5d9eba3fdebcac42b829ba96939f47d33ec484304684782a16f08d8b5de9378c37a95e7dc05b6d0d1b79801eae8fe38129758a21b4547904e openjpeg-2.3.1.tar.lz
b328a994440b14255faa8b01f48d46ab06ad36ca4b940cf5cf5ec09441f470760e51724ac568af68129c296abcb867508f200020d15af6591d80ca319d8daccc openjpeg2-remove-thirdparty.patch
"