From owner-svn-ports-head@FreeBSD.ORG Wed May 29 17:35:50 2013 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id BD4AAB7C; Wed, 29 May 2013 17:35:50 +0000 (UTC) (envelope-from ehaupt@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id AF50AB44; Wed, 29 May 2013 17:35:50 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r4THZo7q077078; Wed, 29 May 2013 17:35:50 GMT (envelope-from ehaupt@svn.freebsd.org) Received: (from ehaupt@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r4THZowZ077077; Wed, 29 May 2013 17:35:50 GMT (envelope-from ehaupt@svn.freebsd.org) Message-Id: <201305291735.r4THZowZ077077@svn.freebsd.org> From: Emanuel Haupt Date: Wed, 29 May 2013 17:35:50 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r319384 - head/mail/milter-callback X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 May 2013 17:35:50 -0000 Author: ehaupt Date: Wed May 29 17:35:50 2013 New Revision: 319384 URL: http://svnweb.freebsd.org/changeset/ports/319384 Log: Fix build on HEAD by setting USE_GCC=any which I believe is better than marking it BROKEN if clang is detected. In order to do that handle do-build target since the distribution Makefile includes which does not handle USE_GCC=any well. Modified: head/mail/milter-callback/Makefile Modified: head/mail/milter-callback/Makefile ============================================================================== --- head/mail/milter-callback/Makefile Wed May 29 16:52:39 2013 (r319383) +++ head/mail/milter-callback/Makefile Wed May 29 17:35:50 2013 (r319384) @@ -15,16 +15,27 @@ LIB_DEPENDS+= spf2:${PORTSDIR}/mail/libs USE_XZ= yes USE_RC_SUBR= milter-callback +USE_GCC= any SUB_FILES= pkg-message MAN8= milter-callback.8 -MAKE_ENV+= WITH_SPF=yes MAKE_JOBS_SAFE= yes -.if ${CC} == "clang" || ${CXX} == "clang++" -BROKEN= does not build with clang, uses nested functions -.endif +SRC_FILES= cache.c commonprocs.c cpit.c dealwithmxes.c detectlamespf.c \ + makedecision.c mcspf.c milter-callback.c pgupdate.c \ + processdirectpart.c processmxpart.c pushhistory.c sigusr1.c + +CFLAGS+= -DFREEBSD -DHAVE_NS_TYPE -DWITH_SPF -I${LOCALBASE}/include \ + -I${WRKSRC} -std=gnu99 +LDFLAGS+= -lmilter -lthr -L${LOCALBASE}/lib -lspf2 + +do-build: +.for f in ${SRC_FILES} + ${CC} ${CFLAGS} -c ${WRKSRC}/${f} -o ${WRKSRC}/${f:C/\.c/.o/} +.endfor + ${CC} ${LDFLAGS} ${SRC_FILES:C/(.*)\.c/${WRKSRC}\/\1.o/} \ + -o ${WRKSRC}/${PORTNAME} post-patch: @${REINPLACE_CMD} -e "s|/usr/local|${PREFIX}|" \