summaryrefslogtreecommitdiffstats
path: root/base/libmad
diff options
context:
space:
mode:
authortnut <thierryn1 at hispeed dot ch>2010-02-02 20:15:24 +0100
committertnut <thierryn1 at hispeed dot ch>2010-02-02 20:15:24 +0100
commit7ab7b078079db0ec8713067bd21d26fb1df8ff62 (patch)
treee68d262f40945e547a793b2475da447a74673248 /base/libmad
parentae548101a52d2c728afad7bad76874baa5ffa6e1 (diff)
downloadnutyx-extra-7ab7b078079db0ec8713067bd21d26fb1df8ff62.tar.gz
nutyx-extra-7ab7b078079db0ec8713067bd21d26fb1df8ff62.tar.bz2
nutyx-extra-7ab7b078079db0ec8713067bd21d26fb1df8ff62.tar.xz
nutyx-extra-7ab7b078079db0ec8713067bd21d26fb1df8ff62.zip
libmad, déplacé dans base et nettoyage du paquet
Diffstat (limited to 'base/libmad')
-rw-r--r--base/libmad/.footprint11
-rw-r--r--base/libmad/.md5sum2
-rwxr-xr-xbase/libmad/Pkgfile36
-rw-r--r--base/libmad/libmad.patch13
4 files changed, 62 insertions, 0 deletions
diff --git a/base/libmad/.footprint b/base/libmad/.footprint
new file mode 100644
index 000000000..0325aa9ae
--- /dev/null
+++ b/base/libmad/.footprint
@@ -0,0 +1,11 @@
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/include/
+-rw-r--r-- root/root usr/include/mad.h
+drwxr-xr-x root/root usr/lib/
+-rw-r--r-- root/root usr/lib/libmad.a
+-rwxr-xr-x root/root usr/lib/libmad.la
+lrwxrwxrwx root/root usr/lib/libmad.so -> libmad.so.0.2.1
+lrwxrwxrwx root/root usr/lib/libmad.so.0 -> libmad.so.0.2.1
+-rwxr-xr-x root/root usr/lib/libmad.so.0.2.1
+drwxr-xr-x root/root usr/lib/pkgconfig/
+-rw-r--r-- root/root usr/lib/pkgconfig/mad.pc
diff --git a/base/libmad/.md5sum b/base/libmad/.md5sum
new file mode 100644
index 000000000..21e2d9857
--- /dev/null
+++ b/base/libmad/.md5sum
@@ -0,0 +1,2 @@
+1be543bc30c56fb6bea1d7bf6a64e66c libmad-0.15.1b.tar.gz
+2612dee908a8ab4ceae5c7e552c70ab0 libmad.patch
diff --git a/base/libmad/Pkgfile b/base/libmad/Pkgfile
new file mode 100755
index 000000000..d97d7a4b5
--- /dev/null
+++ b/base/libmad/Pkgfile
@@ -0,0 +1,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
+}
diff --git a/base/libmad/libmad.patch b/base/libmad/libmad.patch
new file mode 100644
index 000000000..a6120254c
--- /dev/null
+++ b/base/libmad/libmad.patch
@@ -0,0 +1,13 @@
+diff -ur libmad.old/configure.ac libmad-0.15.1b/configure.ac
+--- libmad.old/configure.ac 2004-01-23 09:41:32.000000000 +0000
++++ libmad-0.15.1b/configure.ac 2007-12-26 21:06:35.000000000 +0000
+@@ -140,7 +140,7 @@
+ case "$optimize" in
+ -O|"-O "*)
+ optimize="-O"
+- optimize="$optimize -fforce-mem"
++ : #optimize="$optimize -fforce-mem"
+ optimize="$optimize -fforce-addr"
+ : #x optimize="$optimize -finline-functions"
+ : #- optimize="$optimize -fstrength-reduce"
+