Date: Tue, 9 Apr 2019 17:47:43 +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: r498485 - branches/2019Q2/graphics/pqiv Message-ID: <201904091747.x39Hlhfh097280@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: linimon Date: Tue Apr 9 17:47:42 2019 New Revision: 498485 URL: https://svnweb.freebsd.org/changeset/ports/498485 Log: MFH: r498484 Remove #pragma GCC diagnostic to fix build on GCC-based architectures. PR: 237097 Submitted by: Piotr Kubaj Approved by: portmgr (tier-2 blanket) Modified: branches/2019Q2/graphics/pqiv/Makefile Directory Properties: branches/2019Q2/ (props changed) Modified: branches/2019Q2/graphics/pqiv/Makefile ============================================================================== --- branches/2019Q2/graphics/pqiv/Makefile Tue Apr 9 17:45:15 2019 (r498484) +++ branches/2019Q2/graphics/pqiv/Makefile Tue Apr 9 17:47:42 2019 (r498485) @@ -10,8 +10,6 @@ COMMENT= Pretty Quick Image Viewer LICENSE= GPLv2 -BROKEN_powerpc64= fails to compile: pqiv.c:1183: \#pragma GCC diagnostic not allowed inside functions - LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ libfreetype.so:print/freetype2 BUILD_DEPENDS= bash:shells/bash @@ -68,6 +66,14 @@ MAKEFILE= GNUmakefile PORTDOCS= README.markdown PLIST_FILES= bin/pqiv man/man1/pqiv.1.gz + +post-patch: +.if exists(/usr/lib/libstdc++.so) + @${REINPLACE_CMD} -e '/#pragma GCC diagnostic/d' \ + -e '/PQIV_DISABLE_PEDANTIC/d' \ + -e '/PQIV_ENABLE_PEDANTIC/d' \ + ${WRKSRC}/pqiv.c +.endif do-install: ${INSTALL_PROGRAM} ${WRKSRC}/pqiv ${STAGEDIR}${PREFIX}/bin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201904091747.x39Hlhfh097280>