wok-next view 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
line source
1 # SliTaz package receipt v2.
3 PACKAGE="podofo"
4 VERSION="0.9.1"
5 CATEGORY="office"
6 SHORT_DESC="PDF library"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://podofo.sourceforge.net/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 BUILD_DEPENDS="cmake fontconfig-dev freetype-dev zlib-dev jpeg-dev tiff-dev \
15 libpng-dev"
16 SPLIT="$PACKAGE-dev"
18 compile_rules() {
19 mkdir build
20 cd build
21 cmake \
22 -DCMAKE_INSTALL_PREFIX=/usr \
23 -DCMAKE_BUILD_TYPE=RELEASE \
24 -DFREETYPE_INCLUDE_DIR=/usr/include/freetype2 \
25 -DPODOFO_BUILD_STATIC:BOOL=TRUE \
26 -DPODOFO_BUILD_SHARED:BOOL=TRUE \
27 .. &&
28 make &&
29 make DESTDIR=$install install
30 }
32 genpkg_rules() {
33 case $PACKAGE in
34 podofo)
35 mkdir -p $fs/usr/lib
36 cp -a $install/usr/bin $fs/usr
37 cp -a $install/usr/lib/*.so* $fs/usr/lib
38 DEPENDS="fontconfig freetype zlib jpeg libtiff gcc-lib-base libpng"
39 ;;
40 *-dev)
41 mkdir -p $fs/usr/lib
42 cp -a $install/usr/include $fs/usr
43 cp -a $install/usr/lib/*a $fs/usr/lib
44 ;;
45 esac
46 }