Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Apr 2019 19:24:33 +0000 (UTC)
From:      Mark Linimon <linimon@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r498170 - head/graphics/comical
Message-ID:  <201904061924.x36JOXlQ060986@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: linimon
Date: Sat Apr  6 19:24:33 2019
New Revision: 498170
URL: https://svnweb.freebsd.org/changeset/ports/498170

Log:
  Filter compiler flags on GCC-based architectures to prevent:
  
    cc1plus: unrecognized command line option "-Wno-unused-local-typedef"

Modified:
  head/graphics/comical/Makefile

Modified: head/graphics/comical/Makefile
==============================================================================
--- head/graphics/comical/Makefile	Sat Apr  6 19:20:18 2019	(r498169)
+++ head/graphics/comical/Makefile	Sat Apr  6 19:24:33 2019	(r498170)
@@ -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>



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