svn commit: r401206 - head/editors/wordgrinder
Pawel Pekala
pawel at FreeBSD.org
Tue Nov 10 20:14:50 UTC 2015
Author: pawel
Date: Tue Nov 10 20:14:48 2015
New Revision: 401206
URL: https://svnweb.freebsd.org/changeset/ports/401206
Log:
- Use options helpers
- Fix comment indentation
Submitted by: danfe
Modified:
head/editors/wordgrinder/Makefile
Modified: head/editors/wordgrinder/Makefile
==============================================================================
--- head/editors/wordgrinder/Makefile Tue Nov 10 20:08:45 2015 (r401205)
+++ head/editors/wordgrinder/Makefile Tue Nov 10 20:14:48 2015 (r401206)
@@ -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>
More information about the svn-ports-all
mailing list