0
0
Fork 0
haikuports/app-text/libwpg/libwpg-0.3.3.recipe

81 lines
1.9 KiB
Bash

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"
COPYRIGHT="Marc Oude Kotte
Marc Maurer
Ariya Hidayat
Fridrich Strba"
LICENSE="MPL v2.0
GNU LGPL v2.1"
REVISION="1"
SOURCE_URI="http://prdownloads.sourceforge.net/libwpg/libwpg-$portVersion.tar.gz"
CHECKSUM_SHA256="b8e20d0aef634668c22791fc17369d9b9e15eb4fc400a8e06810870f57e88278"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
PROVIDES="
libwpg$secondaryArchSuffix = $portVersion
cmd:wpg2raw$secondaryArchSuffix
cmd:wpg2svg$secondaryArchSuffix
cmd:wpg2svgbatch.pl$secondaryArchSuffix
lib:libwpg_0.3$secondaryArchSuffix = 3.0.3 compat >= 3
"
REQUIRES="
haiku$secondaryArchSuffix
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
"
PROVIDES_devel="
libwpg${secondaryArchSuffix}_devel = $portVersion
devel:libwpg_0.3$secondaryArchSuffix = 3.0.3 compat >= 3
"
REQUIRES_devel="
libwpg$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
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="
cmd:aclocal
cmd:autoconf
cmd:autoheader
cmd:automake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:libtoolize
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
BUILD()
{
autoreconf -fi
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
rm $libDir/libwpg-0.3.la
prepareInstalledDevelLibs libwpg-0.3
fixPkgconfig
packageEntries devel $developDir
}