aboutsummaryrefslogtreecommitdiff
path: root/math/ocaml-ocamlgraph
diff options
context:
space:
mode:
Diffstat (limited to 'math/ocaml-ocamlgraph')
-rw-r--r--math/ocaml-ocamlgraph/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/math/ocaml-ocamlgraph/Makefile b/math/ocaml-ocamlgraph/Makefile
index 793c2881685c..4707ad4847c5 100644
--- a/math/ocaml-ocamlgraph/Makefile
+++ b/math/ocaml-ocamlgraph/Makefile
@@ -25,9 +25,6 @@ GNU_CONFIGURE= yes
PLIST_SUB+= OCAML_LIBDIR="${OCAML_LIBDIR}"
ALL_TARGET= all
-.ifndef NOPORTDOCS
-ALL_TARGET+= doc
-PORTDOCS= *
.include <bsd.port.pre.mk>
@@ -40,6 +37,10 @@ CONFIGURE_ARGS+= LABLGTK2=no
PLIST_SUB+= GUI="@comment "
.endif
+.ifndef NOPORTDOCS
+ALL_TARGET+= doc
+PORTDOCS= *
+
post-patch:
@${REINPLACE_CMD} -e '/VIEWER_DIR. doc/d' ${WRKSRC}/Makefile.in