wok-next view podofo/receipt @ rev 21722
efivar: typo in post_install
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Sep 01 10:31:46 2020 +0000 (2020-09-01) |
parents | 75632eca5b07 |
children |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="podofo"
4 VERSION="0.9.6"
5 CATEGORY="office"
6 SHORT_DESC="PDF library"
7 MAINTAINER="maintainer@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://sourceforge.net/projects/podofo/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 BUILD_DEPENDS="cmake fontconfig-dev freetype-dev jpeg-dev libpng-dev
15 tiff-dev zlib-dev"
16 SPLIT="$PACKAGE-dev"
18 compile_rules()
19 {
20 mkdir build
21 cd build
22 cmake .. \
23 -DCMAKE_INSTALL_PREFIX=/usr \
24 -DCMAKE_BUILD_TYPE=RELEASE \
25 -DFREETYPE_INCLUDE_DIR=/usr/include/freetype2 \
26 -DPODOFO_BUILD_STATIC:BOOL=TRUE \
27 -DPODOFO_BUILD_SHARED:BOOL=TRUE &&
28 make &&
29 make DESTDIR=$install install
30 }
32 genpkg_rules()
33 {
34 case $PACKAGE in
35 podofo)
36 mkdir -p $fs/usr/lib
37 cp -a $install/usr/bin $fs/usr
38 cp -a $install/usr/lib/*.so* $fs/usr/lib
40 DEPENDS="fontconfig freetype gcc-lib-base jpeg libpng libtiff zlib"
41 ;;
42 *-dev)
43 mkdir -p $fs/usr/lib
44 cp -a $install/usr/include $fs/usr
45 cp -a $install/usr/lib/*a $fs/usr/lib
46 ;;
47 esac
48 }