# SliTaz package receipt. PACKAGE="openjpeg" VERSION="1.5.2" CATEGORY="development" SHORT_DESC="An open source JPEG 2000 codec." MAINTAINER="slaxemulator@gmail.com" LICENSE="BSD" WEB_SITE="https://www.openjpeg.org/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="https://github.com/uclouvain/$PACKAGE/archive/refs/tags/version.$VERSION.tar.gz" DEPENDS="glibc-base" BUILD_DEPENDS="autoconf automake jpeg-dev libtool tiff-dev zlib-dev" HOST_ARCH="i486 arm" # What is the latest version available today? current_version() { wget -O - https://github.com/uclouvain/openjpeg/releases 2>/dev/null | \ sed '/archive.*tar/!d;s|.*/v*\(.*\).tar.*|\1|;q' } # Rules to configure and make the package. compile_rules() { # make sure we use system libraries [ -d thirdparty ] && rm -rf thirdparty ./bootstrap.sh && ./configure \ --enable-lcms1=no \ --enable-lcms2=no \ --enable-png=no \ --disable-static \ $CONFIGURE_ARGS && make && make install DESTDIR=$DESTDIR } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { cook_copy_files *.so* }