From 34f99db294668b3b5bc05fac53051a880b44ca65 Mon Sep 17 00:00:00 2001 From: Kacper Kasper Date: Tue, 22 Jul 2014 19:25:09 +0200 Subject: [PATCH] libfreehand: add recipe for version 0.1.0 --- .../libfreehand/libfreehand-0.1.0.recipe | 88 +++++++++++++++++++ 1 file changed, 88 insertions(+) create mode 100644 media-libs/libfreehand/libfreehand-0.1.0.recipe diff --git a/media-libs/libfreehand/libfreehand-0.1.0.recipe b/media-libs/libfreehand/libfreehand-0.1.0.recipe new file mode 100644 index 000000000..114bda284 --- /dev/null +++ b/media-libs/libfreehand/libfreehand-0.1.0.recipe @@ -0,0 +1,88 @@ +SUMMARY="Aldus/Macromedia/Adobe FreeHand import library" +DESCRIPTION=" +libcdr is a library that parses the file format of Aldus/Macromedia/Adobe \ +FreeHand documents of all versions. +" +HOMEPAGE="http://wiki.documentfoundation.org/DLP/Libraries/libfreehand" +SRC_URI="http://dev-www.libreoffice.org/src/libfreehand/libfreehand-$portVersion.tar.bz2" +LICENSE=" +MPL v2.0 +" +COPYRIGHT=" +Fridrich Strba +David Tardon +" +REVISION="1" +CHECKSUM_SHA256="c69962d5947561afeefeee71bc78ba7419e9d9b0fea8bcef2f625be867afe307" + +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=" + libfreehand$secondaryArchSuffix = $portVersion + cmd:fh2svg$secondaryArchSuffix + cmd:fh2raw$secondaryArchSuffix + lib:libfreehand_0.1$secondaryArchSuffix = 1.0.0 compat >= 1 + " +REQUIRES=" + haiku$secondaryArchSuffix >= $haikuVersion + lib:libboost_system$secondaryArchSuffix + lib:librevenge_0.0$secondaryArchSuffix + lib:librevenge_generators_0.0$secondaryArchSuffix + lib:librevenge_stream_0.0$secondaryArchSuffix + lib:libz$secondaryArchSuffix + " +BUILD_REQUIRES=" + devel:libboost_system$secondaryArchSuffix + devel:librevenge_0.0$secondaryArchSuffix + devel:librevenge_generators_0.0$secondaryArchSuffix + devel:librevenge_stream_0.0$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 + cmd:gperf + " + +BUILD() +{ + libtoolize --force --copy --install + aclocal + autoheader + automake -a -c --foreign + autoconf + runConfigure ./configure + make $jobArgs +} + +INSTALL() +{ + make install + + prepareInstalledDevelLibs libfreehand-0.1 + fixPkgconfig + + packageEntries devel $developDir +} + +PROVIDES_devel=" + libfreehand${secondaryArchSuffix}_devel = $portVersion + devel:libfreehand_0.1$secondaryArchSuffix = 1.0.0 compat >= 1 + " +REQUIRES_devel=" + libfreehand$secondaryArchSuffix == $portVersion base + "