wok-next diff optipng/receipt @ rev 20454
Choose between libpng16 and libpng12
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Feb 28 17:32:31 2018 +0200 (2018-02-28) |
parents | f5bfda4cdfe9 |
children | d5aab818505e |
line diff
1.1 --- a/optipng/receipt Mon Jun 19 04:02:32 2017 +0300 1.2 +++ b/optipng/receipt Wed Feb 28 17:32:31 2018 +0200 1.3 @@ -13,39 +13,36 @@ 1.4 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" 1.5 1.6 BUILD_DEPENDS="libpng16-dev zlib-dev" 1.7 -SPLIT="optipng-static" 1.8 +SPLIT="optipng optipng-static:static" 1.9 1.10 -# Rules to configure and make the package. 1.11 -compile_rules() 1.12 -{ 1.13 +compile_rules() { 1.14 sed -i 's|prefix)/man|prefix)/share/man|' configure 1.15 1.16 - # make statically linked binary 1.17 - LDFLAGS='-static' \ 1.18 - ./configure \ 1.19 - -prefix=/usr \ 1.20 - -bindir=/usr/sbin \ 1.21 - -with-system-libpng && 1.22 - make && make install && 1.23 + case "$SET" in 1.24 + static) 1.25 + LDFLAGS='-static' \ 1.26 + ./configure \ 1.27 + -prefix=/usr \ 1.28 + -with-system-libpng 1.29 + ;; 1.30 + *) 1.31 + ./configure \ 1.32 + -prefix=/usr \ 1.33 + -with-system-libpng 1.34 + ;; 1.35 + esac && 1.36 1.37 - # make dynamically linked binary 1.38 - make clean && 1.39 - ./configure \ 1.40 - -prefix=/usr \ 1.41 - -with-system-libpng && 1.42 make && make install 1.43 } 1.44 1.45 -# Rules to gen a SliTaz package suitable for Tazpkg. 1.46 -genpkg_rules() 1.47 -{ 1.48 +genpkg_rules() { 1.49 case $PACKAGE in 1.50 optipng) 1.51 - copy bin/optipng 1.52 + copy @std 1.53 DEPENDS="libpng16 zlib" 1.54 ;; 1.55 optipng-static) 1.56 - copy sbin/optipng 1.57 + copy @std 1.58 CAT="graphics|static binary" 1.59 PROVIDE="optipng" 1.60 DEPENDS=" "