From c6da4ac9dcaaf519e187e870e5fb2b967ed4344a Mon Sep 17 00:00:00 2001 From: tron Date: Tue, 5 Oct 1999 22:18:05 +0000 Subject: Support using a preinstalled Motif installation instead of Lesstif again. --- mk/bsd.pkg.mk | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk index 308371cc4b3..b9e9739d2c8 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.351 1999/10/05 15:48:26 jlam Exp $ +# $NetBSD: bsd.pkg.mk,v 1.352 1999/10/05 22:18:05 tron Exp $ # # This file is in the public domain. # @@ -118,15 +118,6 @@ USE_GTEXINFO= yes DEPENDS+= gtexinfo-3.12:${PKGSRCDIR}/devel/gtexinfo .endif -.if defined(USE_MOTIF) -.if exists(${X11BASE}/include/Xm/Xm.h) -RUN_DEPENDS+= ${X11BASE}/include/Xm/Xm.h:${PKGSRCDIR}/x11/lesstif -.else -RUN_DEPENDS+= ${PREFIX}/include/Xm/Xm.h:${PKGSRCDIR}/x11/lesstif -BUILD_DEPENDS+= ${PREFIX}/include/Xm/Xm.h:${PKGSRCDIR}/x11/lesstif -.endif -.endif - .if defined(USE_LIBTOOL) .if ${OPSYS} == "NetBSD" || ${OPSYS} == "SunOS" LIBTOOL= ${LOCALBASE}/bin/pkglibtool-${OBJECT_FMT}-1.2p2 @@ -565,6 +556,18 @@ INSTALL_TARGET+= install.man FETCH_BEFORE_ARGS += -p .endif +# Check if we got a real Motif, Lesstif or no Motif at all. +.if defined(USE_MOTIF) +.if exists(${X11BASE}/include/Xm/Xm.h) +IS_LESSTIF!= ${EGREP} -c LESSTIF ${X11BASE}/include/Xm/Xm.h || ${TRUE} +.if (${IS_LESSTIF} != "0") +DEPENDS+= lesstif-*:${PKGSRCDIR}/x11/lesstif +.endif +.else +DEPENDS+= lesstif-*:${PKGSRCDIR}/x11/lesstif +.endif +.endif + # Popular master sites MASTER_SITE_XCONTRIB+= \ ftp://crl.dec.com/pub/X11/contrib/ \ -- cgit v1.2.3