wok-next view podofo/receipt @ rev 21031
Random updates
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Sat Nov 03 15:42:26 2018 +0200 (2018-11-03) |
parents | 8940878905f3 |
children | 5669e8b3be70 |
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 libpng16-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 tiff gcc-lib-base libpng16"
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 }