diff options
author | perky <perky@FreeBSD.org> | 2002-11-20 01:10:51 +0800 |
---|---|---|
committer | perky <perky@FreeBSD.org> | 2002-11-20 01:10:51 +0800 |
commit | 14dcc8a64bf4b569132380daaeb5f6c940ef2fc8 (patch) | |
tree | 7ac6219d746cd02716b06bc3d6068a8f350add52 /devel/rhtvision | |
parent | 1de29c1b1839be445303e7b6b3af93c52c394cee (diff) | |
download | freebsd-ports-gnome-14dcc8a64bf4b569132380daaeb5f6c940ef2fc8.tar.gz freebsd-ports-gnome-14dcc8a64bf4b569132380daaeb5f6c940ef2fc8.tar.zst freebsd-ports-gnome-14dcc8a64bf4b569132380daaeb5f6c940ef2fc8.zip |
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 |