summaryrefslogtreecommitdiffstats
path: root/extra/libmad/Pkgfile
blob: 3fc11848bd7fcb21142851b2051e25d71273d6ab (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
37
# 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
# Depends on:

name=libmad
version=0.15.1b
release=2
source=(ftp://ftp.mars.org/pub/mpeg/$name-$version.tar.gz\
	mad.pc libmad.patch)


build() {
	mkdir -p $PKG/usr/lib/pkgconfig/
#        sed "s/#version#/$version/" mad.pc > $PKG/usr/lib/pkgconfig/mad.pc
	cd $name-$version
	patch -Np1 -i ../libmad.patch
	./configure --prefix=/usr \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make
	make DESTDIR=$PKG install
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: 0.15.1b
Libs: -L${libdir} -lmad
Cflags: -I${includedir}
EOF
}