From 2f91474c049c682900cdf41580ca10e8e54e2482 Mon Sep 17 00:00:00 2001 From: Kacper Kasper Date: Mon, 21 Jul 2014 15:23:03 +0200 Subject: [PATCH] libwpg: add recipe for version 0.3.0 --- app-text/libwpg/libwpg-0.3.0.recipe | 92 +++++++++++++++++++++++++++++ 1 file changed, 92 insertions(+) create mode 100644 app-text/libwpg/libwpg-0.3.0.recipe diff --git a/app-text/libwpg/libwpg-0.3.0.recipe b/app-text/libwpg/libwpg-0.3.0.recipe new file mode 100644 index 000000000..478ad9994 --- /dev/null +++ b/app-text/libwpg/libwpg-0.3.0.recipe @@ -0,0 +1,92 @@ +SUMMARY="The free WPG library and converter" +DESCRIPTION=" +libwpg project is a collection of library and tools to work with graphics in \ +WPG (WordPerfect Graphics) format. +" +HOMEPAGE="http://libwpg.sourceforge.net" +SRC_URI="http://prdownloads.sourceforge.net/libwpg/libwpg-$portVersion.tar.gz" +LICENSE=" + MPL v2.0 + GNU LGPL v2.1 + " +COPYRIGHT=" + Marc Oude Kotte + Marc Maurer + Ariya Hidayat + Fridrich Strba + " +REVISION="1" +CHECKSUM_SHA256="8fb8cb4229d4288a5363c78bab78811d94cf8e1e91a6a6b85941e43820561151" + +ARCHITECTURES="x86 ?x86_64" +if [ $effectiveTargetArchitecture != x86_gcc2 ]; then + # x86_gcc2 is fine as primary target architecture as long as we're building + # for a different secondary architecture. + ARCHITECTURES="$ARCHITECTURES x86_gcc2" +fi +SECONDARY_ARCHITECTURES="x86" + +PROVIDES=" + libwpg$secondaryArchSuffix = $portVersion + cmd:wpg2raw$secondaryArchSuffix + cmd:wpg2svg$secondaryArchSuffix + cmd:wpg2svgbatch.pl$secondaryArchSuffix + lib:libwpg_0.3$secondaryArchSuffix = 3.0.0 compat >= 3 + " +REQUIRES=" + haiku$secondaryArchSuffix >= $haikuVersion + cmd:perl + lib:librevenge_0.0$secondaryArchSuffix + lib:librevenge_generators_0.0$secondaryArchSuffix + lib:librevenge_stream_0.0$secondaryArchSuffix + lib:libwpd_0.10$secondaryArchSuffix + lib:libz$secondaryArchSuffix + " +BUILD_REQUIRES=" + devel:librevenge_0.0$secondaryArchSuffix + devel:librevenge_generators_0.0$secondaryArchSuffix + devel:librevenge_stream_0.0$secondaryArchSuffix + devel:libwpd_0.10$secondaryArchSuffix + devel:libz$secondaryArchSuffix + " +BUILD_PREREQUIRES=" + haiku${secondaryArchSuffix}_devel >= $haikuVersion + cmd:aclocal + cmd:libtoolize + cmd:autoconf + cmd:automake + cmd:autoheader + cmd:gcc$secondaryArchSuffix + cmd:ld$secondaryArchSuffix + cmd:make + cmd:pkg_config$secondaryArchSuffix + " + +BUILD() +{ + libtoolize --force --copy --install + aclocal + autoheader + automake -a -c --foreign + autoconf + runConfigure ./configure + make $jobArgs +} + +INSTALL() +{ + make install + + prepareInstalledDevelLibs libwpg-0.3 + fixPkgconfig + + packageEntries devel $developDir +} + +PROVIDES_devel=" + libwpg${secondaryArchSuffix}_devel = $portVersion + devel:libwpg_0.3$secondaryArchSuffix = 3.0.0 compat >= 3 + " +REQUIRES_devel=" + libwpg$secondaryArchSuffix == $portVersion base + "