wok-next rev 11336
Up: libpng (1.4.8)
author | Alexander Medvedev <devl547@gmail.com> |
---|---|
date | Fri Nov 25 09:54:50 2011 +0000 (2011-11-25) |
parents | 7bae315c3aac |
children | 62a2f3d36fba |
files | libpng-dev/receipt libpng/receipt |
line diff
1.1 --- a/libpng-dev/receipt Fri Nov 25 08:31:09 2011 +0000 1.2 +++ b/libpng-dev/receipt Fri Nov 25 09:54:50 2011 +0000 1.3 @@ -1,7 +1,7 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="libpng-dev" 1.7 -VERSION="1.2.44" 1.8 +VERSION="1.4.8" 1.9 CATEGORY="development" 1.10 SHORT_DESC="PNG images library devel files." 1.11 MAINTAINER="pankso@slitaz.org"
2.1 --- a/libpng/receipt Fri Nov 25 08:31:09 2011 +0000 2.2 +++ b/libpng/receipt Fri Nov 25 09:54:50 2011 +0000 2.3 @@ -1,32 +1,44 @@ 2.4 # SliTaz package receipt. 2.5 2.6 PACKAGE="libpng" 2.7 -VERSION="1.2.44" 2.8 +VERSION="1.4.8" 2.9 CATEGORY="x-window" 2.10 SHORT_DESC="PNG images library." 2.11 MAINTAINER="pankso@slitaz.org" 2.12 TARBALL="$PACKAGE-$VERSION.tar.bz2" 2.13 BUILD_DEPENDS="pkg-config" 2.14 WEB_SITE="http://libpng.org/pub/png/libpng.html" 2.15 -WGET_URL="$SF_MIRROR/libpng/$TARBALL" 2.16 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 2.17 DEPENDS="zlib" 2.18 2.19 +PATCH="$SF_MIRROR/libpng-apng/$PACKAGE-$VERSION-apng.patch.gz" 2.20 + 2.21 # Rules to configure and make the package. 2.22 compile_rules() 2.23 { 2.24 - cd $src 2.25 - ./configure \ 2.26 - --enable-shared \ 2.27 - --prefix=/usr \ 2.28 - --mandir=/usr/share/man \ 2.29 - $CONFIGURE_ARGS && 2.30 - make && 2.31 - make DESTDIR=$PWD/_pkg install 2.32 + cd $src 2.33 + wget $PATCH 2.34 + # Add animated PNG (apng) support 2.35 + # see http://sourceforge.net/projects/libpng-apng/ 2.36 + zcat $(basename $PATCH) | patch -p1 2.37 + ./configure \ 2.38 + --enable-shared \ 2.39 + --prefix=/usr \ 2.40 + --mandir=/usr/share/man \ 2.41 + $CONFIGURE_ARGS && 2.42 + make && 2.43 + make DESTDIR=$DESTDIR install 2.44 + 2.45 + cd contrib/pngminus 2.46 + make PNGLIB="-L$DESTDIR/usr/lib -lpng" -f makefile.std png2pnm pnm2png 2.47 + mkdir -p $DESTDIR/usr/bin 2.48 + cp -a png2pnm pnm2png $DESTDIR/usr/bin 2.49 } 2.50 2.51 # Rules to gen a SliTaz package suitable for Tazpkg. 2.52 genpkg_rules() 2.53 { 2.54 mkdir -p $fs/usr/lib 2.55 - cp -a $_pkg/usr/lib/libpng*.so* $fs/usr/lib 2.56 + cp -a $_pkg/usr/lib/libpng*.so* $fs/usr/lib 2.57 + cp -a $_pkg/usr/bin $fs/usr 2.58 }