summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--devel/m4/Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/devel/m4/Makefile b/devel/m4/Makefile
index b3ed8f842d3c..6711cb3ff253 100644
--- a/devel/m4/Makefile
+++ b/devel/m4/Makefile
@@ -29,8 +29,15 @@ MAN1= gm4.1
EXAMPLESDIR= share/examples/gm4
+.include <bsd.port.pre.mk>
+
+.if ${OSVERSION} < 600000
+BUILD_DEPENDS+= ${LOCALBASE}/bin/makeinfo:${PORTSDIR}/print/texinfo
+CONFIGURE_ENV+= MAKEINFO=${LOCALBASE}/bin/makeinfo
+.endif
+
post-install:
@${MKDIR} ${PREFIX}/${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/examples/*.m4 ${PREFIX}/${EXAMPLESDIR}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>