summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--astro/routino/Makefile9
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>