summaryrefslogtreecommitdiff
path: root/extra/flac
diff options
context:
space:
mode:
authorParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
committerParabola <dev@list.parabolagnulinux.org>2011-04-05 14:26:38 +0000
commit415856bdd4f48ab4f2732996f0bae58595092bbe (patch)
treeede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/flac
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/flac')
-rw-r--r--extra/flac/ChangeLog5
-rw-r--r--extra/flac/PKGBUILD29
-rw-r--r--extra/flac/flac-1.2.1-gcc-4.3-includes.patch11
3 files changed, 45 insertions, 0 deletions
diff --git a/extra/flac/ChangeLog b/extra/flac/ChangeLog
new file mode 100644
index 000000000..e7790cb1a
--- /dev/null
+++ b/extra/flac/ChangeLog
@@ -0,0 +1,5 @@
+2009-08-01 Eric Belanger <eric@archlinux.org>
+
+ * flac 1.2.1-2
+ * FHS man pages
+ * Added ChangeLog
diff --git a/extra/flac/PKGBUILD b/extra/flac/PKGBUILD
new file mode 100644
index 000000000..d9d539f3f
--- /dev/null
+++ b/extra/flac/PKGBUILD
@@ -0,0 +1,29 @@
+# $Id: PKGBUILD 48440 2009-08-02 03:15:27Z eric $
+# Maintainer: Eric Belanger <eric@archlinux.org>
+# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
+
+pkgname=flac
+pkgver=1.2.1
+pkgrel=2
+pkgdesc="Free Lossless Audio Codec"
+arch=('i686' 'x86_64')
+url="http://flac.sourceforge.net/"
+license=('custom:Xiph' 'LGPL' 'GPL' 'FDL')
+depends=('glibc' 'libogg')
+makedepends=('nasm' 'xmms')
+options=('!libtool' '!makeflags')
+source=(http://downloads.sf.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.gz flac-1.2.1-gcc-4.3-includes.patch)
+md5sums=('153c8b15a54da428d1f0fadc756c22c7' 'b9d245422bbc547b18a72897366bea77')
+sha1sums=('bd54354900181b59db3089347cc84ad81e410b38' '7e9f8c2ef4d9daf5ddd20df63b608fe19b8c1560')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ patch -Np1 -i "${srcdir}/flac-1.2.1-gcc-4.3-includes.patch" || return 1
+ ./configure --prefix=/usr --mandir=/usr/share/man --enable-shared --disable-sse \
+ --disable-rpath --with-pic || return 1
+ make || return 1
+ make DESTDIR="${pkgdir}" install || return 1
+
+ # install license
+ install -Dm0644 COPYING.Xiph "${pkgdir}/usr/share/licenses/${pkgname}/COPYING.Xiph" || return 1
+}
diff --git a/extra/flac/flac-1.2.1-gcc-4.3-includes.patch b/extra/flac/flac-1.2.1-gcc-4.3-includes.patch
new file mode 100644
index 000000000..52fec8be5
--- /dev/null
+++ b/extra/flac/flac-1.2.1-gcc-4.3-includes.patch
@@ -0,0 +1,11 @@
+diff -Naur flac-1.2.1-orig/examples/cpp/encode/file/main.cpp flac-1.2.1/examples/cpp/encode/file/main.cpp
+--- flac-1.2.1-orig/examples/cpp/encode/file/main.cpp 2007-09-13 09:58:03.000000000 -0600
++++ flac-1.2.1/examples/cpp/encode/file/main.cpp 2007-11-18 12:59:45.000000000 -0600
+@@ -30,6 +30,7 @@
+
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <cstring>
+ #include "FLAC++/metadata.h"
+ #include "FLAC++/encoder.h"
+