#Maintainer: Dimitris Tzemos pkgname=podofo pkgver=0.9.3 pkgrel=2dj source=("https://downloads.sourceforge.net/project/podofo/podofo/${pkgver}/podofo-${pkgver}.tar.gz") sourcetemplate=http://people.salixos.org/djemos/salix/$pkgname docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") url=http://sourceforge.net/projects/podofo/ slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "PoDoFo (a library to work with the PDF file format)" "The name comes from the first letter of PDF (Portable Document Format)" "The PoDoFo library is a free, portable C++ library which includes" "classes to parse PDF files and modify their contents into memory" "The parser can also be used to extract information from a PDF file" "(for example, the parser could be used in a PDF viewer)." "" "Homepage: http://podofo.sourceforge.net/" ) build() { cd $startdir/src/$pkgname-$pkgver if [ $arch == "x86_64" ]; then LIB64="TRUE" else LIB64="FALSE" fi mkdir -p build cd build cmake \ -DCMAKE_C_FLAGS:STRING="$CFLAGS" \ -DCMAKE_CXX_FLAGS:STRING="$CXXFLAGS" \ -DFREETYPE_INCLUDE_DIR=/usr/include/freetype2 \ -DCMAKE_INSTALL_PREFIX=/usr \ -DPODOFO_BUILD_STATIC:BOOL=TRUE \ -DPODOFO_BUILD_SHARED:BOOL=TRUE \ -DPODOFO_HAVE_JPEG_LIB:BOOL=TRUE \ -DPODOFO_HAVE_PNG_LIB:BOOL=TRUE \ -DPODOFO_HAVE_TIFF_LIB:BOOL=TRUE \ -DWANT_LIB64:BOOL=$LIB64 \ .. make -j $numjobs || return 1 make install DESTDIR=$startdir/pkg }