Honor PKGMANDIR, and fix race condition in makefile.

This commit is contained in:
dholland 2013-04-28 03:38:25 +00:00
parent 54bc6378bb
commit 205a974fe6
2 changed files with 15 additions and 4 deletions

View file

@ -1,9 +1,9 @@
$NetBSD: distinfo,v 1.5 2011/12/18 16:54:08 dholland Exp $
$NetBSD: distinfo,v 1.6 2013/04/28 03:38:25 dholland Exp $
SHA1 (p2c-1.20.tar.Z) = 797c5394d50567d5195548d3919c5a66ab90f680
RMD160 (p2c-1.20.tar.Z) = 9917ef3f501b1506f2992d572f439398862fba4c
Size (p2c-1.20.tar.Z) = 579294 bytes
SHA1 (patch-aa) = 0da0ac982bfc799dae3d291a66abb50239ffa9da
SHA1 (patch-aa) = 86c1edd87984b0bac7ed422f3437ac9c555075e4
SHA1 (patch-ab) = ceeda201cff0dfb975fec7f489fdaaca94984935
SHA1 (patch-ac) = d169a0c722bebd53f9de25c0f6e208236650939a
SHA1 (patch-ad) = f2ecb3a2f0cf51024b221e02eb92b9e517455d93

View file

@ -1,8 +1,10 @@
$NetBSD: patch-aa,v 1.2 2011/12/18 16:54:08 dholland Exp $
$NetBSD: patch-aa,v 1.3 2013/04/28 03:38:25 dholland Exp $
- configure for pkgsrc
- use ranlib properly
- fix install permissions
- honor PKGMANDIR
- support MAKE_JOBS
--- Makefile.orig 1991-04-24 20:30:37.000000000 +0000
+++ Makefile
@ -21,7 +23,7 @@ $NetBSD: patch-aa,v 1.2 2011/12/18 16:54:08 dholland Exp $
+INCDIR = ${PREFIX}/include/p2c
+BINDIR = ${PREFIX}/bin
+LIBDIR = ${PREFIX}/lib
+MANDIR = ${PREFIX}/man/man1
+MANDIR = ${PREFIX}/${PKGMANDIR}/man1
+#MANFILE = p2c.cat # human-readable manual (for cat.1)
+MANFILE = p2c.man.inst # uncompressed nroff source (for man.1)
#MANFILE = p2c.man.Z # compressed nroff source (for man.1.Z)
@ -49,6 +51,15 @@ $NetBSD: patch-aa,v 1.2 2011/12/18 16:54:08 dholland Exp $
MISCSRCS = makeproto.c
PROTOS = p2c.proto p2c.hdrs
@@ -73,7 +73,7 @@ HDRS = trans.h p2c.h
# Top-level targets
-all: proto p2c libp2c.a p2c.cat
+all: proto .WAIT p2c libp2c.a p2c.cat
proto: $(PROTOS)
@@ -129,7 +129,8 @@ p2c.cat: p2c.man.inst
# Third, execute "make install" to compile and set things up.
# (You may need to have a system operator do these steps for you.)