wok-next view optipng/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | 0e7893ac206d |
children | 5669e8b3be70 |
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="devel@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="$PACKAGE-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 &&
36 make install
37 }
39 genpkg_rules() {
40 case $PACKAGE in
41 optipng)
42 copy @std
43 DEPENDS="libpng16 zlib"
44 ;;
45 optipng-static)
46 copy @std
47 CAT="graphics|static binary"
48 PROVIDE="optipng"
49 DEPENDS=" "
50 ;;
51 esac
52 }