1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-20 20:09:11 +00:00

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)
This commit is contained in:
Renato Botelho 2006-07-24 17:24:32 +00:00
parent 05e9d24c70
commit 22b5a587fe
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=168655
4 changed files with 32 additions and 4 deletions

View File

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

View File

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

View File

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

View File

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