From 3862bf672aa90e1649ef44c0d9c444a32a4cf607 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Tue, 23 Aug 2011 07:06:25 +0000 Subject: [PATCH] libmad: fixed build avoiding thumb instructions. --- libmad/.footprint | 11 +++++++++++ libmad/.md5sum | 2 ++ libmad/Pkgfile | 28 ++++++++++++++++++++++++++++ libmad/mad.pc | 11 +++++++++++ 4 files changed, 52 insertions(+) create mode 100644 libmad/.footprint create mode 100644 libmad/.md5sum create mode 100644 libmad/Pkgfile create mode 100644 libmad/mad.pc diff --git a/libmad/.footprint b/libmad/.footprint new file mode 100644 index 0000000..0325aa9 --- /dev/null +++ b/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/libmad/.md5sum b/libmad/.md5sum new file mode 100644 index 0000000..8d572ce --- /dev/null +++ b/libmad/.md5sum @@ -0,0 +1,2 @@ +1be543bc30c56fb6bea1d7bf6a64e66c libmad-0.15.1b.tar.gz +1cef30792b753edc633e5a0122897e59 mad.pc diff --git a/libmad/Pkgfile b/libmad/Pkgfile new file mode 100644 index 0000000..91f065f --- /dev/null +++ b/libmad/Pkgfile @@ -0,0 +1,28 @@ +# Description: High-quality MPEG Audio Decoder library +# URL: http://www.underbit.com/products/mad/ +# Packager: Rene Thuemmler, rene dot thuemmler at gmx dot net +# Maintainer: Simon Glossner, viper at hometux dot de +# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu + +name=libmad +version=0.15.1b +release=4 +source=(http://download.sourceforge.net/mad/${name}-${version}.tar.gz \ + mad.pc) + +build() { + # We avoid thumb instructions over CFLAGS + export CFLAGS="$(echo $CFLAGS | sed -e 's/\-mthumb//')" + + mkdir -p $PKG/usr/lib/pkgconfig/ + sed "s/#version#/$version/" mad.pc > $PKG/usr/lib/pkgconfig/mad.pc + + cd $name-$version + + # remove -fforce-mem + sed -i '19102d' configure + + ./configure --prefix=/usr + make + make DESTDIR=$PKG install +} diff --git a/libmad/mad.pc b/libmad/mad.pc new file mode 100644 index 0000000..1331ce3 --- /dev/null +++ b/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 -lm +Cflags: -I${includedir} -- 2.26.2