blob: d97d7a4b5f354284fc7f0d1acfaff3b5f9de197c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Description: Décodeur MPEG audio de haute qualité
# URL: http://www.underbit.com/products/mad/
# Maintainer: NuTyX core team
# Packager: thierryn1 at hispeed dot ch
name=libmad
version=0.15.1b
release=2
source=(ftp://ftp.mars.org/pub/mpeg/$name-$version.tar.gz\
libmad.patch)
build() {
cd $name-$version
patch -Np1 -i ../libmad.patch
./configure --prefix=/usr \
--mandir=/usr/share/man \
--infodir=/usr/share/info
make
make DESTDIR=$PKG install
mkdir -p $PKG/usr/lib/pkgconfig
cat > $PKG/usr/lib/pkgconfig/mad.pc << "EOF"
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
Name: mad
Description: MPEG audio decoder
Requires:
Version: #version#
Libs: -L${libdir} -lmad
Cflags: -I${includedir}
EOF
sed -i "s/#version#/$version/" $PKG/usr/lib/pkgconfig/mad.pc
}
|