Files
haikuports/app-text/libmwaw/libmwaw-0.3.1.recipe

99 lines
2.5 KiB
Plaintext

SUMMARY="A library for import of many legacy Mac document formats"
DESCRIPTION="
libmwaw is a new project for converting many pre-OSX MAC text formats, some \
graphic formats and some spreadsheet formats.
"
HOMEPAGE="http://sourceforge.net/projects/libmwaw/"
SRC_URI="http://prdownloads.sourceforge.net/libmwaw/libmwaw-$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="66d3dbc4421daa628326204b5d14bb99f2b9d4423184027aabe207d677c89845"
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="
libmwaw$secondaryArchSuffix = $portVersion
cmd:mwaw2csv$secondaryArchSuffix
cmd:mwaw2html$secondaryArchSuffix
cmd:mwaw2raw$secondaryArchSuffix
cmd:mwaw2svg$secondaryArchSuffix
cmd:mwaw2text$secondaryArchSuffix
cmd:mwawFile$secondaryArchSuffix
cmd:mwawZip$secondaryArchSuffix
lib:libmwaw_0.3$secondaryArchSuffix = 3.0.1 compat >= 3
"
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
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 >= $haikuVersion
cmd:aclocal
cmd:libtoolize
cmd:autoconf
cmd:automake
cmd:autoheader
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
"
PATCHES="libmwaw-$portVersion.patchset"
BUILD()
{
libtoolize --force --copy --install
aclocal
autoheader
automake -a -c --foreign
autoconf
runConfigure ./configure --disable-werror
make $jobArgs
}
INSTALL()
{
make install
prepareInstalledDevelLibs libmwaw-0.3
fixPkgconfig
packageEntries devel $developDir
}
PROVIDES_devel="
libmwaw${secondaryArchSuffix}_devel = $portVersion
devel:libmwaw_0.3$secondaryArchSuffix = 3.0.1 compat >= 3
"
REQUIRES_devel="
libmwaw$secondaryArchSuffix == $portVersion base
"