summaryrefslogtreecommitdiff
path: root/audio/cam/patches/patch-ab
diff options
context:
space:
mode:
Diffstat (limited to 'audio/cam/patches/patch-ab')
-rw-r--r--audio/cam/patches/patch-ab28
1 files changed, 28 insertions, 0 deletions
diff --git a/audio/cam/patches/patch-ab b/audio/cam/patches/patch-ab
new file mode 100644
index 00000000000..e0d47098d0d
--- /dev/null
+++ b/audio/cam/patches/patch-ab
@@ -0,0 +1,28 @@
+diff -u ../../work/cam-1.02/Makefile ./Makefile
+--- ../../work/cam-1.02/Makefile Wed Oct 29 18:59:28 1997
++++ ./Makefile Wed Oct 29 18:54:20 1997
+@@ -6,7 +6,8 @@
+
+ CC = gcc
+ CFLAGS = -Wall -O2
+-LIBS = -lncurses
++CFLAGS+= -I${PREFIX}/include
++LIBS = -L${PREFIX}/lib -lncurses -lossaudio
+ INSTALL = install
+ BINDIR = ${PREFIX}/bin
+ MANFILE= cam.1
+diff -u ../../work/cam-1.02/cam.h ./cam.h
+--- ../../work/cam-1.02/cam.h Wed Oct 29 18:59:27 1997
++++ ./cam.h Wed Oct 29 18:43:33 1997
+@@ -23,8 +23,10 @@
+ #include <stdio.h>
+ #include <ncurses.h>
+ #include <signal.h>
+-#ifdef __FreeBSD__
++#if defined(__FreeBSD__)
+ #include <machine/soundcard.h>
++#elif defined(__NetBSD__)
++#include <soundcard.h>
+ #else
+ #include <sys/soundcard.h>
+ #endif