aboutsummaryrefslogtreecommitdiff
path: root/audio/playmidi
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2003-11-17 21:34:54 +0000
committerPav Lucistnik <pav@FreeBSD.org>2003-11-17 21:34:54 +0000
commite723890f3cd347f6828f765dbda8dc1a4946ede1 (patch)
tree4997e12501c2291b539585cba7a0339f831cbde3 /audio/playmidi
parentfd9a27bf9369a9c8842ca98150bd18be5d8cd01c (diff)
downloadports-e723890f3cd347f6828f765dbda8dc1a4946ede1.tar.gz
ports-e723890f3cd347f6828f765dbda8dc1a4946ede1.zip
Notes
Diffstat (limited to 'audio/playmidi')
-rw-r--r--audio/playmidi/Makefile4
-rw-r--r--audio/playmidi/files/extra-emumidi.h10
-rw-r--r--audio/playmidi/files/extra-patchload.c18
3 files changed, 30 insertions, 2 deletions
diff --git a/audio/playmidi/Makefile b/audio/playmidi/Makefile
index 13ae9f8dfc99..b8f6af60caf2 100644
--- a/audio/playmidi/Makefile
+++ b/audio/playmidi/Makefile
@@ -15,8 +15,8 @@ COMMENT= MIDI player
.include <bsd.port.pre.mk>
-.if ${OSVERSION} > 500014
-BROKEN= "Does not compile"
+.if ${OSVERSION} >= 500014
+EXTRA_PATCHES= ${FILESDIR}/extra-*
.endif
ONLY_FOR_ARCHS= i386
diff --git a/audio/playmidi/files/extra-emumidi.h b/audio/playmidi/files/extra-emumidi.h
new file mode 100644
index 000000000000..39df7639dc57
--- /dev/null
+++ b/audio/playmidi/files/extra-emumidi.h
@@ -0,0 +1,10 @@
+--- emumidi.h.orig Sun May 11 23:26:36 1997
++++ emumidi.h Mon Nov 17 22:05:20 2003
+@@ -17,7 +17,6 @@
+ #ifdef linux
+ #include <linux/ultrasound.h>
+ #else
+-#include <machine/ultrasound.h>
+ #endif
+
+ /*
diff --git a/audio/playmidi/files/extra-patchload.c b/audio/playmidi/files/extra-patchload.c
new file mode 100644
index 000000000000..904a15095111
--- /dev/null
+++ b/audio/playmidi/files/extra-patchload.c
@@ -0,0 +1,18 @@
+--- patchload.c.orig Sat Feb 7 17:22:51 1998
++++ patchload.c Mon Nov 17 22:10:07 2003
+@@ -19,7 +19,6 @@
+ #ifdef linux
+ #include <linux/ultrasound.h>
+ #else
+-#include <machine/ultrasound.h>
+ #endif
+ #include <sys/stat.h>
+ #include <fcntl.h>
+@@ -93,7 +92,6 @@
+
+ if (pgm < 0) {
+ use8bit = force8bit;
+- GUS_NUMVOICES(gus_dev, (card_info[gus_dev].nr_voices = 32));
+ SEQ_DUMPBUF();
+ for (i = 0; i < 256; i++)
+ patchloaded[i] = 0;