From 7a9430c0af68d05781a09e3d184ae8f49129a9dc Mon Sep 17 00:00:00 2001 From: DPorts Builder Date: Thu, 14 May 2015 10:53:42 -0700 Subject: [PATCH] Tweak emulators/yape version 0.32.5_3 --- emulators/yape/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/emulators/yape/Makefile b/emulators/yape/Makefile index fd2d72b47f6..c38ce029173 100644 --- a/emulators/yape/Makefile +++ b/emulators/yape/Makefile @@ -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 -- 2.41.0