Sat Aug 19 00:25:19 2017 UTC ()
sysutils/sformat: Install manpages into ${PKGMANDIR}.

Override MANDIR=man settings in project Makefiles by passing an
explicit MANDIR=${PKGMANDIR} on the make(1) command line so that
manpages are installed into the correct location under
${PKGMANDIR}.


(jlam)
diff -r1.17 -r1.18 pkgsrc/sysutils/sformat/Makefile

cvs diff -r1.17 -r1.18 pkgsrc/sysutils/sformat/Makefile (expand / switch to unified diff)

--- pkgsrc/sysutils/sformat/Makefile 2014/10/09 14:07:00 1.17
+++ pkgsrc/sysutils/sformat/Makefile 2017/08/19 00:25:19 1.18
@@ -1,36 +1,41 @@ @@ -1,36 +1,41 @@
1# $NetBSD: Makefile,v 1.17 2014/10/09 14:07:00 wiz Exp $ 1# $NetBSD: Makefile,v 1.18 2017/08/19 00:25:19 jlam Exp $
2# 2#
3 3
4DISTNAME= sformat-3.5 4DISTNAME= sformat-3.5
5PKGREVISION= 1 5PKGREVISION= 1
6CATEGORIES= sysutils 6CATEGORIES= sysutils
7MASTER_SITES= ftp://ftp.berlios.de/pub/sformat/ 7MASTER_SITES= ftp://ftp.berlios.de/pub/sformat/
8 8
9MAINTAINER= Andreas.Hallmann@tiscali.de 9MAINTAINER= Andreas.Hallmann@tiscali.de
10HOMEPAGE= http://freshmeat.net/projects/sformat 10HOMEPAGE= http://freshmeat.net/projects/sformat
11COMMENT= SCSI disk maintainance, formating, and ultimative repair tool 11COMMENT= SCSI disk maintainance, formating, and ultimative repair tool
12 12
13.include "../../mk/bsd.prefs.mk" 13.include "../../mk/bsd.prefs.mk"
14 14
15USE_TOOLS+= gmake 15USE_TOOLS+= gmake
16TBL?= tbl 16TBL?= tbl
17 17
18# avoid picking up a bad ${ARCH} during the build 18# avoid picking up a bad ${ARCH} during the build
19MAKE_ENV+= ARCH="" 19MAKE_ENV+= ARCH=""
20MAKE_ENV+= MAKEPROG="gmake" 20MAKE_ENV+= MAKEPROG="gmake"
21MAKE_ENV+= COPTX=${CFLAGS:M*:Q} 21MAKE_ENV+= COPTX=${CFLAGS:M*:Q}
22MAKE_ENV+= LDOPTX=${LDFLAGS:M*:Q} 22MAKE_ENV+= LDOPTX=${LDFLAGS:M*:Q}
23MAKE_FLAGS+= INS_BASE=${DESTDIR}${LOCALBASE:Q} # won't work in MAKE_ENV! 23
 24# Override settings in Makefiles by passing additional settings
 25# on the command-line.
 26#
 27MAKE_FLAGS+= INS_BASE=${DESTDIR}${LOCALBASE:Q}
 28MAKE_FLAGS+= MANDIR=${PKGMANDIR:Q}
24 29
25# if we're using a gcc which is named gcc, we need to set CCOM=gcc 30# if we're using a gcc which is named gcc, we need to set CCOM=gcc
26# in MAKE_ENV so the make infrastructure picks the right options. 31# in MAKE_ENV so the make infrastructure picks the right options.
27.if !empty(CC:M*gcc*) 32.if !empty(CC:M*gcc*)
28MAKE_ENV+= CCOM="gcc" 33MAKE_ENV+= CCOM="gcc"
29.endif 34.endif
30 35
31INSTALLATION_DIRS= bin include lib ${PKGMANDIR}/man5 ${PKGMANDIR}/man8 36INSTALLATION_DIRS= bin include lib ${PKGMANDIR}/man5 ${PKGMANDIR}/man8
32 37
33post-extract: 38post-extract:
34 ${CP} ${WRKSRC}/RULES/os-freebsd.id ${WRKSRC}/RULES/os-dragonfly.id 39 ${CP} ${WRKSRC}/RULES/os-freebsd.id ${WRKSRC}/RULES/os-dragonfly.id
35 ${CP} ${WRKSRC}/RULES/os-freebsd.def ${WRKSRC}/RULES/os-dragonfly.def 40 ${CP} ${WRKSRC}/RULES/os-freebsd.def ${WRKSRC}/RULES/os-dragonfly.def
36.for x in amd64 macppc 41.for x in amd64 macppc