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)
This commit is contained in:
Mark Linimon 2019-04-09 17:47:42 +00:00
parent c27fb10e52
commit 3bf4463578
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/branches/2019Q2/; revision=498485

View File

@ -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
@ -69,6 +67,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
${INSTALL_MAN} ${WRKSRC}/pqiv.1 ${STAGEDIR}${MAN1PREFIX}/man/man1