summaryrefslogtreecommitdiff
path: root/x11-toolkits/xview
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2017-10-05 11:54:23 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2017-10-05 11:54:23 +0000
commited7c688f372e229f612e09a4c87c559ea16613f5 (patch)
treeb4a6c6a2aa55ea785b75fe1413edd84f40f8049c /x11-toolkits/xview
parentUse helpers to avoid extra inclusion of pre.mk/post.mk (diff)
Use helpers to avoid including pre.mk/post.mk
Notes
Notes: svn path=/head/; revision=451304
Diffstat (limited to 'x11-toolkits/xview')
-rw-r--r--x11-toolkits/xview/Makefile10
1 files changed, 4 insertions, 6 deletions
diff --git a/x11-toolkits/xview/Makefile b/x11-toolkits/xview/Makefile
index d7880d296cf0..8390a4ecb542 100644
--- a/x11-toolkits/xview/Makefile
+++ b/x11-toolkits/xview/Makefile
@@ -35,8 +35,6 @@ X11BASE2FIX= clients/olwmslave/help_file.c lib/libxview/help/help_file.c \
OPTIONS_DEFINE= DOCS
-.include <bsd.port.pre.mk>
-
post-extract:
@${MV} ${WRKSRC}/xview.man ${WRKSRC}/XView.man
@@ -60,12 +58,12 @@ pre-install:
@${FIND} ${WRKSRC}/config ${WRKSRC}/fonts -type f -name Makefile | ${XARGS} ${REINPLACE_CMD} -e '/PROJECTROOT = /!s+${PREFIX}+${STAGEDIR}${PREFIX}+g'
post-install:
-.if ${PORT_OPTIONS:MDOCS}
- @(cd ${WRKSRC}/doc; ${MAKE} install)
-.endif
@${RM} ${STAGEDIR}${PREFIX}/lib/help/clock.info
@${RM} ${STAGEDIR}${PREFIX}/lib/help/olwm.info
@${RM} ${STAGEDIR}${PREFIX}/lib/help/props.info
@${RM} ${STAGEDIR}${PREFIX}/lib/help/textedit.info
-.include <bsd.port.post.mk>
+post-install-DOCS-on:
+ @(cd ${WRKSRC}/doc; ${MAKE} install)
+
+.include <bsd.port.mk>