summaryrefslogtreecommitdiff
path: root/audio/cam/patches/patch-ac
blob: 6f4fd396788dd80392e03c58924bb8df171720cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
$NetBSD: patch-ac,v 1.2 1998/08/07 10:35:54 agc Exp $

--- Makefile.orig	Mon Feb 23 22:37:07 1998
+++ Makefile	Mon Feb 23 22:37:18 1998
@@ -6,13 +6,14 @@
 
 CC     = gcc
 CFLAGS = -Wall -O2
-LIBS   = -lncurses
+CFLAGS+= -I${PREFIX}/include
+LIBS   = -L${PREFIX}/lib -lncurses -lossaudio
 INSTALL = install
-BINDIR = /usr/local/bin
+BINDIR = ${PREFIX}/bin
 MANFILE= cam.1
-MANDIR = /usr/man/man1
+MANDIR = ${PREFIX}/man/man1
 EFILE  = cam
-XEFILE = xcam
+#XEFILE = xcam
 OBJS   = cam.o screens.o sounds.o
 ###############################################################################
 
@@ -68,11 +69,8 @@
 install:$(EFILE) $(MANFILE)
 	@echo ""
 	@echo "installing $(EFILE) in directory $(BINDIR)"
-	@$(INSTALL) -m 755 -o root -g root $(EFILE) $(BINDIR)
-	@$(INSTALL) -m 755 -o root -g root $(XEFILE) $(BINDIR)
+	@$(INSTALL) -m 755 -o root -g bin $(EFILE) $(BINDIR)
 	@echo ""
 	@echo "installing manpages for cam"
-	@$(INSTALL) -m 644 -o root -g root $(MANFILE) $(MANDIR)
-	@echo ""
-	@. installvgafont.sh
+	@$(INSTALL) -m 644 -o root -g bin $(MANFILE) $(MANDIR)
 	@echo ""