Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 May 2015 09:38:45 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r385745 - branches/2015Q2/emulators/yape
Message-ID:  <201505080938.t489cjbA048790@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Fri May  8 09:38:45 2015
New Revision: 385745
URL: https://svnweb.freebsd.org/changeset/ports/385745

Log:
  MFH: r385734
  
  - Fix build with clang
  
  Approved by:	portmgr blanket
  Approved by:	ports-secteam (erwin)

Modified:
  branches/2015Q2/emulators/yape/Makefile
Directory Properties:
  branches/2015Q2/   (props changed)

Modified: branches/2015Q2/emulators/yape/Makefile
==============================================================================
--- branches/2015Q2/emulators/yape/Makefile	Fri May  8 09:22:52 2015	(r385744)
+++ branches/2015Q2/emulators/yape/Makefile	Fri May  8 09:38:45 2015	(r385745)
@@ -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 <bsd.port.pre.mk>
+
 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 <bsd.port.mk>
+.include <bsd.port.post.mk>



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