summaryrefslogtreecommitdiff
path: root/community/musepack-tools
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
committerroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
commit7a65a910b77ad191d69881098c47f9b0c852d92e (patch)
tree9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/musepack-tools
parent60da6abff6c9577a783d72865f11de7a585e912e (diff)
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/musepack-tools')
-rw-r--r--community/musepack-tools/PKGBUILD43
-rw-r--r--community/musepack-tools/math.patch12
2 files changed, 55 insertions, 0 deletions
diff --git a/community/musepack-tools/PKGBUILD b/community/musepack-tools/PKGBUILD
new file mode 100644
index 000000000..eac151149
--- /dev/null
+++ b/community/musepack-tools/PKGBUILD
@@ -0,0 +1,43 @@
+# $Id: PKGBUILD 67972 2012-03-16 13:24:52Z giovanni $
+# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
+# Contributor: Corrado Primier <bardo@aur.archlinux.org>
+# Contributor: Eric Belanger <belanger@astro.umontreal.ca>
+
+pkgname=musepack-tools
+pkgver=475
+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=('754d67be67f713e54baf70fcfdb2817e'
+ '9de31f07a3492c7b1db1248b055fbdc8')
+
+build() {
+ cd "$srcdir/musepack_src_r$pkgver"
+
+ #export LDFLAGS+="-lm"
+
+ patch -Np1 -i "$srcdir/math.patch"
+
+ cmake . -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_SKIP_RPATH=ON
+}
+
+package() {
+ cd "$srcdir/musepack_src_r$pkgver"
+
+ make DESTDIR="$pkgdir" install
+
+ for bin in chap cut dec enc gain 2sv8; do
+ install -Dm755 mpc$bin/mpc$bin "$pkgdir/usr/bin/mpc$bin"
+ done
+
+ find ${pkgdir} -depth -type d -name .svn -exec rm -rf {} \;
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/community/musepack-tools/math.patch b/community/musepack-tools/math.patch
new file mode 100644
index 000000000..61b3d07ec
--- /dev/null
+++ b/community/musepack-tools/math.patch
@@ -0,0 +1,12 @@
+diff -aur musepack_src_r475.old/CMakeLists.txt musepack_src_r475/CMakeLists.txt
+--- musepack_src_r475.old/CMakeLists.txt 2011-10-14 16:31:05.536450109 +0800
++++ musepack_src_r475/CMakeLists.txt 2011-10-14 16:31:34.022962450 +0800
+@@ -16,7 +16,7 @@
+ add_definitions(-DFAST_MATH -DCVD_FASTLOG)
+
+ if(NOT MSVC)
+- set(CMAKE_C_FLAGS "-O3 -Wall -fomit-frame-pointer -pipe")
++ set(CMAKE_C_FLAGS "-O3 -Wall -fomit-frame-pointer -pipe -lm")
+ endif(NOT MSVC)
+
+ add_subdirectory(libmpcdec)