summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgarga <garga@FreeBSD.org>2006-07-24 17:24:32 +0000
committergarga <garga@FreeBSD.org>2006-07-24 17:24:32 +0000
commit9f5a1bc53468f5bc39a164f290ca570ad614748c (patch)
treed0477a05b9434e2da3f08ce48d16c65b00027699
parent8b334c57c9065d8e49a8c5ad71ed1533dfff7737 (diff)
downloadFreeBSD-ports-9f5a1bc53468f5bc39a164f290ca570ad614748c.zip
FreeBSD-ports-9f5a1bc53468f5bc39a164f290ca570ad614748c.tar.gz
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)
-rw-r--r--audio/libofa/Makefile4
-rw-r--r--audio/libofa/files/patch-examples_examples.cpp11
-rw-r--r--audio/libofa/files/patch-examples_uselame.cpp11
-rw-r--r--audio/libofa/files/patch-examples_wavefile.cpp10
4 files changed, 32 insertions, 4 deletions
diff --git a/audio/libofa/Makefile b/audio/libofa/Makefile
index b8c7358..2d21740 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 0000000..11f4a6c
--- /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 0000000..2bfaaa7
--- /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 0000000..41cf717
--- /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;
OpenPOWER on IntegriCloud