wok-next annotate podofo/receipt @ rev 20786
gnupg: remove spaces (aka: should build now, since newest libgpg-error available now, which has the GPGRT_LOGLVL_INFO
author | Erkan Yilmaz <erkan@slitaz.org> |
---|---|
date | Sat Jun 09 07:09:31 2018 +0000 (2018-06-09) |
parents | dd145c435e4b |
children | d5aab818505e |
rev | line source |
---|---|
al@20462 | 1 # SliTaz package receipt v2. |
pascal@3902 | 2 |
pascal@3902 | 3 PACKAGE="podofo" |
slaxemulator@10188 | 4 VERSION="0.9.1" |
pascal@3902 | 5 CATEGORY="office" |
al@20462 | 6 SHORT_DESC="PDF library" |
pascal@3902 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
al@20462 | 9 WEB_SITE="http://podofo.sourceforge.net/" |
al@20462 | 10 |
pascal@3902 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@3902 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
al@20462 | 13 |
pascal@16606 | 14 BUILD_DEPENDS="cmake fontconfig-dev freetype-dev zlib-dev jpeg-dev tiff-dev \ |
al@20454 | 15 libpng16-dev" |
al@20462 | 16 SPLIT="podofo-dev" |
pascal@3902 | 17 |
al@20462 | 18 compile_rules() { |
al@20462 | 19 mkdir build |
al@20462 | 20 cd build |
al@20462 | 21 cmake \ |
al@20462 | 22 -DCMAKE_INSTALL_PREFIX=/usr \ |
al@20462 | 23 -DCMAKE_BUILD_TYPE=RELEASE \ |
al@20462 | 24 -DFREETYPE_INCLUDE_DIR=/usr/include/freetype2 \ |
al@20462 | 25 -DPODOFO_BUILD_STATIC:BOOL=TRUE \ |
al@20462 | 26 -DPODOFO_BUILD_SHARED:BOOL=TRUE \ |
al@20462 | 27 .. && |
pascal@3902 | 28 make && |
pascal@15000 | 29 make DESTDIR=$DESTDIR install |
pascal@3902 | 30 } |
pascal@3902 | 31 |
al@20462 | 32 genpkg_rules() { |
al@20462 | 33 case $PACKAGE in |
al@20462 | 34 podofo) |
al@20462 | 35 mkdir -p $fs/usr/lib |
al@20462 | 36 cp -a $install/usr/bin $fs/usr |
al@20462 | 37 cp -a $install/usr/lib/*.so* $fs/usr/lib |
al@20462 | 38 DEPENDS="fontconfig freetype zlib jpeg tiff gcc-lib-base libpng16" |
al@20462 | 39 ;; |
al@20462 | 40 *-dev) |
al@20462 | 41 mkdir -p $fs/usr/lib |
al@20462 | 42 cp -a $install/usr/include $fs/usr |
al@20462 | 43 cp -a $install/usr/lib/*a $fs/usr/lib |
al@20462 | 44 ;; |
al@20462 | 45 esac |
pascal@3902 | 46 } |