aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--audio/glame/Makefile4
-rw-r--r--audio/glame/files/patch-swapfile.c13
2 files changed, 13 insertions, 4 deletions
diff --git a/audio/glame/Makefile b/audio/glame/Makefile
index 21b52bba1bb5..8684e41a1fb5 100644
--- a/audio/glame/Makefile
+++ b/audio/glame/Makefile
@@ -26,10 +26,6 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
.include <bsd.port.pre.mk>
-.if ${OSVERSION} > 500000
-BROKEN= "Does not compile"
-.endif
-
post-patch:
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g ; \
s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
diff --git a/audio/glame/files/patch-swapfile.c b/audio/glame/files/patch-swapfile.c
new file mode 100644
index 000000000000..97f682f4505d
--- /dev/null
+++ b/audio/glame/files/patch-swapfile.c
@@ -0,0 +1,13 @@
+--- src/swapfile/swapfile_fs.c.orig Fri Dec 6 07:35:22 2002
++++ src/swapfile/swapfile_fs.c Fri Dec 6 07:41:02 2002
+@@ -44,6 +44,10 @@
+ #define DEBUG 1
+ #endif
+
++#if __FreeBSD__ >= 5
++#define __BSD_VISIBLE 1
++#endif
++
+ #include <sys/stat.h>
+ #include <sys/types.h>
+ #include <pthread.h>