mirror of
https://github.com/yann64/haikuports.git
synced 2026-03-19 01:46:00 +01:00
jbig2dec, use libVersionCompat, only provide binary for primary architecture (#8311)
This commit is contained in:
@@ -8,7 +8,7 @@ ratios on the order of 100:1."
|
||||
HOMEPAGE="https://jbig2dec.com/"
|
||||
COPYRIGHT="2001-2009 Artifex Software, Inc."
|
||||
LICENSE="GNU GPL v3"
|
||||
REVISION="2"
|
||||
REVISION="3"
|
||||
SOURCE_URI="https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs9530/jbig2dec-$portVersion.tar.gz"
|
||||
CHECKSUM_SHA256="279476695b38f04939aa59d041be56f6bade3422003a406a85e9792c27118a37"
|
||||
PATCHES="jbig2dec-$portVersion.patchset"
|
||||
@@ -16,18 +16,27 @@ 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 = 0.0.0 compat >= 0
|
||||
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 = 0.0.0 compat >= 0
|
||||
devel:libjbig2dec$secondaryArchSuffix = $libVersionCompat
|
||||
"
|
||||
REQUIRES_devel="
|
||||
jbig2dec$secondaryArchSuffix == $portVersion
|
||||
@@ -59,10 +68,14 @@ INSTALL()
|
||||
{
|
||||
make install
|
||||
|
||||
# we only want the binaries for primary architecture
|
||||
if [ -n "$secondaryArchSuffix" ]; then
|
||||
rm -rf $binDir $manDir
|
||||
fi
|
||||
|
||||
rm $libDir/libjbig2dec.la
|
||||
|
||||
prepareInstalledDevelLibs libjbig2dec
|
||||
|
||||
prepareInstalledDevelLib libjbig2dec
|
||||
fixPkgconfig
|
||||
|
||||
packageEntries devel $developDir
|
||||
|
||||
Reference in New Issue
Block a user