summaryrefslogtreecommitdiffstats
path: root/libmad/Pkgfile
blob: 8ffe1956356f35a0a46593db7bddafd61fe6c221 (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\
	http://nutyx.meticul.eu/files/patchs/$name/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
}