aboutsummaryrefslogtreecommitdiff
path: root/graphics/pqiv/Makefile
diff options
context:
space:
mode:
authorMark Linimon <linimon@FreeBSD.org>2019-04-09 17:45:15 +0000
committerMark Linimon <linimon@FreeBSD.org>2019-04-09 17:45:15 +0000
commitd22aee6f3eeb3eca35187e0d4dbad5e0ded59728 (patch)
tree2a91f0c3ee8a28899887f9a761c464ad6af6fad0 /graphics/pqiv/Makefile
parent40d77fd3f81062763ccc549d762d215f9c062bd6 (diff)
downloadports-d22aee6f3eeb3eca35187e0d4dbad5e0ded59728.tar.gz
ports-d22aee6f3eeb3eca35187e0d4dbad5e0ded59728.zip
Notes
Diffstat (limited to 'graphics/pqiv/Makefile')
-rw-r--r--graphics/pqiv/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/graphics/pqiv/Makefile b/graphics/pqiv/Makefile
index cbd7032dc3bb..1cfba2d226f0 100644
--- a/graphics/pqiv/Makefile
+++ b/graphics/pqiv/Makefile
@@ -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