wok-next annotate podofo/receipt @ rev 20413
linux: add /proc/config.gz, /sbin/tazhw needs it
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jan 07 17:52:41 2018 +0100 (2018-01-07) |
parents | 9f7eed078218 |
children | dd145c435e4b |
rev | line source |
---|---|
pascal@3902 | 1 # SliTaz package receipt. |
pascal@3902 | 2 |
pascal@3902 | 3 PACKAGE="podofo" |
slaxemulator@10188 | 4 VERSION="0.9.1" |
pascal@3902 | 5 CATEGORY="office" |
pascal@3902 | 6 SHORT_DESC="PDF library." |
pascal@3902 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15000 | 8 LICENSE="GPL2" |
pascal@3902 | 9 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@3902 | 10 WEB_SITE="http://podofo.sourceforge.net/" |
pascal@3902 | 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pascal@16606 | 12 DEPENDS="fontconfig freetype zlib jpeg tiff gcc-lib-base libpng" |
pascal@16606 | 13 BUILD_DEPENDS="cmake fontconfig-dev freetype-dev zlib-dev jpeg-dev tiff-dev \ |
pascal@16606 | 14 libpng-dev" |
pascal@3902 | 15 |
pascal@3902 | 16 # Rules to configure and make the package. |
pascal@3902 | 17 compile_rules() |
pascal@3902 | 18 { |
pascal@3902 | 19 cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE \ |
pascal@18965 | 20 -DFREETYPE_INCLUDE_DIR=/usr/include/freetype2 \ |
pascal@9111 | 21 -DPODOFO_BUILD_STATIC:BOOL=TRUE \ |
pascal@3902 | 22 -DPODOFO_BUILD_SHARED:BOOL=TRUE . && |
pascal@3902 | 23 make && |
pascal@15000 | 24 make DESTDIR=$DESTDIR install |
pascal@3902 | 25 } |
pascal@3902 | 26 |
pascal@3902 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@3902 | 28 genpkg_rules() |
pascal@3902 | 29 { |
pascal@3902 | 30 mkdir -p $fs/usr/lib |
pascal@15000 | 31 cp -a $install/usr/bin $fs/usr |
pascal@15000 | 32 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pascal@3902 | 33 } |