wok-next view optipng/receipt @ rev 20667

qemu/qemu-light: race condition, ppp/sane-backends: set group
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri May 11 09:27:12 2018 +0200 (2018-05-11)
parents f5bfda4cdfe9
children d5aab818505e
line source
1 # SliTaz package receipt v2.
3 PACKAGE="optipng"
4 VERSION="0.7.6"
5 CATEGORY="utilities"
6 SHORT_DESC="Compress and optimize PNG images"
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="zlib/libpng"
9 WEB_SITE="http://optipng.sourceforge.net/"
10 TAGS="image compression"
12 TARBALL="$PACKAGE-$VERSION.tar.gz"
13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
15 BUILD_DEPENDS="libpng16-dev zlib-dev"
16 SPLIT="optipng optipng-static:static"
18 compile_rules() {
19 sed -i 's|prefix)/man|prefix)/share/man|' configure
21 case "$SET" in
22 static)
23 LDFLAGS='-static' \
24 ./configure \
25 -prefix=/usr \
26 -with-system-libpng
27 ;;
28 *)
29 ./configure \
30 -prefix=/usr \
31 -with-system-libpng
32 ;;
33 esac &&
35 make && make install
36 }
38 genpkg_rules() {
39 case $PACKAGE in
40 optipng)
41 copy @std
42 DEPENDS="libpng16 zlib"
43 ;;
44 optipng-static)
45 copy @std
46 CAT="graphics|static binary"
47 PROVIDE="optipng"
48 DEPENDS=" "
49 ;;
50 esac
51 }