svn commit: r498171 - branches/2019Q2/graphics/comical

Mark Linimon linimon at FreeBSD.org
Sat Apr 6 19:31:39 UTC 2019


Author: linimon
Date: Sat Apr  6 19:31:38 2019
New Revision: 498171
URL: https://svnweb.freebsd.org/changeset/ports/498171

Log:
  MFH: r498170
  
  Filter compiler flags on GCC-based architectures to prevent:
  
    cc1plus: unrecognized command line option "-Wno-unused-local-typedef"
  
  Approved by:	portmgr (tier-2 blanket)

Modified:
  branches/2019Q2/graphics/comical/Makefile
Directory Properties:
  branches/2019Q2/   (props changed)

Modified: branches/2019Q2/graphics/comical/Makefile
==============================================================================
--- branches/2019Q2/graphics/comical/Makefile	Sat Apr  6 19:24:33 2019	(r498170)
+++ branches/2019Q2/graphics/comical/Makefile	Sat Apr  6 19:31:38 2019	(r498171)
@@ -16,9 +16,7 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 LIB_DEPENDS=	libminizip.so:archivers/minizip \
 		libunrar.so.5:archivers/libunrar5
 
-BROKEN_powerpc64=	fails to compile: cc1plus: unrecognized command line option "-Wno-unused-local-typedef"
-
-USES=		gmake
+USES=		compiler:c++11-lang gmake
 USE_WX=		2.8+
 
 MAKE_ENV=	WX_CONFIG=${WX_CONFIG}
@@ -37,12 +35,19 @@ PLIST_FILES=	bin/comical \
 		share/pixmaps/comical.png \
 		share/pixmaps/comical.xpm
 
+.include <bsd.port.pre.mk>
+
 # 'make makepatch' doesn't like dirs with spaces
 pre-patch:
 	@${MV} ${WRKSRC}/Comical\ Icons ${WRKSRC}/ComicalIcons
 
+.if ${ARCH:Mmips*} || ${ARCH:Mpowerpc*} || ${ARCH} == sparc64
+pre-configure:
+	${REINPLACE_CMD} -e 's|-Wno-unused-local-typedef||' ${WRKSRC}/src/Makefile
+.endif
+
 post-install:
 	cd ${WRKSRC}/ComicalIcons && \
 		${INSTALL_DATA} ${ICONS} ${STAGEDIR}${PREFIX}/share/pixmaps
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>


More information about the svn-ports-all mailing list