Files
haikuports/app-text/libebook/libebook-0.1.2.recipe
Jerome Duval fc0936b040 Bump revisions for x86_64 rebuild after time_t change.
* a few apps needed build fix for time_t.
* disable compatibility packages for x86_64.
2017-06-27 15:46:25 +02:00

88 lines
2.1 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="3"
SOURCE_URI="http://prdownloads.sourceforge.net/libebook/libe-book-$portVersion.tar.bz2"
CHECKSUM_SHA256="b710a57c633205b933015474d0ac0862253d1c52114d535dd09b20939a0d1850"
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.2 compat >= 1
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libicui18n$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.2 compat >= 1
"
REQUIRES_devel="
libebook$secondaryArchSuffix == $portVersion base
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libboost_system$secondaryArchSuffix
devel:libcppunit$secondaryArchSuffix
devel:libicui18n$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="
cmd:aclocal
cmd:libtoolize$secondaryArchSuffix
cmd:autoheader
cmd:autoconf
cmd:automake
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
cmd:icu_config$secondaryArchSuffix
cmd:gperf
"
BUILD()
{
autoreconf -fi
runConfigure ./configure
make $jobArgs
}
INSTALL()
{
make install
rm $libDir/libe-book-0.1.la
prepareInstalledDevelLibs libe-book-0.1
fixPkgconfig
packageEntries devel $developDir
}
TEST()
{
make check
}