summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>1998-06-05 12:14:44 +0000
committeragc <agc@pkgsrc.org>1998-06-05 12:14:44 +0000
commit33f24e7f6d1d138e9ad3e1f660b3541ec5e60692 (patch)
treee1c0d44e8b953c4253bca85cbbb0e709d7050c65 /mk
parent52dd58ca2a49f35dc73952209925a70e3f379320 (diff)
downloadpkgsrc-33f24e7f6d1d138e9ad3e1f660b3541ec5e60692.tar.gz
Add a USE_MOTIF definition, for use in package Makefiles.
This will make and install lesstif, should Motif be unavailable.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 6c61bb3b600..0c8e1276f66 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,7 +1,7 @@
#-*- mode: Fundamental; tab-width: 4; -*-
# ex:ts=4
#
-# $NetBSD: bsd.pkg.mk,v 1.93 1998/06/05 11:23:09 frueauf Exp $
+# $NetBSD: bsd.pkg.mk,v 1.94 1998/06/05 12:14:44 agc Exp $
#
# This file is derived from bsd.port.mk - 940820 Jordan K. Hubbard.
# This file is in the public domain.
@@ -151,6 +151,8 @@ NetBSD_MAINTAINER= agc@netbsd.org
# USE_IMAKE - Says that the port uses imake.
# USE_X11 - Says that the port uses X11 (i.e., installs in ${X11BASE}).
# USE_GTEXINFO - Says that the package uses gtexinfo
+# USE_MOTIF - Says that the package uses Motif
+# (it will use lesstif if Motif is unavailable)
# NO_INSTALL_MANPAGES - For imake ports that don't like the install.man
# target.
# HAS_CONFIGURE - Says that the port has its own configure script.
@@ -444,6 +446,10 @@ USE_GTEXINFO= yes
.if defined(USE_GTEXINFO)
DEPENDS+= gtexinfo-3.12:${PKGSRCDIR}/devel/gtexinfo
.endif
+.if defined(USE_MOTIF)
+BUILD_DEPENDS+= ${X11BASE}/include/Xm/Xm.h:../../x11/lesstif
+RUN_DEPENDS+= ${X11BASE}/include/Xm/Xm.h:../../x11/lesstif
+.endif
.if exists(${PKGSRCDIR}/../Makefile.inc)