wok diff optipng/receipt @ rev 15666

Add ddumbfs
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Dec 13 16:18:29 2013 +0000 (2013-12-13)
parents 5e7209003c82
children c77465c3f3e0
line diff
     1.1 --- a/optipng/receipt	Mon Oct 17 00:32:23 2011 +0000
     1.2 +++ b/optipng/receipt	Fri Dec 13 16:18:29 2013 +0000
     1.3 @@ -1,30 +1,36 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="optipng"
     1.7 -VERSION="0.6.5"
     1.8 -CATEGORY="graphics"
     1.9 +VERSION="0.7.4"
    1.10 +CATEGORY="utilities"
    1.11  SHORT_DESC="A command line tool to compress and optimize PNG images."
    1.12  MAINTAINER="pankso@slitaz.org"
    1.13 -DEPENDS="libpng zlib"
    1.14 -BUILD_DEPENDS="libpng-dev zlib-dev"
    1.15 +LICENSE="zlib/libpng"
    1.16 +WEB_SITE="http://optipng.sourceforge.net/"
    1.17  TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.18 -WEB_SITE="http://optipng.sourceforge.net/"
    1.19  WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.20  TAGS="image compression"
    1.21  
    1.22 +DEPENDS="libpng+apng"
    1.23 +BUILD_DEPENDS="libpng+apng-dev zlib-dev"
    1.24 +
    1.25  # Rules to configure and make the package.
    1.26  compile_rules()
    1.27  {
    1.28 -	cd $src/lib/zlib
    1.29 -	./configure &&
    1.30 +	./configure \
    1.31 +		-prefix=/usr \
    1.32 +		-with-system-libpng &&
    1.33  	make &&
    1.34 -	cd $src/src
    1.35 -	make -f scripts/gcc.mak
    1.36 +	make test &&
    1.37 +	make install
    1.38  }
    1.39  
    1.40  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.41  genpkg_rules()
    1.42  {
    1.43 -	mkdir -p $fs/usr/bin
    1.44 -	cp -a $src/src/optipng $fs/usr/bin
    1.45 +	mkdir -p \
    1.46 +		$fs/usr/bin \
    1.47 +		$fs/usr/share/licenses
    1.48 +	cp -a $src/LICENSE.txt $fs/usr/share/licenses/$PACKAGE.txt
    1.49 +	cp -a $install/usr/bin $fs/usr
    1.50  }