svn commit: r385745 - branches/2015Q2/emulators/yape

Dmitry Marakasov amdmi3 at FreeBSD.org
Fri May 8 09:38:46 UTC 2015


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 at 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>


More information about the svn-ports-all mailing list