wok view libpng/receipt @ rev 24422

updated claws-mail packages (3.17.5 -> 3.18.0)
author Hans-G?nter Theisgen
date Fri Feb 11 16:39:51 2022 +0100 (2022-02-11)
parents 8e57efb79b16
children d3556b8f5c3d
line source
1 # SliTaz package receipt.
3 PACKAGE="libpng"
4 VERSION="1.2.56"
5 CATEGORY="x-window"
6 SHORT_DESC="PNG images library."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="zlib/libpng"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://libpng.org/pub/png/libpng.html"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
12 HOST_ARCH="i486 arm"
14 DEPENDS="zlib"
15 BUILD_DEPENDS="pkg-config gawk zlib-dev"
17 # Handle cross compilation.
18 case "$ARCH" in
19 arm) BUILD_DEPENDS="" ;;
20 esac
22 current_version()
23 {
24 wget -O - https://sourceforge.net/projects/libpng/files/ 2>/dev/null | \
25 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
26 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
27 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
28 }
30 # Rules to configure and make the package.
31 compile_rules()
32 {
33 cd $src
34 ./configure \
35 --enable-shared \
36 --prefix=/usr \
37 --mandir=/usr/share/man \
38 $CONFIGURE_ARGS &&
39 make &&
40 make DESTDIR=$DESTDIR install
42 cd contrib/pngminus
43 make PNGLIB="-L$DESTDIR/usr/lib -lpng" -f makefile.std png2pnm pnm2png
44 mkdir -p $DESTDIR/usr/bin
45 cp -a png2pnm pnm2png $DESTDIR/usr/bin
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 mkdir -p $fs/usr/lib
52 cp -a $install/usr/lib/libpng*.so* $fs/usr/lib
53 cp -a $install/usr/bin $fs/usr
54 }