diff options
author | garga <garga@FreeBSD.org> | 2006-07-25 01:24:32 +0800 |
---|---|---|
committer | garga <garga@FreeBSD.org> | 2006-07-25 01:24:32 +0800 |
commit | 9f5a1bc53468f5bc39a164f290ca570ad614748c (patch) | |
tree | d0477a05b9434e2da3f08ce48d16c65b00027699 /audio | |
parent | 8b334c57c9065d8e49a8c5ad71ed1533dfff7737 (diff) | |
download | freebsd-ports-gnome-9f5a1bc53468f5bc39a164f290ca570ad614748c.tar.gz freebsd-ports-gnome-9f5a1bc53468f5bc39a164f290ca570ad614748c.tar.zst freebsd-ports-gnome-9f5a1bc53468f5bc39a164f290ca570ad614748c.zip |
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')
-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; |