From a64413e518c5afbb0a6ccf46a296cef3b1765f25 Mon Sep 17 00:00:00 2001 From: Tilman Sauerbeck Date: Thu, 23 Oct 2008 18:36:34 +0200 Subject: [PATCH] flac: fixed the build with gcc 4.3. --- flac/.md5sum | 1 + flac/Pkgfile | 9 +++++++-- flac/flac.diff | 11 +++++++++++ 3 files changed, 19 insertions(+), 2 deletions(-) create mode 100644 flac/flac.diff diff --git a/flac/.md5sum b/flac/.md5sum index 87f12114e..e1400445c 100644 --- a/flac/.md5sum +++ b/flac/.md5sum @@ -1 +1,2 @@ 153c8b15a54da428d1f0fadc756c22c7 flac-1.2.1.tar.gz +6632677f2e3b0103256023ba76115845 flac.diff diff --git a/flac/Pkgfile b/flac/Pkgfile index 07bc1bf08..0dfde5cee 100644 --- a/flac/Pkgfile +++ b/flac/Pkgfile @@ -6,11 +6,16 @@ name=flac version=1.2.1 -release=1 -source=(http://dl.sourceforge.net/sourceforge/$name/$name-$version.tar.gz) +release=2 +source=(http://dl.sourceforge.net/sourceforge/$name/$name-$version.tar.gz + $name.diff) build() { cd $name-$version + + # fix compilation with gcc 4.3 + patch -Np1 -i $SRC/$name.diff + ./configure --prefix=/usr make make DESTDIR=$PKG install diff --git a/flac/flac.diff b/flac/flac.diff new file mode 100644 index 000000000..a8251351e --- /dev/null +++ b/flac/flac.diff @@ -0,0 +1,11 @@ +diff -aur 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 17:58:03.000000000 +0200 ++++ flac-1.2.1/examples/cpp/encode/file/main.cpp 2008-10-23 18:30:02.575321637 +0200 +@@ -30,6 +30,7 @@ + + #include + #include ++#include + #include "FLAC++/metadata.h" + #include "FLAC++/encoder.h" +