summaryrefslogtreecommitdiff
path: root/mail/exmh2
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>1997-08-12 05:58:47 +0000
committerPeter Wemm <peter@FreeBSD.org>1997-08-12 05:58:47 +0000
commita480c7b40e52c251d19c25b85e5a058eeada6eaf (patch)
treea89284d9f2db8d2977a732b280b16e16147a8b81 /mail/exmh2
parentRemove nils@guru.ims.uni-stuttgart.de as MAINTAINER, no longer (diff)
Detect if tk8.0 is installed and use it if present (it's a lot faster)
even though a port for tk8.0 has not been committed yet.
Notes
Notes: svn path=/head/; revision=7541
Diffstat (limited to 'mail/exmh2')
-rw-r--r--mail/exmh2/Makefile18
1 files changed, 15 insertions, 3 deletions
diff --git a/mail/exmh2/Makefile b/mail/exmh2/Makefile
index fbe5e926f8b2..a86d998f688f 100644
--- a/mail/exmh2/Makefile
+++ b/mail/exmh2/Makefile
@@ -3,7 +3,7 @@
# Date released: 1 Jan 97
# Whom: Peter Wemm <peter@freebsd.org>
#
-# $Id: Makefile,v 1.12 1997/07/13 18:49:22 max Exp $
+# $Id: Makefile,v 1.13 1997/07/26 12:27:31 peter Exp $
#
DISTNAME= exmh-2.0zeta
@@ -16,8 +16,9 @@ MAINTAINER= peter@FreeBSD.org
DIST_SUBDIR= ${PKGNAME}
-RUN_DEPENDS= wish4.1:${PORTSDIR}/x11/tk41
-WISH= wish4.1
+# Uses wish8.0 if present (major speed improvement), else it depends on
+# the tk4.1 port. The glue for this is at the end of the file due to
+# bmake quirks.
# exmh is pretty useless without this, but it's not needed to build it.
RUN_DEPENDS+= repl:${PORTSDIR}/mail/mh
@@ -44,3 +45,14 @@ do-install:
WRKSRC=${WRKSRC} ${SH} ${SCRIPTDIR}/install
.include <bsd.port.mk>
+
+# Must come after bsd.port.mk since .if is expanded on the first pass
+# before $PREFIX is defined.
+
+.if exists($(PREFIX)/bin/wish8.0)
+WISH= wish8.0
+.else
+RUN_DEPENDS= wish4.1:${PORTSDIR}/x11/tk41
+WISH= wish4.1
+.endif
+