summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/rhtvision/Makefile10
-rw-r--r--devel/rhtvision/pkg-plist8
2 files changed, 14 insertions, 4 deletions
diff --git a/devel/rhtvision/Makefile b/devel/rhtvision/Makefile
index 91b8032adc0d..ca73e78287bd 100644
--- a/devel/rhtvision/Makefile
+++ b/devel/rhtvision/Makefile
@@ -22,6 +22,16 @@ INSTALLS_SHLIB= yes
HAS_CONFIGURE= yes
CONFIGURE_ARGS= --prefix=${PREFIX}
+.if !defined(WITHOUT_X11)
+USE_XLIB= yes
+PLIST_SUB+= X11_ONLY=""
+.else
+PLIST_SUB+= X11_ONLY="@comment "
+
+pre-configure:
+ ${ECHO} "HAVE_X11 => no" > ${WRKSRC}/configure.cache
+.endif
+
post-patch:
.for f in config.pl confignt.pl conflib.pl linux/compress \
linuxso/makemak.in linuxso/makemak.pl
diff --git a/devel/rhtvision/pkg-plist b/devel/rhtvision/pkg-plist
index cf960b1705d0..33504b678655 100644
--- a/devel/rhtvision/pkg-plist
+++ b/devel/rhtvision/pkg-plist
@@ -141,11 +141,11 @@ include/rhtvision/tv/video.h
include/rhtvision/tv/view.h
include/rhtvision/tv/views.h
include/rhtvision/tv/window.h
-include/rhtvision/tv/x11/key.h
-include/rhtvision/tv/x11/mouse.h
-include/rhtvision/tv/x11/screen.h
+%%X11_ONLY%%include/rhtvision/tv/x11/key.h
+%%X11_ONLY%%include/rhtvision/tv/x11/mouse.h
+%%X11_ONLY%%include/rhtvision/tv/x11/screen.h
include/rhtvision/tv/yes_mss.h
-@dirrm include/rhtvision/tv/x11
+%%X11_ONLY%%@dirrm include/rhtvision/tv/x11
@dirrm include/rhtvision/tv/linux
@dirrm include/rhtvision/tv
@dirrm include/rhtvision/cl