SUMMARY="C/C++ library for PDF generation" DESCRIPTION=" Haru is a free, cross platform, open-sourced software library for generating \ PDF. It supports the following features. 1. Generating PDF files with lines, text, images. 2. Outline, text annotation, link annotation. 3. Compressing document with deflate-decode. 4. Embedding PNG, Jpeg images. 5. Embedding Type1 font and TrueType font. 6. Creating encrypted PDF files. 7. Using various character set (ISO8859-1~16, MSCP1250~8, KOI8-R). 8. Supporting CJK fonts and encodings. " HOMEPAGE="http://www.libharu.org/" COPYRIGHT=" 2000-2006 Takeshi Kanno 2007-2009 Antony Dovgal et al. " LICENSE="Zlib" REVISION="3" SOURCE_URI="https://github.com/libharu/libharu/archive/RELEASE_2_3_0.tar.gz" CHECKSUM_SHA256="8f9e68cc5d5f7d53d1bc61a1ed876add1faf4f91070dbc360d8b259f46d9a4d2" SOURCE_FILENAME="libharu-$portVersion.tar.gz" SOURCE_DIR="libharu-RELEASE_2_3_0" PATCHES="libharu-$portVersion.patchset" ARCHITECTURES="x86_gcc2 x86 ?x86_64" SECONDARY_ARCHITECTURES="x86_gcc2 x86" PROVIDES=" libharu$secondaryArchSuffix = $portVersion compat >= 2 lib:libhpdf$secondaryArchSuffix = 2.3.0 compat >= 2 " REQUIRES=" haiku$secondaryArchSuffix lib:libpng16$secondaryArchSuffix lib:libz$secondaryArchSuffix " PROVIDES_devel=" libharu${secondaryArchSuffix}_devel = $portVersion compat >= 2 devel:libhpdf$secondaryArchSuffix = 2.3.0 compat >= 2 " REQUIRES_devel=" libharu$secondaryArchSuffix == $portVersion base " BUILD_REQUIRES=" haiku${secondaryArchSuffix}_devel devel:libpng16$secondaryArchSuffix devel:libz$secondaryArchSuffix " BUILD_PREREQUIRES=" cmd:cmake cmd:gcc$secondaryArchSuffix cmd:ld$secondaryArchSuffix cmd:make " BUILD() { rm -rf build mkdir build cd build cmake -DCMAKE_INSTALL_PREFIX=$prefix \ -DCMAKE_BUILD_TYPE=release .. make $jobArgs } INSTALL() { cd build make install if [ -n "$secondaryArchSuffix" ]; then mv $prefix/lib $prefix/lib2 mkdir -p $libDir mv $prefix/lib2/* $libDir/ rmdir $prefix/lib2 fi mv $libDir/libhpdfs.a $libDir/libhpdf.a mv $libDir/libhpdf.so $libDir/libhpdf.so.2.3 ln -s libhpdf.so.2.3 $libDir/libhpdf.so prepareInstalledDevelLibs libhpdf # devel package packageEntries devel \ $developDir }