From a480c7b40e52c251d19c25b85e5a058eeada6eaf Mon Sep 17 00:00:00 2001 From: Peter Wemm Date: Tue, 12 Aug 1997 05:58:47 +0000 Subject: 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. --- mail/exmh2/Makefile | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'mail/exmh2') 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 # -# $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 + +# 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 + -- cgit v1.2.3