aboutsummaryrefslogtreecommitdiff
path: root/net/clusterit/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net/clusterit/Makefile')
-rw-r--r--net/clusterit/Makefile15
1 files changed, 7 insertions, 8 deletions
diff --git a/net/clusterit/Makefile b/net/clusterit/Makefile
index dbe68c59f754..da6e7f60dbae 100644
--- a/net/clusterit/Makefile
+++ b/net/clusterit/Makefile
@@ -11,17 +11,16 @@ COMMENT= Collection of clustering tools
GNU_CONFIGURE= yes
-.include <bsd.port.pre.mk>
+OPTIONS_DEFINE= X11
+OPTIONS_DEFAULT=X11
+OPTIONS_SUB= yes
-.if defined (WITHOUT_X11)
-PLIST_SUB+= X11='@comment '
-.else
-PLIST_SUB+= X11=''
-USE_XORG= x11
-.endif
+X11_USE= XORG=x11
+
+.include <bsd.port.options.mk>
post-patch:
-.if defined(WITHOUT_X11)
+.if empty(PORT_OPTIONS:MX11)
${REINPLACE_CMD} -E 's,^(SUBDIRS) = .*,\1 = barrier dsh jsd pcp dtop tools,' ${WRKSRC}/Makefile.in
.endif