Files
haikuports/app-text/libebook/libebook-0.1.1.recipe
2015-08-04 15:45:00 -04:00

89 lines
2.2 KiB
Bash

SUMMARY="A library to import 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/"
COPYRIGHT="David Tardon"
LICENSE="MPL v2.0"
REVISION="2"
SOURCE_URI="http://prdownloads.sourceforge.net/libebook/libe-book-$portVersion.tar.bz2"
CHECKSUM_SHA256="90353fc60827a33b391d0b63ecfe5239229d489af99ff6ea014ede3b39fa32b5"
SOURCE_DIR="libe-book-$portVersion"
ARCHITECTURES="!x86_gcc2 x86 ?x86_64"
SECONDARY_ARCHITECTURES="x86"
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
"
PROVIDES_devel="
libebook${secondaryArchSuffix}_devel = $portVersion
devel:libe_book_0.1$secondaryArchSuffix = 1.0.1 compat >= 1
"
REQUIRES_devel="
libebook$secondaryArchSuffix == $portVersion base
"
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
}