Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Aug 2013 17:14:17 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r325404 - head/japanese/mh
Message-ID:  <201308261714.r7QHEHE3000623@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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@zoo.ncl.omron.co.jp>
-#
+# Created by: Akito FUJITA <fujita@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308261714.r7QHEHE3000623>