Files
haikuports/app-text/libebook/libebook-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

102 lines
2.5 KiB
Plaintext

SUMMARY="A library for import of many e-book formats"
DESCRIPTION="
libe-book is a library and set of tools for reading and converting various \
reflowable e-book formats.
"
HOMEPAGE="http://sourceforge.net/projects/libebook/"
SRC_URI="http://prdownloads.sourceforge.net/libebook/libe-book-$portVersion.tar.bz2"
LICENSE="
MPL v2.0
"
COPYRIGHT="
David Tardon <dtardon@redhat.com>
"
REVISION="2"
CHECKSUM_SHA256="90353fc60827a33b391d0b63ecfe5239229d489af99ff6ea014ede3b39fa32b5"
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"
SOURCE_DIR="libe-book-$portVersion"
PROVIDES="
libebook$secondaryArchSuffix = $portVersion
cmd:ebook2html$secondaryArchSuffix
cmd:ebook2raw$secondaryArchSuffix
cmd:ebook2text$secondaryArchSuffix
lib:libe_book_0.1$secondaryArchSuffix = 1.0.1 compat >= 1
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libboost_system$secondaryArchSuffix
lib:libicudata$secondaryArchSuffix
lib:libicui18n$secondaryArchSuffix
lib:libicuuc$secondaryArchSuffix
lib:librevenge_0.0$secondaryArchSuffix
lib:librevenge_generators_0.0$secondaryArchSuffix
lib:librevenge_stream_0.0$secondaryArchSuffix
lib:libxml2$secondaryArchSuffix
lib:libz$secondaryArchSuffix
lib:libstdc++$secondaryArchSuffix
lib:libgcc_s$secondaryArchSuffix
"
BUILD_REQUIRES="
devel:libboost_system$secondaryArchSuffix
devel:libcppunit$secondaryArchSuffix
devel:libicudata$secondaryArchSuffix
devel:libicui18n$secondaryArchSuffix
devel:libicuuc$secondaryArchSuffix
devel:librevenge_0.0$secondaryArchSuffix
devel:librevenge_generators_0.0$secondaryArchSuffix
devel:librevenge_stream_0.0$secondaryArchSuffix
devel:libxml2$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
haiku${secondaryArchSuffix}_devel
cmd:aclocal
cmd:libtoolize
cmd:autoheader
cmd:autoconf
cmd:automake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
cmd:gperf
"
BUILD()
{
libtoolize --force --copy --install
aclocal
autoheader
automake
autoconf
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLibs libe-book-0.1
fixPkgconfig
packageEntries devel $developDir
}
PROVIDES_devel="
libebook${secondaryArchSuffix}_devel = $portVersion
devel:libe_book_0.1$secondaryArchSuffix = 1.0.1 compat >= 1
"
REQUIRES_devel="
libebook$secondaryArchSuffix == $portVersion base
"