summaryrefslogtreecommitdiffstats
path: root/extra/libmad/Pkgfile
diff options
context:
space:
mode:
authorThierry N <thierryn1 at hispeed dot ch>2009-08-11 19:16:08 +0200
committerThierry N <thierryn1 at hispeed dot ch>2009-08-11 19:16:08 +0200
commit0805619d809ee27d2c780cb367d9c746543a9ec1 (patch)
treee9a6cee693be6aaa379e3a43419bb3e8ef00a79c /extra/libmad/Pkgfile
parentda02ac06dd7a5aed3b32557ea088215e7cedde9f (diff)
downloadnutyx-pakxe-0805619d809ee27d2c780cb367d9c746543a9ec1.tar.gz
nutyx-pakxe-0805619d809ee27d2c780cb367d9c746543a9ec1.tar.bz2
nutyx-pakxe-0805619d809ee27d2c780cb367d9c746543a9ec1.tar.xz
nutyx-pakxe-0805619d809ee27d2c780cb367d9c746543a9ec1.zip
Ajout de libmad#0.15.1b-2
Diffstat (limited to 'extra/libmad/Pkgfile')
-rwxr-xr-xextra/libmad/Pkgfile37
1 files changed, 37 insertions, 0 deletions
diff --git a/extra/libmad/Pkgfile b/extra/libmad/Pkgfile
new file mode 100755
index 000000000..3fc11848b
--- /dev/null
+++ b/extra/libmad/Pkgfile
@@ -0,0 +1,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
+}