summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortron <tron>1999-10-05 22:18:05 +0000
committertron <tron>1999-10-05 22:18:05 +0000
commit3d89aea0a3f18dd14d73593ea1b09f3e4e04981f (patch)
treea05a947bffe8a47978124ec128099104b306a000
parent67802686403638caece881a368fa4776f3e33a06 (diff)
downloadpkgsrc-3d89aea0a3f18dd14d73593ea1b09f3e4e04981f.tar.gz
Support using a preinstalled Motif installation instead of Lesstif again.
-rw-r--r--mk/bsd.pkg.mk23
1 files 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/ \