svn commit: r325404 - head/japanese/mh

Baptiste Daroussin bapt at FreeBSD.org
Mon Aug 26 17:14:17 UTC 2013


Author: bapt
Date: Mon Aug 26 17:14:16 2013
New Revision: 325404
URL: http://svnweb.freebsd.org/changeset/ports/325404

Log:
  Fix build with clang by forcing the port to respect CFLAGS and adding -Wno-return-type to CFLAGS

Modified:
  head/japanese/mh/Makefile

Modified: head/japanese/mh/Makefile
==============================================================================
--- head/japanese/mh/Makefile	Mon Aug 26 16:48:46 2013	(r325403)
+++ head/japanese/mh/Makefile	Mon Aug 26 17:14:16 2013	(r325404)
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	mh (Japanese)
-# Date created:		28 March 1995
-# Whom:			Akito FUJITA <fujita at zoo.ncl.omron.co.jp>
-#
+# Created by: Akito FUJITA <fujita at zoo.ncl.omron.co.jp>
 # $FreeBSD$
-#
 
 PORTNAME=	mh
 PORTVERSION=	${VERSION}.j${JP_VERSION}
@@ -27,6 +23,7 @@ GNU_CONFIGURE=	yes
 CONFIGURE_ARGS=	--enable-batchmode \
 		--enable-apop=${PREFIX}/etc/pop.auth --enable-rpop
 MAKE_JOBS_UNSAFE=	yes
+CFLAGS+=	-Wno-return-type
 
 MAN1=	ali.1 anno.1 bbc.1 burst.1 comp.1 dist.1 folder.1 forw.1 inc.1 mark.1 \
 	mh-chart.1 mh.1 mhl.1 mhmail.1 mhn.1 mhook.1 mhparam.1 mhpath.1 \
@@ -47,6 +44,9 @@ CONFLICTS=	nmh-[0-9]*
 
 .include <bsd.port.pre.mk>
 
+post-patch:
+	${REINPLACE_CMD} -e "s/-O /${CFLAGS} /g" ${WRKSRC}/configure
+
 .if !defined(NOPORTDOCS)
 pre-install:
 	${MKDIR} ${PREFIX}/share/doc/ja-mh


More information about the svn-ports-head mailing list