Files
haikuports/media-libs/jbig2dec/jbig2dec-0.19.recipe
2021-01-15 15:54:59 +01:00

75 lines
1.7 KiB
Bash

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="1"
SOURCE_URI="https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs9530/jbig2dec-$portVersion.tar.gz"
CHECKSUM_SHA256="279476695b38f04939aa59d041be56f6bade3422003a406a85e9792c27118a37"
PATCHES="jbig2dec-$portVersion.patchset"
ARCHITECTURES="x86_gcc2 x86 x86_64"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
jbig2dec$secondaryArchSuffix = $portVersion
cmd:jbig2dec$secondaryArchSuffix = $portVersion
lib:libjbig2dec$secondaryArchSuffix = 0.0.0 compat >= 0
"
REQUIRES="
haiku$secondaryArchSuffix
"
PROVIDES_devel="
jbig2dec${secondaryArchSuffix}_devel = $portVersion
devel:libjbig2dec$secondaryArchSuffix = 0.0.0 compat >= 0
"
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
make $jobArgs
}
INSTALL()
{
make install
rm $libDir/libjbig2dec.la
prepareInstalledDevelLibs libjbig2dec
fixPkgconfig
packageEntries devel $developDir
}
TEST()
{
make check
}