summaryrefslogtreecommitdiff
path: root/audio/cam/patches/patch-ac
blob: eabc49741fd2e539f2a349d1582b89edd65d24a4 (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
38
39
40
41
42
$NetBSD: patch-ac,v 1.5 2000/09/30 17:24:50 hubertf Exp $

--- Makefile.orig	Thu Sep 19 19:18:29 1996
+++ Makefile	Sat Sep 30 16:51:14 2000
@@ -6,11 +6,11 @@
 
 CC     = gcc
 CFLAGS = -Wall -O2
-LIBS   = -lncurses
+LIBS   = -lcurses -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
 OBJS   = cam.o screens.o sounds.o
@@ -24,7 +24,7 @@
 	@echo ""
 	@echo " linking ..."
 	@echo ""
-	$(CC) -o $(EFILE) $(OBJS) $(LIBS)
+	$(CC) $(LDFLAGS) -o $(EFILE) $(OBJS) $(LIBS)
 	@echo ""
 
 ###############################################################################
@@ -68,11 +68,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)
+	@$(BSD_INSTALL_PROGRAM) $(EFILE) $(BINDIR)
 	@echo ""
 	@echo "installing manpages for cam"
-	@$(INSTALL) -m 644 -o root -g root $(MANFILE) $(MANDIR)
-	@echo ""
-	@. installvgafont.sh
+	@$(BSD_INSTALL_DATA) $(MANFILE) $(MANDIR)
 	@echo ""