wok annotate podofo/receipt @ rev 9301

Add perl-xml-twig.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Mar 17 13:57:54 2011 +0000 (2011-03-17)
parents f3327707164a
children e00bd32be155
rev   line source
pascal@3902 1 # SliTaz package receipt.
pascal@3902 2
pascal@3902 3 PACKAGE="podofo"
pascal@3902 4 VERSION="0.7.0"
pascal@3902 5 CATEGORY="office"
pascal@3902 6 SHORT_DESC="PDF library."
pascal@3902 7 MAINTAINER="pankso@slitaz.org"
pascal@3902 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@3902 9 WEB_SITE="http://podofo.sourceforge.net/"
pascal@3902 10 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@5005 11 DEPENDS="fontconfig freetype zlib jpeg tiff gcc-lib-base"
pascal@3902 12 BUILD_DEPENDS="cmake fontconfig-dev freetype-dev zlib-dev jpeg-dev tiff-dev"
pascal@3902 13
pascal@3902 14 # Rules to configure and make the package.
pascal@3902 15 compile_rules()
pascal@3902 16 {
pascal@3902 17 cd $src
pascal@3902 18 cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=RELEASE \
pascal@9111 19 -DPODOFO_BUILD_STATIC:BOOL=TRUE \
pascal@3902 20 -DPODOFO_BUILD_SHARED:BOOL=TRUE . &&
pascal@3902 21 make &&
pascal@3902 22 make DESTDIR=$PWD/_pkg install
pascal@3902 23 }
pascal@3902 24
pascal@3902 25 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@3902 26 genpkg_rules()
pascal@3902 27 {
pascal@3902 28 mkdir -p $fs/usr/lib
pascal@3902 29 cp -a $_pkg/usr/bin $fs/usr
pascal@3902 30 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
pascal@3902 31 }
pascal@3902 32