wok view podofo/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (24 months ago)
parents 4bae0fb81a17
children ad0bc3efbf37
line source
1 # SliTaz package receipt.
3 PACKAGE="podofo"
4 VERSION="0.9.7"
5 CATEGORY="office"
6 SHORT_DESC="PDF library."
7 MAINTAINER="pankso@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 DEPENDS="fontconfig freetype gcc-lib-base jpeg libcrypto libpng
15 tiff zlib"
16 BUILD_DEPENDS="cmake fontconfig-dev freetype-dev jpeg-dev \
17 libcrypto-dev libpng-dev tiff-dev zlib-dev"
19 current_version()
20 {
21 wget -O - https://sourceforge.net/projects/$PACKAGE/files/$PACKAGE 2>/dev/null | \
22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
23 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 mkdir _build
30 cd _build
31 cmake .. \
32 -D CMAKE_INSTALL_PREFIX=/usr \
33 -D CMAKE_BUILD_TYPE=RELEASE \
34 -D FREETYPE_INCLUDE_DIR=/usr/include/freetype2 \
35 -D PODOFO_HAVE_LUA=FALSE \
36 -D PODOFO_BUILD_STATIC:BOOL=TRUE \
37 -D PODOFO_BUILD_SHARED:BOOL=TRUE &&
38 make &&
39 make DESTDIR=$DESTDIR install
40 }
42 # Rules to gen a SliTaz package suitable for Tazpkg.
43 genpkg_rules()
44 {
45 cook_copy_folders bin
46 cook_copy_files *.so*
47 }