wok-next annotate podofo/receipt @ rev 21080
Update tiff (4.0.10): libs -> into libtiff, apps -> into tiff
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Mon Dec 24 02:07:02 2018 +0200 (2018-12-24) |
parents | 5669e8b3be70 |
children | fa404ff19ee2 |
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" |
al@21020 | 7 MAINTAINER="devel@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@21078 | 15 libpng-dev" |
al@21020 | 16 SPLIT="$PACKAGE-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 && |
al@21020 | 29 make DESTDIR=$install 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@21080 | 38 DEPENDS="fontconfig freetype zlib jpeg libtiff gcc-lib-base libpng" |
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 } |