summaryrefslogtreecommitdiff
path: root/devel/pmccabe/patches/patch-aa
blob: 6129dd28fc08780fe60561574c9734271baf6caf (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
43
44
45
$NetBSD: patch-aa,v 1.3 2016/04/01 11:48:27 jperkin Exp $

Use pkgsrc layout.

--- Makefile	2005/02/24 10:53:19	1.1
+++ Makefile	2005/02/24 10:55:17
@@ -10,7 +10,7 @@ INCLUDES=config.h dmain.h getopt.h pmcca
 ###############{
 
 # On HP-UX you will have to change this
-INSTALL = install -o root -g root
+#INSTALL = install -o root -g root
 
 DESTDIR = 
 
@@ -27,10 +27,10 @@ PMOBJS	      = cparse.o \
 		nmain.o \
 		pmccabe.o
 
-all:		$(PROGS) test
+all:		$(PROGS)
 
 test:		$(PROGS)
-		./testsuite
+		ksh ./testsuite
 
 pmccabe:	$(PMOBJS)
 	$(CC) $(CFLAGS) -o pmccabe $(PMOBJS)
@@ -39,12 +39,10 @@ clean:
 	rm -f *.[oa] pmccabe decomment *.out */*.out
 
 install: $(PROGS) $(MANPGS) $(DOCS)
-	$(INSTALL) -d $(DESTDIR)/usr/share/doc/pmccabe \
-			$(DESTDIR)/usr/share/man/man1 \
-			$(DESTDIR)/usr/bin
-	$(INSTALL) -m 644 $(MANPGS) $(DESTDIR)/usr/share/man/man1
-	#$(INSTALL) -m 644 $(DOCS)  $(DESTDIR)/usr/share/doc/pmccabe
-	$(INSTALL) -m 755 $(PROGS) $(DESTDIR)/usr/bin
+	$(INSTALL) -d $(DESTDIR)/${PREFIX}/man/man1
+	$(INSTALL) -d $(DESTDIR)/${PREFIX}/bin
+	$(INSTALL) -m 644 $(MANPGS) $(DESTDIR)/${PREFIX}/${PKGMANDIR}/man1
+	$(INSTALL) -m 755 $(PROGS) $(DESTDIR)/${PREFIX}/bin
 
 ###############}