summaryrefslogtreecommitdiff
path: root/devel/cvsps/patches/patch-aa
blob: f88b8a6531fcfb853ee801bb15294457ba077e38 (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
$NetBSD: patch-aa,v 1.6 2011/11/29 06:12:51 sbd Exp $

--- Makefile.orig	2005-05-26 03:39:40.000000000 +0000
+++ Makefile
@@ -3,7 +3,7 @@ MINOR=1
 CC?=gcc
 CFLAGS?=-g -O2 -Wall 
 CFLAGS+=-I. -DVERSION=\"$(MAJOR).$(MINOR)\"
-prefix?=/usr/local
+prefix?=${PREFIX}
 OBJS=\
 	cbtcommon/debug.o\
 	cbtcommon/hash.o\
@@ -21,13 +21,13 @@ OBJS=\
 all: cvsps
 
 cvsps: $(OBJS)
-	$(CC) -o cvsps $(OBJS) -lz
+	$(CC) $(LDFLAGS) -o cvsps $(OBJS) -lz
 
 install:
 	[ -d $(prefix)/bin ] || mkdir -p $(prefix)/bin
-	[ -d $(prefix)/share/man/man1 ] || mkdir -p $(prefix)/share/man/man1
+	[ -d $(prefix)/man/man1 ] || mkdir -p $(prefix)/man/man1
 	install cvsps $(prefix)/bin
-	install -m 644 cvsps.1 $(prefix)/share/man/man1
+	install -m 644 cvsps.1 $(prefix)/$(PKGMANDIR)/man1
 
 clean:
 	rm -f cvsps *.o cbtcommon/*.o core