diff options
author | schwarz <schwarz@pkgsrc.org> | 2006-09-16 07:09:22 +0000 |
---|---|---|
committer | schwarz <schwarz@pkgsrc.org> | 2006-09-16 07:09:22 +0000 |
commit | 314b01c280eede8dd507d5ad4a3747a0be95b190 (patch) | |
tree | c141f620459699327dff8d8f36a776676bf208fe /mail | |
parent | 004debba6d3da47da48e7b1c652e446424023dd9 (diff) | |
download | pkgsrc-314b01c280eede8dd507d5ad4a3747a0be95b190.tar.gz |
ensure that pkgsrc's CFLAGS and CPPFLAGS are honored
Diffstat (limited to 'mail')
-rw-r--r-- | mail/exim/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/mail/exim/Makefile b/mail/exim/Makefile index f688f2a50bf..b788cd8c061 100644 --- a/mail/exim/Makefile +++ b/mail/exim/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.78 2006/08/30 21:11:37 abs Exp $ +# $NetBSD: Makefile,v 1.79 2006/09/16 07:09:22 schwarz Exp $ DISTNAME= exim-4.63 CATEGORIES= mail net @@ -46,6 +46,9 @@ OWN_DIRS_PERMS+= ${VARBASE}/spool/exim ${EXIM_USER} ${EXIM_GROUP} 0750 # XXX: The following will be handled by buildlink3 at some point. CFLAGS+= ${_STRIPFLAG_CC} +# pay attention to CPPFLAGS as well +CFLAGS+= ${CPPFLAGS} + .include "options.mk" # BDB_TYPE gets set to "db1" if USE_DB185=="yes" @@ -83,6 +86,11 @@ pre-configure: -e 's:@PKG_SYSCONFDIR@:${PKG_SYSCONFDIR}:' \ < ${WRKSRC}/Local/eximon.conf.pkgsrc \ > ${WRKSRC}/Local/eximon.conf +# CFLAGS is already set by pkgsrc + @for f in ${WRKSRC}/OS/Makefile-*; do \ + ${SED} -e 's/^CFLAGS=.*//' $$f > $$f.subst; \ + ${MV} -f $$f.subst $$f; \ + done post-build: @${SED} -e 's:@PREFIX@:${PREFIX}:' \ |