wok-next annotate optipng/receipt @ rev 20957
Random updates
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Sep 05 15:26:05 2018 +0300 (2018-09-05) |
parents | f5bfda4cdfe9 |
children | d5aab818505e |
rev | line source |
---|---|
al@19781 | 1 # SliTaz package receipt v2. |
pankso@3348 | 2 |
pankso@3348 | 3 PACKAGE="optipng" |
al@19607 | 4 VERSION="0.7.6" |
al@14737 | 5 CATEGORY="utilities" |
al@19781 | 6 SHORT_DESC="Compress and optimize PNG images" |
pankso@3348 | 7 MAINTAINER="pankso@slitaz.org" |
al@14737 | 8 LICENSE="zlib/libpng" |
al@14737 | 9 WEB_SITE="http://optipng.sourceforge.net/" |
al@19607 | 10 TAGS="image compression" |
al@19607 | 11 |
pankso@3348 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@3348 | 13 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
pankso@3348 | 14 |
al@19781 | 15 BUILD_DEPENDS="libpng16-dev zlib-dev" |
al@20443 | 16 SPLIT="optipng optipng-static:static" |
al@14737 | 17 |
al@20443 | 18 compile_rules() { |
pascal@19293 | 19 sed -i 's|prefix)/man|prefix)/share/man|' configure |
al@19607 | 20 |
al@20443 | 21 case "$SET" in |
al@20443 | 22 static) |
al@20443 | 23 LDFLAGS='-static' \ |
al@20443 | 24 ./configure \ |
al@20443 | 25 -prefix=/usr \ |
al@20443 | 26 -with-system-libpng |
al@20443 | 27 ;; |
al@20443 | 28 *) |
al@20443 | 29 ./configure \ |
al@20443 | 30 -prefix=/usr \ |
al@20443 | 31 -with-system-libpng |
al@20443 | 32 ;; |
al@20443 | 33 esac && |
al@19781 | 34 |
al@19781 | 35 make && make install |
pankso@3348 | 36 } |
pankso@3348 | 37 |
al@20443 | 38 genpkg_rules() { |
al@19781 | 39 case $PACKAGE in |
al@19781 | 40 optipng) |
al@20443 | 41 copy @std |
al@19781 | 42 DEPENDS="libpng16 zlib" |
al@19781 | 43 ;; |
al@19781 | 44 optipng-static) |
al@20443 | 45 copy @std |
al@19784 | 46 CAT="graphics|static binary" |
al@19781 | 47 PROVIDE="optipng" |
al@19781 | 48 DEPENDS=" " |
al@19781 | 49 ;; |
al@19781 | 50 esac |
pankso@3348 | 51 } |