SUMMARY="HTML file processor and converter"
DESCRIPTION="HTMLDOC converts HTML files and web pages into index HTML, \
Adobe Postscript or Adobe Portable Document Format files (pdf)."
HOMEPAGE="https://www.msweet.org/htmldoc/index.html"
COPYRIGHT="1997-2006 Easy Software Products"
LICENSE="GNU GPL v2"
REVISION="1"
SOURCE_URI="https://github.com/michaelrsweet/htmldoc/releases/download/v$portVersion/htmldoc-$portVersion-source.tar.gz"
CHECKSUM_SHA256="b1086385c4c16cdabe428ab1aa041266baebee39f222cf6a3947b41027b7dae3"
PATCHES="htmldoc-$portVersion.patchset"
ARCHITECTURES="all !x86_gcc2"
SECONDARY_ARCHITECTURES="x86"
# we only want the binaries for primary architecture
commandBinDir=$binDir
commandSuffix=$secondaryArchSuffix
if [ "$targetArchitecture" = x86_gcc2 ]; then
commandSuffix=
commandBinDir=$prefix/bin
fi
PROVIDES="
htmldoc$secondaryArchSuffix = $portVersion compat >= 1.8
cmd:htmldoc$commandSuffix = $portVersion compat >= 1.8
"
REQUIRES="
haiku$secondaryArchSuffix
lib:libjpeg$secondaryArchSuffix
lib:libgnutls$secondaryArchSuffix
lib:libpng16$secondaryArchSuffix
lib:libz$secondaryArchSuffix
"
BUILD_REQUIRES="
haiku${secondaryArchSuffix}_devel
devel:libjpeg$secondaryArchSuffix
devel:libgnutls$secondaryArchSuffix
devel:libgcrypt$secondaryArchSuffix
devel:libpng16$secondaryArchSuffix
devel:libz$secondaryArchSuffix
"
BUILD_PREREQUIRES="
cmd:autoconf
cmd:gcc$secondaryArchSuffix
cmd:ld$secondaryArchSuffix
cmd:make
cmd:pkg_config$secondaryArchSuffix
# cmd:sed
"
BUILD()
{
autoconf
runConfigure --omit-dirs binDir ./configure \
--bindir=$commandBinDir
make $jobArgs
}
INSTALL()
{
make install
}