1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

Kludge this so it compiles and runs on FreeBSD 5.1-BETA.

The video works but I don't know about the sound--I don't have sound
set up just now.

still to do:	patch by use of sed
This commit is contained in:
Trevor Johnson 2003-05-22 14:10:43 +00:00
parent b732074a95
commit 48c0986415
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=81702
3 changed files with 19 additions and 8 deletions

View File

@ -18,15 +18,11 @@ EXTRACT_SUFX= .tgz
MAINTAINER= trevor@FreeBSD.org
COMMENT= Animated musical demo for X11
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 500113
BROKEN= "Does not compile (bad C++ code)"
.endif
GNU_CONFIGURE= yes
ONLY_FOR_ARCHS= i386
USE_GCC= 2.95
USE_GMAKE= yes
USE_PERL5= yes # XXX
USE_X_PREFIX= yes
ALL_TARGET= qrash
@ -37,4 +33,4 @@ post-patch:
${FIND} ${WRKSRC} -type f -exec ${PERL} -pi -e \
"s:<malloc.h>:<stdlib.h>:g" {} \;
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@ -1,3 +1,5 @@
$FreeBSD$
diff -ruN mikmod/drv_vox.c mikmod/drv_vox.c
--- mikmod/drv_vox.c Mon Sep 22 11:05:26 1997
+++ mikmod/drv_vox.c Mon Jul 26 12:10:35 1999
@ -6,7 +8,7 @@ diff -ruN mikmod/drv_vox.c mikmod/drv_vox.c
#include <sys/types.h>
#include <fcntl.h>
-#include <linux/soundcard.h>
+#include <machine/soundcard.h>
+#include <sys/soundcard.h>
#include <sys/ioctl.h>
#include <sys/wait.h>
#include "mikmod.h"

View File

@ -0,0 +1,13 @@
$FreeBSD$
--- sys_x11.cc.orig Thu May 22 13:11:58 2003
+++ sys_x11.cc Thu May 22 13:14:35 2003
@@ -59,7 +59,7 @@
char cmdline[2048] = "";
-void main( int argc, char* argv[] )
+int main( int argc, char* argv[] )
{
for( int i=1; i<argc; i++ ) {
strcat( cmdline, argv[i] );