From be38292d454761e86217709cd718a7751ebbbb52 Mon Sep 17 00:00:00 2001 From: Schrijvers Luc Date: Mon, 3 Apr 2023 11:20:15 +0200 Subject: [PATCH] potrace, disable static library, cleanup (#8250) --- media-gfx/potrace/potrace-1.16.recipe | 32 +++++++++++++++++++-------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/media-gfx/potrace/potrace-1.16.recipe b/media-gfx/potrace/potrace-1.16.recipe index 47b26339a..c0ab789a7 100644 --- a/media-gfx/potrace/potrace-1.16.recipe +++ b/media-gfx/potrace/potrace-1.16.recipe @@ -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()