summaryrefslogtreecommitdiffstats
path: root/abs/core/flac
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/flac')
-rw-r--r--abs/core/flac/PKGBUILD32
-rw-r--r--abs/core/flac/flac-1.2.1-gcc43.patch10
-rw-r--r--abs/core/flac/flac-linking.diff12
-rw-r--r--abs/core/flac/xmms-plugin.patch11
4 files changed, 65 insertions, 0 deletions
diff --git a/abs/core/flac/PKGBUILD b/abs/core/flac/PKGBUILD
new file mode 100644
index 0000000..ce31e8b
--- /dev/null
+++ b/abs/core/flac/PKGBUILD
@@ -0,0 +1,32 @@
+# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $
+# Maintainer: Paul Mattal <paul@archlinux.org>
+# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
+pkgname=flac
+pkgver=1.2.1
+pkgrel=1
+pkgdesc="Free Lossless Audio Codec"
+license=('custom:Xiph' 'LGPL' 'GPL' 'FDL')
+url="http://flac.sourceforge.net/"
+arch=(i686 x86_64)
+options=('!libtool')
+depends=('glibc' 'libogg')
+makedepends=('nasm' 'xmms')
+source=(http://downloads.sf.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz \
+ flac-1.2.1-gcc43.patch)
+md5sums=('153c8b15a54da428d1f0fadc756c22c7' '4922379f33c86792630b624ddc83b236')
+
+build() {
+ # -j1 to get the xmms plugin working (from gentoo)
+ export MAKEFLAGS="-j1"
+ cd $startdir/src/$pkgname-$pkgver || return 1
+ patch -Np1 -i $startdir/src/flac-1.2.1-gcc43.patch
+ ./configure --prefix=/usr --enable-shared --disable-sse \
+ --disable-rpath --with-pic || return 1
+ make || return 1
+ make DESTDIR=$startdir/pkg install || return 1
+
+ # install license
+ install -Dm0644 $startdir/src/$pkgname-$pkgver/COPYING.Xiph \
+ $startdir/pkg/usr/share/licenses/$pkgname/COPYING.Xiph
+}
+
diff --git a/abs/core/flac/flac-1.2.1-gcc43.patch b/abs/core/flac/flac-1.2.1-gcc43.patch
new file mode 100644
index 0000000..d8e8ab9
--- /dev/null
+++ b/abs/core/flac/flac-1.2.1-gcc43.patch
@@ -0,0 +1,10 @@
+--- flac-1.2.1/examples/cpp/encode/file/main.cpp.gcc43 2007-09-13 17:58:03.000000000 +0200
++++ flac-1.2.1/examples/cpp/encode/file/main.cpp 2008-01-08 10:27:39.000000000 +0100
+@@ -29,6 +29,7 @@
+ #endif
+
+ #include <stdio.h>
++#include <string.h>
+ #include <stdlib.h>
+ #include "FLAC++/metadata.h"
+ #include "FLAC++/encoder.h"
diff --git a/abs/core/flac/flac-linking.diff b/abs/core/flac/flac-linking.diff
new file mode 100644
index 0000000..3f9f595
--- /dev/null
+++ b/abs/core/flac/flac-linking.diff
@@ -0,0 +1,12 @@
+diff -ur flac-1.1.2-orig/configure flac-1.1.2/configure
+--- flac-1.1.2-orig/configure 2005-07-24 17:58:19.180907080 +0100
++++ flac-1.1.2/configure 2005-07-24 17:58:59.139832400 +0100
+@@ -3462,7 +3462,7 @@
+ # This must be Linux ELF.
+ linux-gnu*)
+ case $host_cpu in
+- alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* )
++ alpha* | hppa* | i*86 | powerpc* | sparc* | ia64* | s390* | x86_64* )
+ lt_cv_deplibs_check_method=pass_all ;;
+ *)
+ # glibc up to 2.1.1 does not perform some relocations on ARM
diff --git a/abs/core/flac/xmms-plugin.patch b/abs/core/flac/xmms-plugin.patch
new file mode 100644
index 0000000..e5fcf2e
--- /dev/null
+++ b/abs/core/flac/xmms-plugin.patch
@@ -0,0 +1,11 @@
+--- src/plugin_xmms/configure.c.old 2005-04-08 12:16:17.000000000 +0200
++++ src/plugin_xmms/configure.c 2005-04-08 12:16:41.000000000 +0200
+@@ -61,7 +61,7 @@
+ "", /* proxy_user */
+ "", /* proxy_pass */
+ FALSE, /* save_http_stream */
+- "", /* save_http_path */
++ FALSE, /* save_http_path */
+ FALSE, /* cast_title_streaming */
+ FALSE /* use_udp_channel */
+ },