wok view podofo/receipt @ rev 25457
Normazile https://sourceforge.net/projects web_sites
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Sep 23 08:28:09 2022 +0000 (2022-09-23) |
parents | c903329801b8 |
children | 69e1e705f038 |
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 # What is the latest version available today?
20 current_version()
21 {
22 wget -O - https://sourceforge.net/projects/$PACKAGE/files/$PACKAGE 2>/dev/null | \
23 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
24 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 mkdir _build
31 cd _build
32 cmake .. \
33 -D CMAKE_INSTALL_PREFIX=/usr \
34 -D CMAKE_BUILD_TYPE=RELEASE \
35 -D FREETYPE_INCLUDE_DIR=/usr/include/freetype2 \
36 -D PODOFO_HAVE_LUA=FALSE \
37 -D PODOFO_BUILD_STATIC:BOOL=TRUE \
38 -D PODOFO_BUILD_SHARED:BOOL=TRUE &&
39 make &&
40 make DESTDIR=$DESTDIR install
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 cook_copy_folders bin
47 cook_copy_files *.so*
48 }