summaryrefslogtreecommitdiff
path: root/audio/tracker/patches/patch-ad
diff options
context:
space:
mode:
authoraugustss <augustss@pkgsrc.org>1997-10-30 00:15:01 +0000
committeraugustss <augustss@pkgsrc.org>1997-10-30 00:15:01 +0000
commitc9eb3f5b8de5b0d00681773cfd9ce2417b569744 (patch)
tree75913e2d32e47d7ba6115b5e2ffc428fc6fbb6c0 /audio/tracker/patches/patch-ad
parenta3a5eff8f576d8df24bd88c3eb64c1a570e2a745 (diff)
downloadpkgsrc-c9eb3f5b8de5b0d00681773cfd9ce2417b569744.tar.gz
NetBSD port.
Diffstat (limited to 'audio/tracker/patches/patch-ad')
-rw-r--r--audio/tracker/patches/patch-ad62
1 files changed, 62 insertions, 0 deletions
diff --git a/audio/tracker/patches/patch-ad b/audio/tracker/patches/patch-ad
new file mode 100644
index 00000000000..47cd1b7420f
--- /dev/null
+++ b/audio/tracker/patches/patch-ad
@@ -0,0 +1,62 @@
+diff -u -r ../../work/tracker/Arch/PCux/audio.c ./Arch/PCux/audio.c
+--- ../../work/tracker/Arch/PCux/audio.c Thu Oct 30 00:58:14 1997
++++ ./Arch/PCux/audio.c Thu Oct 30 00:46:12 1997
+@@ -28,10 +28,18 @@
+ #include "/usr/src/linux/drivers/sound/soundcard.h"
+ #else
+ #ifndef __FreeBSD__
++#ifdef __NetBSD__
++#include <sys/ioctl.h>
++#include <soundcard.h>
++#define DEV "/dev/audio"
++#else
+ /* This should be sys/soundcard.h */
+ #include <sys/soundcard.h>
++#define DEV "/dev/dsp"
++#endif
+ #else
+ #include <machine/soundcard.h>
++#define DEV "/dev/dsp"
+ #endif
+ #endif
+
+@@ -53,7 +61,7 @@
+ int buf_max;
+ unsigned long possible, current;
+
+- audio = open("/dev/dsp", O_WRONLY, 0);
++ audio = open(DEV, O_WRONLY, 0);
+ if (audio == -1)
+ end_all("Error opening audio device");
+
+diff -u -r ../../work/tracker/Makefile ./Makefile
+--- ../../work/tracker/Makefile Thu Oct 30 00:58:14 1997
++++ ./Makefile Thu Oct 30 01:01:52 1997
+@@ -175,6 +175,15 @@
+ UI_freebsd = Unix/
+ SHELL_freebsd = /bin/sh
+
++CFLAGS_netbsd = -O2 -funroll-loops -finline-functions
++LIBS_netbsd = -lm -lossaudio
++AUDIODIR_netbsd=PCux/
++CONFIG_netbsd = PCux/netbsd_
++O_netbsd = .o
++EXE_netbsd =
++UI_netbsd = Unix/
++SHELL_netbsd = /bin/sh
++
+ CFLAGS_aix = -O
+ LIBS_aix = -lm
+ AUDIODIR_aix = Aix/
+@@ -344,11 +353,7 @@
+ bug2:
+ lclint -skipansiheaders bug.c
+
+-
+-
+-
+
+ export: Docs/tracker.doc
+ -rm tracker*.tgz
+ cd ..; tar cvozf tracker/tracker-$(VERSION).tgz -T tracker/arc.list
+-