summaryrefslogtreecommitdiffstats
path: root/mail/exmh2/Makefile
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1997-08-12 05:58:47 +0000
committerpeter <peter@FreeBSD.org>1997-08-12 05:58:47 +0000
commit04babcb48f4313bdc2c7182169cd0cd979cd87fa (patch)
tree30d2938490cfc15c9467bf77a374e3821ef64588 /mail/exmh2/Makefile
parentbc73bdd68ce13f1c7723614387fe7130189d8324 (diff)
downloadFreeBSD-ports-04babcb48f4313bdc2c7182169cd0cd979cd87fa.zip
FreeBSD-ports-04babcb48f4313bdc2c7182169cd0cd979cd87fa.tar.gz
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.
Diffstat (limited to 'mail/exmh2/Makefile')
-rw-r--r--mail/exmh2/Makefile18
1 files changed, 15 insertions, 3 deletions
diff --git a/mail/exmh2/Makefile b/mail/exmh2/Makefile
index fbe5e92..a86d998 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
+
OpenPOWER on IntegriCloud