summaryrefslogtreecommitdiff
path: root/audio/nspmod
diff options
context:
space:
mode:
authoraugustss <augustss@pkgsrc.org>1997-11-01 00:56:20 +0000
committeraugustss <augustss@pkgsrc.org>1997-11-01 00:56:20 +0000
commit396f7552dddd54b78e97d5ff948386372bba55b3 (patch)
tree9965c2547396c44ab89e871306d1e4fc86ab2028 /audio/nspmod
parent8420169afed3bac898c947e4cb683ff6c1593c2e (diff)
downloadpkgsrc-396f7552dddd54b78e97d5ff948386372bba55b3.tar.gz
Another NetBSD port.
(I'm getting sick of porting MPEG players, this must be the fifth.)
Diffstat (limited to 'audio/nspmod')
-rw-r--r--audio/nspmod/patches/patch-af48
1 files changed, 48 insertions, 0 deletions
diff --git a/audio/nspmod/patches/patch-af b/audio/nspmod/patches/patch-af
new file mode 100644
index 00000000000..6b5f66ead81
--- /dev/null
+++ b/audio/nspmod/patches/patch-af
@@ -0,0 +1,48 @@
+diff -u ../../work/nspmod-0.1/Makefile ./Makefile
+--- ../../work/nspmod-0.1/Makefile Fri Oct 31 23:04:12 1997
++++ ./Makefile Fri Oct 31 23:03:13 1997
+@@ -6,12 +6,12 @@
+
+ ## Linux
+ CFLAGS_OS = -Wall
+-#CFLAGS_OS += -DDAC_DEV=\"/dev/dsp2\"
++CFLAGS_OS += -DDAC_DEV=\"/dev/audio\"
+ #CFLAGS_OS += -pedantic
+ CFLAGS_OPT = -g
+ CFLAGS_HIOPT = -O2 -funroll-loops
+ LDFLAGS_OS =
+-LIBS_OS =
++LIBS_OS = -lossaudio
+ DACIO_ARCH = dacio-linux.c
+
+ ## A certain SVR4.2 based OS
+@@ -26,7 +26,7 @@
+ #}
+
+ #CFLAGS = $(CFLAGS_OS) $(CFLAGS_OPT) $(CFLAGS_EXT)
+-CFLAGS_HIOPT_ = $(CFLAGS) $(CFLAGS_HIOPT)
++CFLAGS_HIOPT_ = $(CFLAGS) $(CFLAGS_HIOPT) $(CFLAGS_OS)
+ LDFLAGS = $(LDFLAGS_OS) $(LDFLAGS_EXT)
+ LIBS = $(LIBS_EXT) $(LIBS_OS)
+
+@@ -37,7 +37,7 @@
+ inst.o hirev.o mem.o
+ OBJS = $(OBJS0) dacio.o
+ $(PROG): $(OBJS)
+- $(CC) $(LDFLAGS) -o $@ $(OBJS)
++ $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
+
+ hirev.o: hirev.c
+ $(CC) $(CFLAGS_HIOPT_) -c hirev.c
+diff -u ../../work/nspmod-0.1/dacio-linux.c ./dacio-linux.c
+--- ../../work/nspmod-0.1/dacio-linux.c Fri Oct 31 23:04:12 1997
++++ ./dacio-linux.c Fri Oct 31 22:59:59 1997
+@@ -5,6 +5,8 @@
+ #include <unistd.h> /*(write)*/
+ #if defined(LINUX)
+ #include <sys/soundcard.h> /*SNDCTL_XXX*/
++#elif defined(__NetBSD__)
++#include <soundcard.h>
+ #else
+ #include <machine/soundcard.h>
+ #endif