SUMMARY="A decoder implementation of the JBIG2 image format" DESCRIPTION=" jbig2dec is a decoder implementation of the JBIG2 image compression format. \ JBIG2 is designed for lossy or lossless encoding of 'bilevel' (1-bit \ monochrome) images at moderately high resolution, and in particular scanned \ paper documents. In this domain it is very efficient, offering compression \ ratios on the order of 100:1." HOMEPAGE="https://jbig2dec.com/" COPYRIGHT="2001-2009 Artifex Software, Inc." LICENSE="GNU GPL v3" REVISION="3" SOURCE_URI="https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs9530/jbig2dec-$portVersion.tar.gz" CHECKSUM_SHA256="279476695b38f04939aa59d041be56f6bade3422003a406a85e9792c27118a37" PATCHES="jbig2dec-$portVersion.patchset" ARCHITECTURES="all" SECONDARY_ARCHITECTURES="x86" libVersion="0.0.0" libVersionCompat="$libVersion compat >= ${libVersion%%.*}" PROVIDES=" jbig2dec$secondaryArchSuffix = $portVersion cmd:jbig2dec$secondaryArchSuffix = $portVersion lib:libjbig2dec$secondaryArchSuffix = $libVersionCompat " # we only want the binaries for primary architecture if [ -z "$secondaryArchSuffix" ]; then PROVIDES="$PROVIDES cmd:jbig2dec$secondaryArchSuffix = $portVersion " fi REQUIRES=" haiku$secondaryArchSuffix " PROVIDES_devel=" jbig2dec${secondaryArchSuffix}_devel = $portVersion devel:libjbig2dec$secondaryArchSuffix = $libVersionCompat " REQUIRES_devel=" jbig2dec$secondaryArchSuffix == $portVersion " BUILD_PREREQUIRES=" haiku${secondaryArchSuffix}_devel cmd:aclocal cmd:ar$secondaryArchSuffix cmd:autoconf cmd:automake cmd:gcc$secondaryArchSuffix cmd:libtoolize$secondaryArchSuffix cmd:m4 cmd:make " BUILD() { libtoolize --force --copy --install aclocal automake --add-missing autoconf runConfigure ./configure --disable-static make $jobArgs } INSTALL() { make install # we only want the binaries for primary architecture if [ -n "$secondaryArchSuffix" ]; then rm -rf $binDir $manDir fi rm $libDir/libjbig2dec.la prepareInstalledDevelLib libjbig2dec fixPkgconfig packageEntries devel $developDir } TEST() { make check }