Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Apr 2019 19:31:38 +0000 (UTC)
From:      Mark Linimon <linimon@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org
Subject:   svn commit: r498171 - branches/2019Q2/graphics/comical
Message-ID:  <201904061931.x36JVc7v065149@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



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