diff options
author | rh <rh> | 2002-10-05 04:10:03 +0000 |
---|---|---|
committer | rh <rh> | 2002-10-05 04:10:03 +0000 |
commit | d0cdded51789130373bd915e1bc06746faa11b9e (patch) | |
tree | 1f59a5231cc717f6260caf2ca9030440915459ad /devel/libglade | |
parent | e64495a89a54f42edbbb0f8f4748166871674ff9 (diff) | |
download | pkgsrc-d0cdded51789130373bd915e1bc06746faa11b9e.tar.gz |
Building requires a running X server. Add checkforx target required by
pre-build. Fake X server if ${X11BASE}/bin/Xvfb is present.
Closes PR pkg/18417.
Diffstat (limited to 'devel/libglade')
-rw-r--r-- | devel/libglade/Makefile | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/devel/libglade/Makefile b/devel/libglade/Makefile index c84b27c34f6..608c80667ca 100644 --- a/devel/libglade/Makefile +++ b/devel/libglade/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.40 2002/09/06 17:43:48 jlam Exp $ +# $NetBSD: Makefile,v 1.41 2002/10/05 04:10:03 rh Exp $ # DISTNAME= libglade-0.17 -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= devel gnome MASTER_SITES= ${MASTER_SITE_GNOME:=stable/sources/libglade/} @@ -26,9 +26,26 @@ LIBTOOL_OVERRIDE= ${WRKSRC}/libtool CPPFLAGS+= -I${BUILDLINK_PREFIX.db}/include/db2 .endif +DISPLAY?= # empty if unset +checkforx: +.if ${DISPLAY}=="" || ${DISPLAY_OK:!${X11BASE}/bin/xdpyinfo >/dev/null 2>&1 && echo YES || echo NO!} == "NO" +.if exists(${X11BASE}/bin/Xvfb) + -${SETENV} XAUTHORITY= ${X11BASE}/bin/Xvfb :2 & +DISPLAY= ':2' +.else + @${ECHO} "Error: Environment variable DISPLAY must be set" + @${ECHO} " and point to a connectible X server." + @${FALSE} +.endif # Xvfb +.endif # DISPLAY + +MAKE_ENV+= DISPLAY=${DISPLAY} + pre-configure: ${RM} ${WRKSRC}/libgladeConf.sh +pre-build: checkforx + .include "../../devel/gettext-lib/buildlink2.mk" .include "../../textproc/libxml/buildlink2.mk" .include "../../x11/gnome-libs/buildlink2.mk" |