From owner-svn-ports-head@FreeBSD.ORG Fri May 8 09:13:36 2015 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 24931AFF; Fri, 8 May 2015 09:13:36 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1351019E2; Fri, 8 May 2015 09:13:36 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t489DZ5o037187; Fri, 8 May 2015 09:13:35 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t489DZom037186; Fri, 8 May 2015 09:13:35 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201505080913.t489DZom037186@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Fri, 8 May 2015 09:13:35 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r385734 - head/emulators/yape 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.20 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: Fri, 08 May 2015 09:13:36 -0000 Author: amdmi3 Date: Fri May 8 09:13:35 2015 New Revision: 385734 URL: https://svnweb.freebsd.org/changeset/ports/385734 Log: - Fix build with clang Approved by: portmgr blanket MFH: 2015Q2 Modified: head/emulators/yape/Makefile Modified: head/emulators/yape/Makefile ============================================================================== --- head/emulators/yape/Makefile Fri May 8 09:13:04 2015 (r385733) +++ head/emulators/yape/Makefile Fri May 8 09:13:35 2015 (r385734) @@ -12,7 +12,7 @@ MAINTAINER= jmohacsi@bsd.hu COMMENT= Yet Another Commodore +4 Emulator USE_SDL= sdl -USES= gmake +USES= compiler:features gmake NO_WRKSUBDIR= yes ALL_TARGET= yape @@ -21,12 +21,17 @@ PORTDOCS= README.SDL OPTIONS_DEFINE= DOCS +.include + post-extract: @${FIND} -E ${WRKDIR} -type f -iregex ".*\.(c|cpp|h|txt)" -print0 | \ ${XARGS} -0 ${REINPLACE_CMD} -e 's/[[:cntrl:]]*$$//' @${REINPLACE_CMD} -e 's/[[:cntrl:]]*$$//' ${WRKSRC}/Makefile post-patch: +.if ${COMPILER_TYPE} == clang + @${REINPLACE_CMD} -e "s|-frerun-loop-opt||" ${WRKSRC}/Makefile +.endif @${REINPLACE_CMD} -e "s|sdl-config|${SDL_CONFIG}|" ${WRKSRC}/Makefile @${REINPLACE_CMD} -e "s|TAP::TAP|TAP|" ${WRKSRC}/tape.h @@ -37,4 +42,4 @@ post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README.SDL ${STAGEDIR}${DOCSDIR} -.include +.include