libwpg: add recipe for version 0.3.0

This commit is contained in:
Kacper Kasper
2014-07-21 15:23:03 +02:00
parent 89ac0df9d0
commit 2f91474c04

View File

@@ -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
"