From 5aa3e56288f990c8301ca0b3228871801b421748 Mon Sep 17 00:00:00 2001 From: jlam Date: Tue, 8 May 2001 01:04:40 +0000 Subject: Don't keep re-evaluating GCC_BINDIR -- preserve its value in MAKEFLAGS and don't compute its value if it's already defined. --- devel/stlport/Makefile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'devel/stlport') diff --git a/devel/stlport/Makefile b/devel/stlport/Makefile index 33f883ca2fd..a399101fbd8 100644 --- a/devel/stlport/Makefile +++ b/devel/stlport/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.5 2001/04/30 20:41:11 jlam Exp $ +# $NetBSD: Makefile,v 1.6 2001/05/08 01:04:40 jlam Exp $ DISTNAME= STLport-4.0 PKGNAME= stlport-4.0 @@ -56,15 +56,13 @@ do-install: .include "../../mk/bsd.pkg.mk" -GCC_BINDIR= # empty -.if ${GCC_BINDIR} == "" +.if !defined(GCC_BINDIR) PGCC_DEPEND!= ${PKG_INFO} -e "pgcc>=${GCC_VERS}" || ${ECHO} GCC_DEPEND!= ${PKG_INFO} -e "gcc>=${GCC_VERS}" || ${ECHO} .if ${PGCC_DEPEND} != "" GCC_BINDIR= ${PREFIX}/${PGCC_DEPEND}/bin -MAKEFLAGS+= GCC_BINDIR="${GCC_BINDIR}" .elif ${GCC_DEPEND} != "" GCC_BINDIR= ${PREFIX}/${GCC_DEPEND}/bin -MAKEFLAGS+= GCC_BINDIR="${GCC_BINDIR}" .endif +MAKEFLAGS+= GCC_BINDIR="${GCC_BINDIR}" .endif -- cgit v1.2.3