wok-current view libmng/receipt @ rev 25701

Fix dep for libglamoregl.so (libepoxy), and miss file for amdgpu (thanks alanyih)
author Stanislas Leduc <shann@slitaz.org>
date Fri Apr 19 12:48:51 2024 +0000 (8 weeks ago)
parents b0069c845544
children
line source
1 # SliTaz package receipt.
3 PACKAGE="libmng"
4 VERSION="2.0.3"
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="https://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
29 # Patch for libmng 2.0.2 to build with jpeg9
30 # see http://bugs.gentoo.org/520906
31 patch -p1 <$stuff/libmng-2.0.2-jpeg9.patch
34 autoreconf -f -i &&
35 ./configure \
36 --prefix=/usr \
37 --infodir=/usr/share/info \
38 --mandir=/usr/share/man \
39 $CONFIGURE_ARGS &&
40 make && make DESTDIR=$DESTDIR install
41 }
43 # Rules to gen a SliTaz package suitable for Tazpkg.
44 genpkg_rules()
45 {
46 mkdir -p $fs/usr/lib
47 cp -a $install/usr/lib/*.so* $fs/usr/lib
48 }