diff options
author | Hye-Shik Chang <perky@FreeBSD.org> | 2002-11-19 17:10:51 +0000 |
---|---|---|
committer | Hye-Shik Chang <perky@FreeBSD.org> | 2002-11-19 17:10:51 +0000 |
commit | cea6f09f1c6ef60a47e00bae0dc6c734db04f847 (patch) | |
tree | af91eda9f8495ecc44639315162a2582dc276cc5 /devel/rhtvision | |
parent | Change MASTER_SITES. (diff) |
o Unbreak package building when system lacks libX11.
o Support WITHOUT_X11 knob.
Diffstat (limited to 'devel/rhtvision')
-rw-r--r-- | devel/rhtvision/Makefile | 10 | ||||
-rw-r--r-- | devel/rhtvision/pkg-plist | 8 |
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 |