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" +