diff options
author | Mark Linimon <linimon@FreeBSD.org> | 2019-09-21 18:14:05 +0000 |
---|---|---|
committer | Mark Linimon <linimon@FreeBSD.org> | 2019-09-21 18:14:05 +0000 |
commit | 67367b82dfcc9359c093268fc60f9b7318ece4e4 (patch) | |
tree | f52b09438a185008d1411e2e0ea54fe4abf76a47 | |
parent | audio/oss: Improve handling when sound.ko is compiled into the kernel. (diff) |
Fix build on GCC-based installations:
xmlparse.c:1244: error: #pragma GCC diagnostic not allowed inside functions
Approved by: portmgr (tier-2 blanket)
Notes
Notes:
svn path=/head/; revision=512529
-rw-r--r-- | astro/routino/Makefile | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/astro/routino/Makefile b/astro/routino/Makefile index 146189d4e0af..36aaf876f2f8 100644 --- a/astro/routino/Makefile +++ b/astro/routino/Makefile @@ -12,14 +12,19 @@ COMMENT= Router for OpenStreetMap Data LICENSE= AGPLv3 OPTIONS_DEFINE= DOCS -USES= gmake perl5 tar:tgz +USES= compiler gmake perl5 tar:tgz USE_LDCONFIG= yes +.include <bsd.port.pre.mk> + post-patch: ${REINPLACE_CMD} 's|doc/routino|share/doc/routino|' \ ${WRKSRC}/Makefile.conf ${REINPLACE_CMD} 's|gcc|${CC}|' \ ${WRKSRC}/Makefile.conf +.if ${CHOSEN_COMPILER_TYPE} == gcc && ${COMPILER_VERSION} <= 42 + ${REINPLACE_CMD} -e '/pragma/d' ${WRKSRC}/src/xmlparse.c +.endif post-install: ${MKDIR} ${STAGEDIR}${WWWDIR} @@ -35,4 +40,4 @@ post-install: ${LN} -sf lib${f:R:R} ${STAGEDIR}${PREFIX}/lib/lib${f:R:R:R} .endfor -.include <bsd.port.mk> +.include <bsd.port.post.mk> |