potrace, disable static library, cleanup (#8250)

This commit is contained in:
Schrijvers Luc
2023-04-03 11:20:15 +02:00
committed by GitHub
parent 715da01667
commit be38292d45

View File

@@ -15,12 +15,11 @@ XFig. Additional backends might be added in the future.
A separate program, mkbitmap, is also provided. This program can act \
as a pre-processor for Potrace, applying scaling and various filters \
to an image before converting it to a bitmap. This is useful for \
potracing greyscale and color images.
"
potracing greyscale and color images."
HOMEPAGE="http://potrace.sourceforge.net/"
COPYRIGHT="2001-2015 Peter Selinger"
LICENSE="GNU GPL v2"
REVISION="1"
REVISION="2"
SOURCE_URI="http://potrace.sourceforge.net/download/$portVersion/potrace-$portVersion.tar.gz"
CHECKSUM_SHA256="be8248a17dedd6ccbaab2fcc45835bb0502d062e40fbded3bc56028ce5eb7acc"
PATCHES="potrace-$portVersion.patchset"
@@ -28,12 +27,20 @@ PATCHES="potrace-$portVersion.patchset"
ARCHITECTURES="all"
SECONDARY_ARCHITECTURES="x86_gcc2 x86"
libVersion="0.0.6"
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
PROVIDES="
potrace$secondaryArchSuffix = $portVersion
cmd:mkbitmap
cmd:potrace
lib:libpotrace$secondaryArchSuffix = 0.0.6 compat >= 0
lib:libpotrace$secondaryArchSuffix = $libVersionCompat
"
if [ -z "$secondaryArchSuffix" ]; then
PROVIDES="$PROVIDES
cmd:mkbitmap$secondaryArchSuffix
cmd:potrace$secondaryArchSuffix
"
fi
REQUIRES="
haiku$secondaryArchSuffix
lib:libz$secondaryArchSuffix
@@ -41,7 +48,7 @@ REQUIRES="
PROVIDES_devel="
potrace${secondaryArchSuffix}_devel = $portVersion
devel:libpotrace$secondaryArchSuffix = 0.0.6 compat >= 0
devel:libpotrace$secondaryArchSuffix = $libVersionCompat
"
REQUIRES_devel="
haiku$secondaryArchSuffix
@@ -65,7 +72,9 @@ BUILD_PREREQUIRES="
BUILD()
{
autoreconf -f -i
runConfigure ./configure --with-libpotrace
runConfigure ./configure \
--with-libpotrace \
--disable-static
make $jobArgs
}
@@ -75,12 +84,17 @@ INSTALL()
rm $libDir/libpotrace.la
prepareInstalledDevelLibs libpotrace
prepareInstalledDevelLib libpotrace
fixPkgconfig
# devel package
packageEntries devel \
$developDir
if [ -n "$secondaryArchSuffix" ]; then
rm -rf $binDir
rm -rf $documentationDir
fi
}
TEST()