wok-next view optipng/receipt @ rev 19823

Forgot to remove *-dev parts.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Jul 29 17:34:46 2017 +0300 (2017-07-29)
parents 028634d82da8
children 0e7893ac206d
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-static"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 sed -i 's|prefix)/man|prefix)/share/man|' configure
23 # make statically linked binary
24 LDFLAGS='-static' \
25 ./configure \
26 -prefix=/usr \
27 -bindir=/usr/sbin \
28 -with-system-libpng &&
29 make && make install &&
31 # make dynamically linked binary
32 make clean &&
33 ./configure \
34 -prefix=/usr \
35 -with-system-libpng &&
36 make && make install
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 case $PACKAGE in
43 optipng)
44 copy bin/optipng
45 DEPENDS="libpng16 zlib"
46 ;;
47 optipng-static)
48 copy sbin/optipng
49 CAT="graphics|static binary"
50 PROVIDE="optipng"
51 DEPENDS=" "
52 ;;
53 esac
54 }