mirror of
https://github.com/yann64/haikuports.git
synced 2026-05-05 22:48:55 +02:00
134 lines
3.1 KiB
Bash
134 lines
3.1 KiB
Bash
SUMMARY="MSWord 6/7/8/9 binary file format to HTML converter"
|
|
DESCRIPTION="A library that can load and parse Word 2000, 97, 95 and 6 file formats."
|
|
HOMEPAGE="https://sourceforge.net/projects/wvware"
|
|
COPYRIGHT="2010 Caolan McNamara, Dom Lachowicz, and others"
|
|
LICENSE="GNU GPL v2"
|
|
REVISION="1"
|
|
SOURCE_URI="http://www.abisource.com/downloads/wv/$portVersion/wv-$portVersion.tar.gz"
|
|
CHECKSUM_SHA256="4c730d3b325c0785450dd3a043eeb53e1518598c4f41f155558385dd2635c19d"
|
|
|
|
ARCHITECTURES="all !x86_gcc2"
|
|
SECONDARY_ARCHITECTURES="x86"
|
|
|
|
commandBinDir=$binDir
|
|
commandSuffix=$secondaryArchSuffix
|
|
if [ "$targetArchitecture" = x86_gcc2 ]; then
|
|
commandSuffix=
|
|
commandBinDir=$prefix/bin
|
|
fi
|
|
|
|
libVersion="4.0.5"
|
|
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
|
|
|
PROVIDES="
|
|
wv$secondaryArchSuffix = $portVersion
|
|
lib:libwv$secondaryArchSuffix = $portVersion
|
|
lib:libwv_1.2$secondaryArchSuffix = $libVersionCompat
|
|
"
|
|
REQUIRES="
|
|
haiku$secondaryArchSuffix
|
|
lib:libglib_2.0$secondaryArchSuffix
|
|
lib:libgobject_2.0$secondaryArchSuffix
|
|
lib:libgsf_1$secondaryArchSuffix
|
|
lib:libintl$secondaryArchSuffix
|
|
lib:libxml2$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_devel="
|
|
wv${secondaryArchSuffix}_devel = $portVersion
|
|
devel:libwv$secondaryArchSuffix = $portVersion
|
|
"
|
|
REQUIRES_devel="
|
|
wv$secondaryArchSuffix == $portVersion base
|
|
devel:libffi$secondaryArchSuffix
|
|
devel:libglib_2.0$secondaryArchSuffix
|
|
devel:libgsf_1$secondaryArchSuffix
|
|
devel:libpcre$secondaryArchSuffix
|
|
devel:libxml2$secondaryArchSuffix
|
|
"
|
|
|
|
PROVIDES_tools="
|
|
wv${secondaryArchSuffix}_tools
|
|
cmd:wvAbw$commandSuffix
|
|
cmd:wvCleanlatex$commandSuffix
|
|
cmd:wvConvert$commandSuffix
|
|
cmd:wvDvi$commandSuffix
|
|
cmd:wvDocbook$commandSuffix
|
|
cmd:wvHtml$commandSuffix
|
|
cmd:wvLatex$commandSuffix
|
|
cmd:wvMime$commandSuffix
|
|
cmd:wvPdf$commandSuffix
|
|
cmd:wvPs$commandSuffix
|
|
cmd:wvRtf$commandSuffix
|
|
cmd:wvSummary$commandSuffix
|
|
cmd:wvText$commandSuffix
|
|
cmd:wvVersion$commandSuffix
|
|
cmd:wvWare$commandSuffix
|
|
cmd:wvWml$commandSuffix
|
|
"
|
|
REQUIRES_tools="
|
|
wv$secondaryArchSuffix == $portVersion base
|
|
haiku$secondaryArchSuffix
|
|
lib:libglib_2.0$secondaryArchSuffix
|
|
lib:libgobject_2.0$secondaryArchSuffix
|
|
lib:libgsf_1$secondaryArchSuffix
|
|
lib:libintl$secondaryArchSuffix
|
|
lib:libxml2$secondaryArchSuffix
|
|
lib:libz$secondaryArchSuffix
|
|
"
|
|
|
|
BUILD_REQUIRES="
|
|
haiku${secondaryArchSuffix}_devel
|
|
devel:libglib_2.0$secondaryArchSuffix
|
|
devel:libgsf_1$secondaryArchSuffix
|
|
devel:libxml2$secondaryArchSuffix
|
|
devel:libz$secondaryArchSuffix
|
|
"
|
|
BUILD_PREREQUIRES="
|
|
cmd:aclocal
|
|
cmd:autoreconf
|
|
cmd:gcc$secondaryArchSuffix
|
|
cmd:libtoolize$secondaryArchSuffix
|
|
cmd:make
|
|
cmd:pkg_config$secondaryArchSuffix
|
|
"
|
|
|
|
defineDebugInfoPackage wv$secondaryArchSuffix \
|
|
$libDir/libwv-1.2.so.$libVersion
|
|
|
|
BUILD()
|
|
{
|
|
touch AUTHORS ChangeLog
|
|
autoreconf -fi
|
|
|
|
runConfigure --omit-dirs binDir ./configure \
|
|
--bindir=$commandBinDir
|
|
|
|
make $jobArgs OBJ_DIR=objects
|
|
}
|
|
|
|
INSTALL()
|
|
{
|
|
make install
|
|
|
|
# remove libtool file
|
|
rm $libDir/*.la
|
|
|
|
prepareInstalledDevelLibs libwv
|
|
fixPkgconfig
|
|
|
|
packageEntries devel \
|
|
$developDir
|
|
|
|
packageEntries tools \
|
|
$commandBinDir \
|
|
$dataDir \
|
|
$manDir
|
|
}
|
|
|
|
TEST()
|
|
{
|
|
make check
|
|
}
|