aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2003-11-18 05:34:54 +0800
committerpav <pav@FreeBSD.org>2003-11-18 05:34:54 +0800
commit9cee3669ffe1a44b19326ae10d16ee522c9b3af8 (patch)
tree62d18a4d3844cd4dd681e32169fed8c12a02117d /audio
parentdd919bcddd19bbaf0d0620a18cec702a7ed0f1e6 (diff)
downloadfreebsd-ports-gnome-9cee3669ffe1a44b19326ae10d16ee522c9b3af8.tar.gz
freebsd-ports-gnome-9cee3669ffe1a44b19326ae10d16ee522c9b3af8.tar.zst
freebsd-ports-gnome-9cee3669ffe1a44b19326ae10d16ee522c9b3af8.zip
Unbreak on 5.x. It will not work with Gravis Ultrasound boards,
but they're almost extinct today anyway. Submitted by: Mathew Kanner <mat@cnd.mcgill.ca> Approved by: adamw (mentor)
Diffstat (limited to 'audio')
-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;