aboutsummaryrefslogtreecommitdiffstats
path: root/net/clusterit
diff options
context:
space:
mode:
authordemon <demon@FreeBSD.org>2001-09-03 09:24:04 +0800
committerdemon <demon@FreeBSD.org>2001-09-03 09:24:04 +0800
commit5ae05a724c20dc80f5886910bc962e1cf2011c81 (patch)
tree82e45ba30063c5a5e21d258228ac6a8e99f85e73 /net/clusterit
parente1fc4a8fd583f6c7ed3f76f19f0a5c5d9e6e1eb5 (diff)
downloadfreebsd-ports-gnome-5ae05a724c20dc80f5886910bc962e1cf2011c81.tar.gz
freebsd-ports-gnome-5ae05a724c20dc80f5886910bc962e1cf2011c81.tar.zst
freebsd-ports-gnome-5ae05a724c20dc80f5886910bc962e1cf2011c81.zip
Add WITHOUT_X11 knob.
Submitted by: Kris Gale <kris@icgcorp.net>
Diffstat (limited to 'net/clusterit')
-rw-r--r--net/clusterit/Makefile13
-rw-r--r--net/clusterit/pkg-plist10
2 files changed, 17 insertions, 6 deletions
diff --git a/net/clusterit/Makefile b/net/clusterit/Makefile
index 3723187526d8..e4e4987ed138 100644
--- a/net/clusterit/Makefile
+++ b/net/clusterit/Makefile
@@ -15,10 +15,21 @@ MAINTAINER= demon@FreeBSD.org
USE_XLIB= yes
-MAN1= barrier.1 barrierd.1 dsh.1 jsh.1 jsd.1 rvt.1 dvt.1 \
+MAN1= barrier.1 barrierd.1 dsh.1 jsh.1 jsd.1 \
clustersed.1 run.1 seq.1 dshbak.1 pcp.1 pdf.1 prm.1
+.if defined (WITHOUT_X11)
+PLIST_SUB+= X11='@comment '
+.else
+PLIST_SUB+= X11=''
+MAN1+= rvt.1 dvt.1
+USE_XLIB= yes
+.endif
+
post-patch:
@find ${WRKSRC} -name Makefile | xargs ${PERL} -pi -e 's#/usr/X11R6#${X11BASE}#g'
+.if defined(WITHOUT_X11)
+ @${PERL} -pi -e 's#rvt dvt##g' ${WRKSRC}/Makefile
+.endif
.include <bsd.port.mk>
diff --git a/net/clusterit/pkg-plist b/net/clusterit/pkg-plist
index d3c93ca78fdb..290b640472c1 100644
--- a/net/clusterit/pkg-plist
+++ b/net/clusterit/pkg-plist
@@ -2,13 +2,13 @@ bin/barrier
bin/barrierd
bin/clustersed
bin/dsh
-bin/dvt
+bin/dshbak
+%%X11%%bin/dvt
bin/jsd
bin/jsh
-bin/rvt
-bin/seq
-bin/run
bin/pcp
bin/pdf
bin/prm
-bin/dshbak
+bin/run
+%%X11%%bin/rvt
+bin/seq