summaryrefslogtreecommitdiff
path: root/audio/cam
diff options
context:
space:
mode:
Diffstat (limited to 'audio/cam')
-rw-r--r--audio/cam/Makefile5
-rw-r--r--audio/cam/patches/patch-ab28
2 files changed, 32 insertions, 1 deletions
diff --git a/audio/cam/Makefile b/audio/cam/Makefile
index 3dde03654b9..4a40184fe7d 100644
--- a/audio/cam/Makefile
+++ b/audio/cam/Makefile
@@ -3,7 +3,7 @@
# Date created: Tue Nov 12 15:54:21 CST 1996
# Whom: erich@FreeBSD.org
#
-# $Id: Makefile,v 1.1.1.1 1997/10/28 23:18:23 augustss Exp $
+# $NetBSD: Makefile,v 1.2 1997/10/29 18:03:23 augustss Exp $
#
DISTNAME= cam-1.02
@@ -12,6 +12,9 @@ MASTER_SITES= ${MASTER_SITE_SUNSITE}
MASTER_SITE_SUBDIR= apps/sound/mixers
EXTRACT_SUFX= .tgz
+BUILD_DEPENDS= ${PREFIX}/lib/libncurses.a:${PORTSDIR}/devel/ncurses
+
+# FreeBSD maintainer
MAINTAINER= erich@FreeBSD.org
.include <bsd.port.mk>
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