wok-current annotate libmng/receipt @ rev 25102

Use archive.org for some broken wget_url
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 21 16:00:20 2022 +0000 (2022-06-21)
parents 7b41ff9ba5dd
children b0069c845544
rev   line source
allan316@4547 1 # SliTaz package receipt.
allan316@4547 2
allan316@4547 3 PACKAGE="libmng"
erjo@5929 4 VERSION="1.0.10"
allan316@4547 5 CATEGORY="development"
allan316@4547 6 SHORT_DESC="library for multi network graphics"
allan316@4547 7 MAINTAINER="allan316@gmail.com"
pascal@15473 8 LICENSE="BSD"
allan316@4547 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
allan316@4547 10 WEB_SITE="http://libmng.sourceforge.net"
allan316@4547 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
allan316@4547 12
pascal@15327 13 DEPENDS="lcms jpeg zlib"
pascal@15647 14 BUILD_DEPENDS="autoconf automake lcms-dev jpeg-dev libtool"
pascal@15327 15
pascal@24411 16 # What is the latest version available today?
pascal@24411 17 current_version()
pascal@24411 18 {
pascal@24411 19 wget -O - https://sourceforge.net/projects/libmng/files/libmng-devel/ 2>/dev/null | \
pascal@24411 20 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \
pascal@24411 21 sed '/scope="row/!d;s|.*/libmng-devel/||;s|/.*||;q'
pascal@24411 22 }
pascal@24411 23
allan316@4547 24 # Rules to configure and make the package.
allan316@4547 25 compile_rules()
allan316@4547 26 {
allan316@4547 27 cd $src
pascal@15327 28 sed -i 's/ [^ ]*ansi2knr//' makefiles/configure.in makefiles/Makefile.am
pascal@15327 29 sed -i 's/AM_C_PROTOTYPES/# &/' makefiles/configure.in
allan316@4547 30 ln -sf makefiles/configure.in . &&
allan316@4547 31 ln -sf makefiles/Makefile.am . &&
allan316@4547 32 autoreconf -f -i &&
allan316@4547 33 ./configure \
allan316@4547 34 --prefix=/usr \
allan316@4547 35 --infodir=/usr/share/info \
allan316@4547 36 --mandir=/usr/share/man \
allan316@4547 37 $CONFIGURE_ARGS &&
pascal@15327 38 make && make DESTDIR=$DESTDIR install
allan316@4547 39 }
allan316@4547 40
allan316@4547 41 # Rules to gen a SliTaz package suitable for Tazpkg.
allan316@4547 42 genpkg_rules()
allan316@4547 43 {
allan316@4547 44 mkdir -p $fs/usr/lib
pascal@15327 45 cp -a $install/usr/lib/*.so* $fs/usr/lib
allan316@4547 46 }
allan316@4547 47