From d36e67f02f4144c7a3e3d1128977675b74898a3a Mon Sep 17 00:00:00 2001 From: Thierry N Date: Wed, 12 Aug 2009 20:56:16 +0200 Subject: Ajout de wavpack#4.50.1-2 --- extra/wavpack/.footprint | 15 +++++++++++++++ extra/wavpack/.md5sum | 2 ++ extra/wavpack/Pkgfile | 22 ++++++++++++++++++++++ extra/wavpack/gcc44.patch | 24 ++++++++++++++++++++++++ 4 files changed, 63 insertions(+) create mode 100644 extra/wavpack/.footprint create mode 100644 extra/wavpack/.md5sum create mode 100755 extra/wavpack/Pkgfile create mode 100644 extra/wavpack/gcc44.patch (limited to 'extra/wavpack') diff --git a/extra/wavpack/.footprint b/extra/wavpack/.footprint new file mode 100644 index 000000000..f89043cd1 --- /dev/null +++ b/extra/wavpack/.footprint @@ -0,0 +1,15 @@ +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/wavpack +-rwxr-xr-x root/root usr/bin/wvgain +-rwxr-xr-x root/root usr/bin/wvunpack +drwxr-xr-x root/root usr/include/ +drwxr-xr-x root/root usr/include/wavpack/ +-rw-r--r-- root/root usr/include/wavpack/wavpack.h +drwxr-xr-x root/root usr/lib/ +-rwxr-xr-x root/root usr/lib/libwavpack.la +lrwxrwxrwx root/root usr/lib/libwavpack.so -> libwavpack.so.1.0.3 +lrwxrwxrwx root/root usr/lib/libwavpack.so.1 -> libwavpack.so.1.0.3 +-rwxr-xr-x root/root usr/lib/libwavpack.so.1.0.3 +drwxr-xr-x root/root usr/lib/pkgconfig/ +-rw-r--r-- root/root usr/lib/pkgconfig/wavpack.pc diff --git a/extra/wavpack/.md5sum b/extra/wavpack/.md5sum new file mode 100644 index 000000000..df7e9490e --- /dev/null +++ b/extra/wavpack/.md5sum @@ -0,0 +1,2 @@ +75320685d1b2fbc8b880c56bd85d25b7 gcc44.patch +2c9d7e3672f60070d4fd2c86c924a3b4 wavpack-4.50.1.tar.bz2 diff --git a/extra/wavpack/Pkgfile b/extra/wavpack/Pkgfile new file mode 100755 index 000000000..09f6c6851 --- /dev/null +++ b/extra/wavpack/Pkgfile @@ -0,0 +1,22 @@ +# Description: Format de compression audio ouvert et sans perte +# URL: http://www.wavpack.com/ +# Maintainer: NuTyX core team +# Packager: fred.galusik at gmail.com +# Depends on: glibc + +name=wavpack +version=4.50.1 +release=2 +source=(http://www.wavpack.com/$name-$version.tar.bz2\ + gcc44.patch) + +build() { +cd $name-$version +patch -Np0 -i ../gcc44.patch + ./configure --prefix=/usr \ + --enable-mmx \ + --enable-static=no + make + make DESTDIR=$PKG install +} + diff --git a/extra/wavpack/gcc44.patch b/extra/wavpack/gcc44.patch new file mode 100644 index 000000000..0ee4b1e76 --- /dev/null +++ b/extra/wavpack/gcc44.patch @@ -0,0 +1,24 @@ +--- src/wavpack_local.h.orig 2009-04-07 10:34:58.000000000 -0400 ++++ src/wavpack_local.h 2009-04-07 11:03:45.000000000 -0400 +@@ -745,9 +745,17 @@ + + #define _m_paddd(m1, m2) __builtin_ia32_paddd (m1, m2) + #define _m_pcmpeqd(m1, m2) __builtin_ia32_pcmpeqd (m1, m2) +-#define _m_pslldi(m1, m2) __builtin_ia32_pslld (m1, m2) +-#define _m_psradi(m1, m2) __builtin_ia32_psrad (m1, m2) +-#define _m_psrldi(m1, m2) __builtin_ia32_psrld (m1, m2) ++ ++#if (__GNUC__ == 4 && __GNUC_MINOR__ >= 4) || __GNUC__ > 4 ++# define _m_pslldi(m1, m2) __builtin_ia32_pslldi ((__m64)m1, m2) ++# define _m_psradi(m1, m2) __builtin_ia32_psradi ((__m64)m1, m2) ++# define _m_psrldi(m1, m2) __builtin_ia32_psrldi ((__m64)m1, m2) ++#else ++# define _m_pslldi(m1, m2) __builtin_ia32_pslld (m1, m2) ++# define _m_psradi(m1, m2) __builtin_ia32_psrad (m1, m2) ++# define _m_psrldi(m1, m2) __builtin_ia32_psrld (m1, m2) ++#endif ++ + #define _m_psubd(m1, m2) __builtin_ia32_psubd (m1, m2) + #define _m_punpckhdq(m1, m2) __builtin_ia32_punpckhdq (m1, m2) + #define _m_punpckldq(m1, m2) __builtin_ia32_punpckldq (m1, m2) + -- cgit v1.2.3-70-g09d2