pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/metamail Don't compile in home-grown putenv(3) im...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/21826134f2ee
branches:  trunk
changeset: 507669:21826134f2ee
user:      tron <tron%pkgsrc.org@localhost>
date:      Mon Feb 06 14:29:23 2006 +0000

description:
Don't compile in home-grown putenv(3) implementation if the target platform
provides an implementation. This fixes build problems caused by the recent
DragonFly patch under all operating systems which do not define the
argument of putenv(3) as "const" (e.g. Solaris or Mac OS X).

diffstat:

 mail/metamail/Makefile |  10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 17ea98bbe510 -r 21826134f2ee mail/metamail/Makefile
--- a/mail/metamail/Makefile    Mon Feb 06 14:09:22 2006 +0000
+++ b/mail/metamail/Makefile    Mon Feb 06 14:29:23 2006 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.39 2006/02/05 23:09:56 joerg Exp $
+# $NetBSD: Makefile,v 1.40 2006/02/06 14:29:23 tron Exp $
 
 DISTNAME=      mm2.7
 PKGNAME=       metamail-2.7
@@ -40,6 +40,14 @@
 post-patch:
        ${RM} -f ${WRKDIR}/mm2.7/src/bin/*.orig
 
+pre-configure:
+       if ${GREP} putenv /usr/include/stdlib.h >/dev/null;             \
+       then                                                            \
+               cd ${WRKSRC}/metamail;                                  \
+               ${MV} Makefile Makefile.pre-sed;                        \
+               ${SED} -e s/putenv.o//g Makefile.pre-sed >Makefile;     \
+       fi
+
 pre-install:
        ${INSTALL_DATA_DIR} ${EGDIR}
 



Home | Main Index | Thread Index | Old Index