wok view libmad/receipt @ rev 25611
Add zx0
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Aug 01 18:37:27 2023 +0000 (15 months ago) |
parents | ee53899c6189 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="libmad"
4 VERSION="0.15.1b"
5 CATEGORY="multimedia"
6 SHORT_DESC="MAD is a high-quality MPEG audio decoder."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.underbit.com/products/mad/"
11 WGET_URL="$SF_MIRROR/mad/$TARBALL"
12 HOST_ARCH="i486 arm"
14 # What is the latest version available today?
15 current_version()
16 {
17 wget -O - https://sourceforge.net/projects/mad/files/libmad/ 2>/dev/null | \
18 sed '/scope="row/!d;s|.*a href="|"https://sourceforge.net|;s| .*||;q' | xargs wget -O - 2>/dev/null | \
19 sed "/$PACKAGE-/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|;q"
20 }
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 sed -i '/-fforce-mem/d' ./configure
26 ./configure --prefix=/usr $CONFIGURE_ARGS &&
27 make && make DESTDIR=$DESTDIR install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/lib
34 cp -a $install/usr/lib/*.so* $fs/usr/lib
35 }