flac: fixed the build with gcc 4.3.

This commit is contained in:
Tilman Sauerbeck 2008-10-23 18:36:34 +02:00
parent bb34378123
commit a64413e518
3 changed files with 19 additions and 2 deletions

View File

@ -1 +1,2 @@
153c8b15a54da428d1f0fadc756c22c7 flac-1.2.1.tar.gz
6632677f2e3b0103256023ba76115845 flac.diff

View File

@ -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

11
flac/flac.diff Normal file
View File

@ -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 <stdio.h>
#include <stdlib.h>
+#include <cstring>
#include "FLAC++/metadata.h"
#include "FLAC++/encoder.h"