diff options
author | Thierry N <thierryn1 at hispeed dot ch> | 2009-08-11 19:16:08 +0200 |
---|---|---|
committer | Thierry N <thierryn1 at hispeed dot ch> | 2009-08-11 19:16:08 +0200 |
commit | 0805619d809ee27d2c780cb367d9c746543a9ec1 (patch) | |
tree | e9a6cee693be6aaa379e3a43419bb3e8ef00a79c /extra/libmad | |
parent | da02ac06dd7a5aed3b32557ea088215e7cedde9f (diff) | |
download | nutyx-extra-0805619d809ee27d2c780cb367d9c746543a9ec1.tar.gz nutyx-extra-0805619d809ee27d2c780cb367d9c746543a9ec1.tar.bz2 nutyx-extra-0805619d809ee27d2c780cb367d9c746543a9ec1.tar.xz nutyx-extra-0805619d809ee27d2c780cb367d9c746543a9ec1.zip |
Ajout de libmad#0.15.1b-2
Diffstat (limited to 'extra/libmad')
-rw-r--r-- | extra/libmad/.footprint | 11 | ||||
-rw-r--r-- | extra/libmad/.md5sum | 3 | ||||
-rwxr-xr-x | extra/libmad/Pkgfile | 37 | ||||
-rw-r--r-- | extra/libmad/libmad.patch | 13 | ||||
-rw-r--r-- | extra/libmad/mad.pc | 11 |
5 files changed, 75 insertions, 0 deletions
diff --git a/extra/libmad/.footprint b/extra/libmad/.footprint new file mode 100644 index 000000000..0325aa9ae --- /dev/null +++ b/extra/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/extra/libmad/.md5sum b/extra/libmad/.md5sum new file mode 100644 index 000000000..10e9cd31c --- /dev/null +++ b/extra/libmad/.md5sum @@ -0,0 +1,3 @@ +1be543bc30c56fb6bea1d7bf6a64e66c libmad-0.15.1b.tar.gz +2612dee908a8ab4ceae5c7e552c70ab0 libmad.patch +5cc156f1f0ba8c6226656244480da852 mad.pc 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 +} diff --git a/extra/libmad/libmad.patch b/extra/libmad/libmad.patch new file mode 100644 index 000000000..a6120254c --- /dev/null +++ b/extra/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" + diff --git a/extra/libmad/mad.pc b/extra/libmad/mad.pc new file mode 100644 index 000000000..7205d9ce2 --- /dev/null +++ b/extra/libmad/mad.pc @@ -0,0 +1,11 @@ +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} |