flac: fixed the build with gcc 4.3.
This commit is contained in:
parent
bb34378123
commit
a64413e518
@ -1 +1,2 @@
|
|||||||
153c8b15a54da428d1f0fadc756c22c7 flac-1.2.1.tar.gz
|
153c8b15a54da428d1f0fadc756c22c7 flac-1.2.1.tar.gz
|
||||||
|
6632677f2e3b0103256023ba76115845 flac.diff
|
||||||
|
@ -6,11 +6,16 @@
|
|||||||
|
|
||||||
name=flac
|
name=flac
|
||||||
version=1.2.1
|
version=1.2.1
|
||||||
release=1
|
release=2
|
||||||
source=(http://dl.sourceforge.net/sourceforge/$name/$name-$version.tar.gz)
|
source=(http://dl.sourceforge.net/sourceforge/$name/$name-$version.tar.gz
|
||||||
|
$name.diff)
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
cd $name-$version
|
cd $name-$version
|
||||||
|
|
||||||
|
# fix compilation with gcc 4.3
|
||||||
|
patch -Np1 -i $SRC/$name.diff
|
||||||
|
|
||||||
./configure --prefix=/usr
|
./configure --prefix=/usr
|
||||||
make
|
make
|
||||||
make DESTDIR=$PKG install
|
make DESTDIR=$PKG install
|
||||||
|
11
flac/flac.diff
Normal file
11
flac/flac.diff
Normal 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"
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user