From cf6ca080970d6a0bbd290b2840cd0f60c628b48a Mon Sep 17 00:00:00 2001 From: xtraeme Date: Tue, 15 Feb 2005 20:08:55 +0000 Subject: There's no need to pass the PKG_SYSCONFDIR value via CFLAGS, use subst.mk instead. --- mail/metamail/Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'mail/metamail') diff --git a/mail/metamail/Makefile b/mail/metamail/Makefile index ffc70bd9ab7..c4595305fca 100644 --- a/mail/metamail/Makefile +++ b/mail/metamail/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.31 2005/02/14 14:07:44 uebayasi Exp $ +# $NetBSD: Makefile,v 1.32 2005/02/15 20:08:55 xtraeme Exp $ DISTNAME= mm2.7 PKGNAME= metamail-2.7 @@ -18,7 +18,6 @@ WRKSRC= ${WRKDIR}/${DISTNAME}/src USE_BUILDLINK3= YES USE_PKGINSTALL= YES -CFLAGS+= -DPKG_SYSCONFDIR="\"${PKG_SYSCONFDIR}\"" CFLAGS.Linux+= -DLINUX CFLAGS.SunOS+= -DSYSV MAKE_ENV+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR} CHMOD=${CHMOD} SED=${SED} @@ -28,11 +27,15 @@ CONF_FILES= ${EGDIR}/mailcap ${PKG_SYSCONFDIR}/mailcap INSTALLATION_DIRS= bin man/man1 man/man4 -SUBST_CLASSES+= awk +SUBST_CLASSES+= awk sys SUBST_STAGE.awk= post-patch SUBST_MESSAGE.awk= Adjusting the path to awk SUBST_FILES.awk= bin/sun2mime SUBST_SED.awk= -e "s|/bin/nawk|${AWK}|" +SUBST_STAGE.sys= post-patch +SUBST_MESSAGE.sys= "Adjusting the path for PKG_SYSCONFDIR" +SUBST_FILES.sys= config.h +SUBST_SED.sys= -e "s|PKG_SYSCONFDIR|\"${PKG_SYSCONFDIR}\"|g" post-patch: ${RM} -f ${WRKDIR}/mm2.7/src/bin/*.orig -- cgit v1.2.3