wok view libpng/receipt @ rev 25678
Patch ghostscript CVE-2023-36664
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Mar 08 14:12:03 2024 +0100 (5 months ago) |
parents | 7a8b9cd09212 |
children |
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 # What is the latest version available today?
23 current_version()
24 {
25 wget -O - https://sourceforge.net/projects/libpng/files/ 2>/dev/null | \
26 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
27 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
28 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
29 }
31 # Rules to configure and make the package.
32 compile_rules()
33 {
34 cd $src
35 ./configure \
36 --enable-shared \
37 --prefix=/usr \
38 --mandir=/usr/share/man \
39 $CONFIGURE_ARGS &&
40 make &&
41 make DESTDIR=$DESTDIR install
43 cd contrib/pngminus
44 make PNGLIB="-L$DESTDIR/usr/lib -lpng" -f makefile.std png2pnm pnm2png
45 mkdir -p $DESTDIR/usr/bin
46 cp -a png2pnm pnm2png $DESTDIR/usr/bin
47 }
49 # Rules to gen a SliTaz package suitable for Tazpkg.
50 genpkg_rules()
51 {
52 mkdir -p $fs/usr/lib
53 cp -a $install/usr/lib/libpng*.so* $fs/usr/lib
54 cp -a $install/usr/bin $fs/usr
55 }