libodfgen: add recipe for version 0.1.1

This commit is contained in:
Kacper Kasper
2014-07-21 15:56:50 +02:00
parent 2f91474c04
commit ee25444630

View File

@@ -0,0 +1,86 @@
SUMMARY="ODF export library"
DESCRIPTION="
libodfgen is an ODF export library for projects using librevenge.
"
HOMEPAGE="http://sourceforge.net/p/libwpd/wiki/libodfgen"
SRC_URI="http://prdownloads.sourceforge.net/libwpd/libodfgen-$portVersion.tar.bz2"
LICENSE="
MPL v2.0
GNU LGPL v2.1
"
COPYRIGHT="
Fridrich Strba <fridrich.strba@bluewin.ch>
Laurent Alonso <laurent.alonso@inria.fr>
David Tardon <dtardon@redhat.com>
"
REVISION="1"
CHECKSUM_SHA256="b8d5974de49b523c7a5b800d9817ff7ced9615ef456ba39128e2eb5a470483be"
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="
libodfgen$secondaryArchSuffix = $portVersion
lib:libodfgen_0.1$secondaryArchSuffix = 1.0.1 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
"
BUILD()
{
libtoolize --force --copy --install
aclocal
autoheader
automake -a -c --foreign
autoconf
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLibs libodfgen-0.1
fixPkgconfig
packageEntries devel $developDir
}
PROVIDES_devel="
libodfgen${secondaryArchSuffix}_devel = $portVersion
devel:libodfgen_0.1$secondaryArchSuffix = 1.0.1 compat >= 1
"
REQUIRES_devel="
libodfgen$secondaryArchSuffix == $portVersion base
"