aboutsummaryrefslogtreecommitdiff
path: root/editors/wordgrinder/Makefile
diff options
context:
space:
mode:
authorPawel Pekala <pawel@FreeBSD.org>2015-11-10 20:14:48 +0000
committerPawel Pekala <pawel@FreeBSD.org>2015-11-10 20:14:48 +0000
commit38d5a1b427b8bf8931c8952730f0918db6df7945 (patch)
tree244cf1962e95edbe47f6632bdb2328d0dce0d44f /editors/wordgrinder/Makefile
parent592864cb0f7d87bdaef08dd80672eb125cc56685 (diff)
downloadports-38d5a1b427b8bf8931c8952730f0918db6df7945.tar.gz
ports-38d5a1b427b8bf8931c8952730f0918db6df7945.zip
- Use options helpers
- Fix comment indentation Submitted by: danfe
Notes
Notes: svn path=/head/; revision=401206
Diffstat (limited to 'editors/wordgrinder/Makefile')
-rw-r--r--editors/wordgrinder/Makefile14
1 files changed, 6 insertions, 8 deletions
diff --git a/editors/wordgrinder/Makefile b/editors/wordgrinder/Makefile
index 2e88373fc0b3..d96400684679 100644
--- a/editors/wordgrinder/Makefile
+++ b/editors/wordgrinder/Makefile
@@ -28,8 +28,6 @@ X11_USE= xorg=x11,xft
X11_USES= pkgconfig
X11_ALL_TARGET_OFF=unix
-.include <bsd.port.options.mk>
-
post-patch:
${REINPLACE_CMD} \
-e '/hide = /s/@//' \
@@ -49,18 +47,18 @@ post-patch:
${REINPLACE_CMD} \
-e '/#include <Xft/s|<|<X11/|' \
${WRKSRC}/src/c/arch/unix/x11/x11.h
-.if ! ${PORT_OPTIONS:MX11}
- # This is not strictly speaking required, but it cuts
- # down on some unnecessary work and error messages.
+
+# This is not strictly speaking required, but it cuts
+# down on some unnecessary work and error messages.
+post-patch-X11-off:
${REINPLACE_CMD} \
-e '/$$(eval $$(build-wordgrinder-x11))/d' \
${WRKSRC}/Makefile
-.endif
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/wordgrinder
-.if ${PORT_OPTIONS:MX11}
+
+post-install-X11-on:
${INSTALL_PROGRAM} ${WRKSRC}/bin/xwordgrinder ${STAGEDIR}${PREFIX}/bin
-.endif
.include <bsd.port.mk>