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