diff options
author | Renato Botelho <garga@FreeBSD.org> | 2006-07-24 17:24:32 +0000 |
---|---|---|
committer | Renato Botelho <garga@FreeBSD.org> | 2006-07-24 17:24:32 +0000 |
commit | 22b5a587fee35c82f91ff5cea3a535afaed823b9 (patch) | |
tree | 26ee75baa1b8dccb7afac4b22e5411c915a6e381 /audio/libofa | |
parent | - Remove bad site: (diff) |
UNBREAK: Fix build on 4.x
PR: ports/100768
Submitted by: Sven Berkvens-Matthijsse <sven at ilse.net>
Approved by: Alexander Botero-Lowry <alex at foxybanana.com> (maintainer)
Diffstat (limited to 'audio/libofa')
-rw-r--r-- | audio/libofa/Makefile | 4 | ||||
-rw-r--r-- | audio/libofa/files/patch-examples_examples.cpp | 11 | ||||
-rw-r--r-- | audio/libofa/files/patch-examples_uselame.cpp | 11 | ||||
-rw-r--r-- | audio/libofa/files/patch-examples_wavefile.cpp | 10 |
4 files changed, 32 insertions, 4 deletions
diff --git a/audio/libofa/Makefile b/audio/libofa/Makefile index b8c7358e1f84..2d217405e01b 100644 --- a/audio/libofa/Makefile +++ b/audio/libofa/Makefile @@ -25,10 +25,6 @@ INSTALLS_SHLIB= yes .include <bsd.port.pre.mk> -.if ${OSVERSION} < 500000 -BROKEN= Does not build on FreeBSD < 5.x -.endif - post-configure: @${REINPLACE_CMD} -e "s|pcdir =.*|pcdir = ${PREFIX}/libdata/pkgconfig|g" \ ${WRKSRC}/Makefile diff --git a/audio/libofa/files/patch-examples_examples.cpp b/audio/libofa/files/patch-examples_examples.cpp new file mode 100644 index 000000000000..11f4a6cf4181 --- /dev/null +++ b/audio/libofa/files/patch-examples_examples.cpp @@ -0,0 +1,11 @@ +--- examples/example.cpp.orig Mon Jul 24 11:09:39 2006 ++++ examples/example.cpp Mon Jul 24 11:09:50 2006 +@@ -7,6 +7,8 @@ + + -------------------------------------------------------------------*/ + ++#include <stdio.h> ++ + #include "protocol.h" + + AudioData* loadWaveFile(char *file); diff --git a/audio/libofa/files/patch-examples_uselame.cpp b/audio/libofa/files/patch-examples_uselame.cpp new file mode 100644 index 000000000000..2bfaaa73f13f --- /dev/null +++ b/audio/libofa/files/patch-examples_uselame.cpp @@ -0,0 +1,11 @@ +--- examples/uselame.cpp.orig Mon Jul 24 11:11:58 2006 ++++ examples/uselame.cpp Mon Jul 24 11:12:09 2006 +@@ -13,6 +13,8 @@ + #include <sys/wait.h> + #endif + ++#include <unistd.h> ++ + AudioData *loadWaveFile(char *file); + + // loadDataUsingLAME diff --git a/audio/libofa/files/patch-examples_wavefile.cpp b/audio/libofa/files/patch-examples_wavefile.cpp new file mode 100644 index 000000000000..41cf7176a743 --- /dev/null +++ b/audio/libofa/files/patch-examples_wavefile.cpp @@ -0,0 +1,10 @@ +--- examples/wavefile.cpp.orig Mon Jul 24 11:13:26 2006 ++++ examples/wavefile.cpp Mon Jul 24 11:13:05 2006 +@@ -11,6 +11,7 @@ + #include "io.h" + #endif + #include <fcntl.h> ++#include <unistd.h> + + static bool readBytes(int fd, unsigned char *buf, int size) { + int ct = 0; |