wok annotate podofo/receipt @ rev 24307
slitaz-boot-scripts: update
author | Richard Dunbar <mojo@slitaz.org> |
---|---|
date | Mon Jan 17 12:42:24 2022 -0500 (2022-01-17) |
parents | 4bae0fb81a17 |
children | ad0bc3efbf37 |
rev | line source |
---|---|
pascal@3902 | 1 # SliTaz package receipt. |
pascal@3902 | 2 |
pascal@3902 | 3 PACKAGE="podofo" |
Hans-G?nter@24275 | 4 VERSION="0.9.7" |
pascal@3902 | 5 CATEGORY="office" |
pascal@3902 | 6 SHORT_DESC="PDF library." |
pascal@3902 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
Hans-G?nter@21691 | 9 WEB_SITE="https://sourceforge.net/projects/podofo/" |
Hans-G?nter@21691 | 10 |
pascal@3902 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@3902 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
Hans-G?nter@21691 | 13 |
Hans-G?nter@22354 | 14 DEPENDS="fontconfig freetype gcc-lib-base jpeg libcrypto libpng |
Hans-G?nter@22354 | 15 tiff zlib" |
Hans-G?nter@21691 | 16 BUILD_DEPENDS="cmake fontconfig-dev freetype-dev jpeg-dev \ |
Hans-G?nter@22354 | 17 libcrypto-dev libpng-dev tiff-dev zlib-dev" |
pascal@3902 | 18 |
pascal@24082 | 19 current_version() |
pascal@24082 | 20 { |
pascal@24082 | 21 wget -O - https://sourceforge.net/projects/$PACKAGE/files/$PACKAGE 2>/dev/null | \ |
pascal@24082 | 22 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24082 | 23 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q" |
pascal@24082 | 24 } |
pascal@24082 | 25 |
pascal@3902 | 26 # Rules to configure and make the package. |
pascal@3902 | 27 compile_rules() |
pascal@3902 | 28 { |
Hans-G?nter@24275 | 29 mkdir _build |
Hans-G?nter@24275 | 30 cd _build |
Hans-G?nter@24275 | 31 cmake .. \ |
Hans-G?nter@24275 | 32 -D CMAKE_INSTALL_PREFIX=/usr \ |
Hans-G?nter@24275 | 33 -D CMAKE_BUILD_TYPE=RELEASE \ |
Hans-G?nter@24275 | 34 -D FREETYPE_INCLUDE_DIR=/usr/include/freetype2 \ |
Hans-G?nter@24275 | 35 -D PODOFO_HAVE_LUA=FALSE \ |
Hans-G?nter@24275 | 36 -D PODOFO_BUILD_STATIC:BOOL=TRUE \ |
Hans-G?nter@24275 | 37 -D PODOFO_BUILD_SHARED:BOOL=TRUE && |
Hans-G?nter@24275 | 38 make && |
Hans-G?nter@24275 | 39 make DESTDIR=$DESTDIR install |
pascal@3902 | 40 } |
pascal@3902 | 41 |
pascal@3902 | 42 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@3902 | 43 genpkg_rules() |
pascal@3902 | 44 { |
Hans-G?nter@24275 | 45 cook_copy_folders bin |
Hans-G?nter@24275 | 46 cook_copy_files *.so* |
pascal@3902 | 47 } |