Files
haikuports/app-text/libodfgen/libodfgen-0.1.1.recipe
Oliver Tappe 52b344b97b Drop references to $haikuVersion.
* Referring the current haiku version explicitly is not needed, since
  the RequiresUpdater takes care of setting the version of Haiku used
  for building a package.
2014-12-14 23:08:52 +01:00

89 lines
2.1 KiB
Plaintext

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="2"
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
lib:libboost_system$secondaryArchSuffix
lib:librevenge_0.0$secondaryArchSuffix
lib:librevenge_generators_0.0$secondaryArchSuffix
lib:librevenge_stream_0.0$secondaryArchSuffix
lib:libz$secondaryArchSuffix
lib:libstdc++$secondaryArchSuffix
lib:libgcc_s$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
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
"