SUMMARY="A simple non-validating CSS 1 and HTML parser for C++" DESCRIPTION="htmlcxx is the name of both the library and the utility application that comes with \ this package. Although the htmlcxx (the application) is mostly useless for programming, you can \ use it to easily see how htmlcxx (the library) would parse your html code. Just install and try htmlcxx -h." HOMEPAGE="https://sourceforge.net/projects/htmlcxx/" COPYRIGHT="Davi de Castro Reis Robson Braga Ara˙jo" LICENSE="Apache v2 GNU LGPL v2" REVISION="1" SOURCE_URI="$HOMEPAGE/files/v0.87/htmlcxx-0.87.tar.gz" CHECKSUM_SHA256="5d38f938cf4df9a298a5346af27195fffabfef9f460fc2a02233cbcfa8fc75c8" PATCHES="htmlcxx-$portVersion-c++17.patch" ARCHITECTURES="all !x86_gcc2" SECONDARY_ARCHITECTURES="x86" # On x86_gcc2 we don't want to install the commands in bin//, but in bin/. commandBinDir=$binDir commandSuffix=$secondaryArchSuffix if [ "$targetArchitecture" = x86_gcc2 ]; then commandSuffix= commandBinDir=$prefix/bin fi libVersion="3.1.0" libVersionCompat="$libVersion compat >= ${libVersion%%.*}" libCssVersion="0.0.0" libCssVersionCompat="$libCssVersion compat >= ${libCssVersion%%.*}" PROVIDES=" htmlcxx$secondaryArchSuffix = $portVersion cmd:htmlcxx$commandSuffix lib:libhtmlcxx$secondaryArchSuffix = $libVersionCompat lib:libcss_parser$secondaryArchSuffix = $libCssVersionCompat lib:libcss_parser_pp$secondaryArchSuffix = $libCssVersionCompat " REQUIRES=" haiku$secondaryArchSuffix " PROVIDES_tools=" htmlcxx${secondaryArchSuffix}_tools = $portVersion cmd:htmlcxx$commandSuffix " REQUIRES_tools=" htmlcxx$secondaryArchSuffix == $portVersion haiku$secondaryArchSuffix " PROVIDES_devel=" htmlcxx${secondaryArchSuffix}_devel = $portVersion devel:libhtmlcxx$secondaryArchSuffix = $libVersionCompat devel:libcss_parser$secondaryArchSuffix = $libCssVersionCompat devel:libcss_parser_pp$secondaryArchSuffix = $libCssVersionCompat " REQUIRES_devel=" htmlcxx$secondaryArchSuffix == $portVersion base " BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel devel:libiconv$secondaryArchSuffix " BUILD_PREREQUIRES=" cmd:aclocal cmd:autoreconf cmd:flex cmd:gcc$secondaryArchSuffix cmd:libtoolize$secondaryArchSuffix cmd:make cmd:yacc " BUILD() { autoreconf -fi runConfigure --omit-dirs binDir ./configure \ --bindir=$commandBinDir \ --disable-static make $jobArgs } INSTALL() { make install # remove libtool files rm -rf $libDir/*.la # move includedir mkdir -p $includeDir mv $prefix/include/* $includeDir rm -rf $prefix/include prepareInstalledDevelLibs \ libhtmlcxx \ libcss_parser \ libcss_parser_pp fixPkgconfig packageEntries devel \ $developDir packageEntries tools \ $commandBinDir } TEST() { make check }