libfreehand: add recipe for version 0.1.0

This commit is contained in:
Kacper Kasper
2014-07-22 19:25:09 +02:00
parent a4f49a0706
commit 34f99db294

View File

@@ -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 <fridrich.strba@bluewin.ch>
David Tardon <dtardon@redhat.com>
"
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
"