Avoid using != to set PKG_COMPILER -- defer using :sh. This removes the

need for ECHO to be defined for the top-level make.
This commit is contained in:
jlam 2005-04-28 22:21:52 +00:00
parent 1012ae7ffc
commit bb0934eb2f

View file

@ -1,4 +1,4 @@
# $NetBSD: Makefile,v 1.37 2005/04/11 21:44:52 tv Exp $
# $NetBSD: Makefile,v 1.38 2005/04/28 22:21:52 jlam Exp $
DISTNAME= festival-1.95-beta
PKGNAME= festival-1.95beta
@ -29,7 +29,7 @@ CONFIG_SUB_OVERRIDE= ${SPEECHTOOLS}/config.sub ${FESTIVAL}/config.sub
.if !empty(PKGSRC_COMPILER:Msunpro)
PKG_COMPILER?= suncc
.else
PKG_COMPILER!= case "${CC_VERSION}" in \
PKG_COMPILER_cmd= case "${CC_VERSION}" in \
gcc-2.6.*) ${ECHO} gcc26;; \
gcc-2.7.*) ${ECHO} gcc27;; \
gcc-2.8.*) ${ECHO} gcc28;; \
@ -38,6 +38,7 @@ PKG_COMPILER!= case "${CC_VERSION}" in \
egcs*) ${ECHO} egcs;; \
*) ${ECHO} ;; \
esac
PKG_COMPILER= ${PKG_COMPILER_cmd:sh}
.endif
.if empty(PKG_COMPILER)