jbig2dec, use libVersionCompat, only provide binary for primary architecture (#8311)

This commit is contained in:
Schrijvers Luc
2023-04-07 19:04:07 +02:00
committed by GitHub
parent 8dbf2df5e0
commit 0a9f648d91

View File

@@ -8,7 +8,7 @@ ratios on the order of 100:1."
HOMEPAGE="https://jbig2dec.com/" HOMEPAGE="https://jbig2dec.com/"
COPYRIGHT="2001-2009 Artifex Software, Inc." COPYRIGHT="2001-2009 Artifex Software, Inc."
LICENSE="GNU GPL v3" LICENSE="GNU GPL v3"
REVISION="2" REVISION="3"
SOURCE_URI="https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs9530/jbig2dec-$portVersion.tar.gz" SOURCE_URI="https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs9530/jbig2dec-$portVersion.tar.gz"
CHECKSUM_SHA256="279476695b38f04939aa59d041be56f6bade3422003a406a85e9792c27118a37" CHECKSUM_SHA256="279476695b38f04939aa59d041be56f6bade3422003a406a85e9792c27118a37"
PATCHES="jbig2dec-$portVersion.patchset" PATCHES="jbig2dec-$portVersion.patchset"
@@ -16,18 +16,27 @@ PATCHES="jbig2dec-$portVersion.patchset"
ARCHITECTURES="all" ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86" SECONDARY_ARCHITECTURES="x86"
libVersion="0.0.0"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES=" PROVIDES="
jbig2dec$secondaryArchSuffix = $portVersion jbig2dec$secondaryArchSuffix = $portVersion
cmd: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=" REQUIRES="
haiku$secondaryArchSuffix haiku$secondaryArchSuffix
" "
PROVIDES_devel=" PROVIDES_devel="
jbig2dec${secondaryArchSuffix}_devel = $portVersion jbig2dec${secondaryArchSuffix}_devel = $portVersion
devel:libjbig2dec$secondaryArchSuffix = 0.0.0 compat >= 0 devel:libjbig2dec$secondaryArchSuffix = $libVersionCompat
" "
REQUIRES_devel=" REQUIRES_devel="
jbig2dec$secondaryArchSuffix == $portVersion jbig2dec$secondaryArchSuffix == $portVersion
@@ -59,10 +68,14 @@ INSTALL()
{ {
make install make install
# we only want the binaries for primary architecture
if [ -n "$secondaryArchSuffix" ]; then
rm -rf $binDir $manDir
fi
rm $libDir/libjbig2dec.la rm $libDir/libjbig2dec.la
prepareInstalledDevelLibs libjbig2dec prepareInstalledDevelLib libjbig2dec
fixPkgconfig fixPkgconfig
packageEntries devel $developDir packageEntries devel $developDir