summaryrefslogtreecommitdiff
path: root/misc/gone/patches/patch-ab
blob: 07e410df9aad750881c736a4202fdf490bd06b26 (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
$NetBSD: patch-ab,v 1.2 2016/03/30 09:25:53 jperkin Exp $

Use PKGMANDIR.

--- Makefile.in.orig	2003-10-13 06:20:56.000000000 +0000
+++ Makefile.in
@@ -20,7 +20,7 @@ exec_prefix = ${prefix}
 bindir = ${exec_prefix}/bin
 binpath = ${bindir}/gone
 
-mandir = ${prefix}/man/man1
+mandir = ${prefix}/${PKGMANDIR}/man1
 manext = 1
 
 CFLAGS=@CFLAGS@
@@ -44,9 +44,8 @@ gone.1:
 	    -e s+_BINPATH_+${binpath}+g gone.man > gone.${manext}
 
 install: gone gone.1
-	strip ${srcdir}/gone
-	${INSTALL_PROGRAM} gone ${bindir}/gone 
-	-${INSTALL_DATA} ${srcdir}/gone.${manext} ${mandir}/gone.${manext}
+	${INSTALL_PROGRAM} gone ${DESTDIR}${bindir}/gone 
+	${INSTALL_DATA} ${srcdir}/gone.${manext} ${DESTDIR}${mandir}/gone.${manext}
 
 gone.o: gone.c config.h Makefile
 	${CC} -c ${CFLAGS} gone.c