diff options
Diffstat (limited to 'audio/cam/patches/patch-ac')
-rw-r--r-- | audio/cam/patches/patch-ac | 33 |
1 files changed, 20 insertions, 13 deletions
diff --git a/audio/cam/patches/patch-ac b/audio/cam/patches/patch-ac index 6f4fd396788..815cb6e2b56 100644 --- a/audio/cam/patches/patch-ac +++ b/audio/cam/patches/patch-ac @@ -1,37 +1,44 @@ -$NetBSD: patch-ac,v 1.2 1998/08/07 10:35:54 agc Exp $ +$NetBSD: patch-ac,v 1.3 1999/07/06 07:54:06 jlam Exp $ ---- Makefile.orig Mon Feb 23 22:37:07 1998 -+++ Makefile Mon Feb 23 22:37:18 1998 -@@ -6,13 +6,14 @@ +--- Makefile.orig Thu Sep 19 13:18:29 1996 ++++ Makefile Fri Jul 2 04:54:32 1999 +@@ -6,11 +6,13 @@ CC = gcc CFLAGS = -Wall -O2 -LIBS = -lncurses -+CFLAGS+= -I${PREFIX}/include -+LIBS = -L${PREFIX}/lib -lncurses -lossaudio ++CFLAGS += -I${LOCALBASE}/include # for ncurses.h ++LDFLAGS+= -L${LOCALBASE}/lib # for -lncurses ++LIBS = -lncurses -lossaudio INSTALL = install -BINDIR = /usr/local/bin +BINDIR = ${PREFIX}/bin MANFILE= cam.1 -MANDIR = /usr/man/man1 -+MANDIR = ${PREFIX}/man/man1 ++MANDIR = ${PREFIX}/man1 EFILE = cam --XEFILE = xcam -+#XEFILE = xcam + XEFILE = xcam OBJS = cam.o screens.o sounds.o - ############################################################################### +@@ -24,7 +26,7 @@ + @echo "" + @echo " linking ..." + @echo "" +- $(CC) -o $(EFILE) $(OBJS) $(LIBS) ++ $(CC) $(LDFLAGS) -o $(EFILE) $(OBJS) $(LIBS) + @echo "" -@@ -68,11 +69,8 @@ + ############################################################################### +@@ -68,11 +70,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) ++ @$(BSD_INSTALL_PROGRAM) $(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) ++ @$(BSD_INSTALL_DATA) $(MANFILE) $(MANDIR) @echo "" |