wok-next view optipng/receipt @ rev 21103

emacs: depends on emacs-common
author Aleksej Bobylev <al.bobylev@gmail.com>
date Thu Jan 03 11:21:15 2019 +0200 (2019-01-03)
parents d5aab818505e
children 9956c9a95aa1
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="libpng-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="libpng zlib"
44 ;;
45 optipng-static)
46 copy @std
47 CAT="graphics|static binary"
48 PROVIDE="optipng"
49 DEPENDS=" "
50 ;;
51 esac
52 }