wok-next annotate optipng/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents 5669e8b3be70
children
rev   line source
al@19781 1 # SliTaz package receipt v2.
pankso@3348 2
pankso@3348 3 PACKAGE="optipng"
al@21132 4 VERSION="0.7.7"
al@14737 5 CATEGORY="utilities"
al@19781 6 SHORT_DESC="Compress and optimize PNG images"
al@21020 7 MAINTAINER="devel@slitaz.org"
al@14737 8 LICENSE="zlib/libpng"
al@14737 9 WEB_SITE="http://optipng.sourceforge.net/"
al@19607 10
pankso@3348 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@3348 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
al@21132 13 TARBALL_SHA1="68aa89fbde642b104aeefa9efbc4dfbb936fa630"
pankso@3348 14
al@21132 15 BUILD_DEPENDS="libpng-dev zlib-dev zlib-static"
al@21020 16 SPLIT="$PACKAGE-static:static"
al@14737 17
al@21132 18 COPY_static="@std"
al@21132 19
al@21132 20 CAT_static="graphics|static binary"
al@21132 21 PROVIDE_static="optipng"
al@21132 22
al@21132 23 DEPENDS_std="libpng zlib"
al@21132 24 DEPENDS_static=" "
al@21132 25
al@21132 26 TAGS="image compression"
al@21132 27
al@20443 28 compile_rules() {
pascal@19293 29 sed -i 's|prefix)/man|prefix)/share/man|' configure
al@19607 30
al@20443 31 case "$SET" in
al@20443 32 static)
al@20443 33 LDFLAGS='-static' \
al@20443 34 ./configure \
al@20443 35 -prefix=/usr \
al@20443 36 -with-system-libpng
al@20443 37 ;;
al@20443 38 *)
al@20443 39 ./configure \
al@20443 40 -prefix=/usr \
al@20443 41 -with-system-libpng
al@20443 42 ;;
al@20443 43 esac &&
al@19781 44
al@21020 45 make &&
al@21020 46 make install
pankso@3348 47 }