diff options
Diffstat (limited to 'community/musepack-tools')
-rw-r--r-- | community/musepack-tools/ChangeLog | 9 | ||||
-rw-r--r-- | community/musepack-tools/PKGBUILD | 32 | ||||
-rw-r--r-- | community/musepack-tools/math.patch | 22 |
3 files changed, 63 insertions, 0 deletions
diff --git a/community/musepack-tools/ChangeLog b/community/musepack-tools/ChangeLog new file mode 100644 index 000000000..a02319ee1 --- /dev/null +++ b/community/musepack-tools/ChangeLog @@ -0,0 +1,9 @@ +2010-02-04 Corrado Primier <bardo@aur.archlinux.org> + + * ChangeLog: added + + * PKGBUILD: removed unnecessary esd dependency; added libcuefile and + libreplaygain dependencies; rewritten build function to usa cmake; added + cmake makedepend + + * math.patch: added diff --git a/community/musepack-tools/PKGBUILD b/community/musepack-tools/PKGBUILD new file mode 100644 index 000000000..3cb7732d0 --- /dev/null +++ b/community/musepack-tools/PKGBUILD @@ -0,0 +1,32 @@ +# $Id: PKGBUILD 11191 2010-02-06 17:49:24Z dgriffiths $ +# Maintainer: Corrado Primier <bardo@aur.archlinux.org> +# Contributor: Eric Belanger <belanger@astro.umontreal.ca> + +pkgname=musepack-tools +pkgver=435 +pkgrel=2 +pkgdesc="Musepack decoder/encoder" +arch=('i686' 'x86_64') +url="http://www.musepack.net/" +license=('LGPL') +depends=('libcuefile' 'libreplaygain') +makedepends=('cmake') +source=(http://files.musepack.net/source/musepack_src_r${pkgver}.tar.gz math.patch) +md5sums=('0e858972978fe480fd1400b7331061de' 'f9d51d2d7ba46fbdc4d038596871f9e0') + +build() { + export LDFLAGS="${LDFLAGS} -lm" + cd ${srcdir}/musepack_src_r${pkgver} + + patch -Np0 -i ${srcdir}/math.patch || return 1 + + mkdir build + cd build + cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_SKIP_RPATH=ON .. || return 1 + make DESTDIR="${pkgdir}" install || return 1 + + for bin in chap cut dec enc gain 2sv8; do + install -Dm755 ${srcdir}/musepack_src_r${pkgver}/build/mpc${bin}/mpc${bin} \ + ${pkgdir}/usr/bin/mpc${bin} + done +} diff --git a/community/musepack-tools/math.patch b/community/musepack-tools/math.patch new file mode 100644 index 000000000..11588cbbf --- /dev/null +++ b/community/musepack-tools/math.patch @@ -0,0 +1,22 @@ +--- include/mpc/mpcmath.h.orig 2009-07-25 16:49:10.000000000 +0300 ++++ include/mpc/mpcmath.h 2009-07-31 15:33:45.000000000 +0300 +@@ -16,6 +16,8 @@ + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ + ++#include <math.h> ++ + #include <mpc/mpc_types.h> + + typedef union mpc_floatint +--- CMakeLists.txt.orig 2008-03-29 20:23:23.000000000 +0100 ++++ CMakeLists.txt 2010-02-04 12:31:27.498930581 +0100 +@@ -9,7 +9,7 @@ + add_definitions(-DFAST_MATH -DCVD_FASTLOG) + + if(NOT MSVC) +-set(CMAKE_C_FLAGS "-O3 -fomit-frame-pointer -pipe") ++set(CMAKE_C_FLAGS "-O3 -fomit-frame-pointer -pipe -lm") + endif(NOT MSVC) + + add_subdirectory(libmpcdec) |