CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
libmad: fixed build avoiding thumb instructions.
authorVictor Martinez <pitillo@ono.com>
Tue, 23 Aug 2011 07:06:25 +0000 (07:06 +0000)
committerVictor Martinez <pitillo@ono.com>
Tue, 23 Aug 2011 07:06:25 +0000 (07:06 +0000)
libmad/.footprint [new file with mode: 0644]
libmad/.md5sum [new file with mode: 0644]
libmad/Pkgfile [new file with mode: 0644]
libmad/mad.pc [new file with mode: 0644]

diff --git a/libmad/.footprint b/libmad/.footprint
new file mode 100644 (file)
index 0000000..0325aa9
--- /dev/null
@@ -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 (file)
index 0000000..8d572ce
--- /dev/null
@@ -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 (file)
index 0000000..91f065f
--- /dev/null
@@ -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 (file)
index 0000000..1331ce3
--- /dev/null
@@ -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}