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