aboutsummaryrefslogtreecommitdiff
path: root/textproc/gdome2
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/gdome2')
-rw-r--r--textproc/gdome2/Makefile18
1 files changed, 8 insertions, 10 deletions
diff --git a/textproc/gdome2/Makefile b/textproc/gdome2/Makefile
index 9cce228bbc0c..a2d742c837a5 100644
--- a/textproc/gdome2/Makefile
+++ b/textproc/gdome2/Makefile
@@ -23,17 +23,7 @@ OPTIONS_DEFINE= DOCS
PORTDOCS= *
-.include <bsd.port.options.mk>
-
post-patch:
-.if ${PORT_OPTIONS:MDOCS}
- @${REINPLACE_CMD} -E -e \
- 's,^(HTML_DIR *= *).*,\1\$$(DESTDIR)$$(prefix)/share/doc,' \
- ${WRKSRC}/gtk-doc/Makefile.in
-.else
- @${REINPLACE_CMD} '/gtk-doc/d' ${WRKSRC}/Makefile.in
-.endif
-
@${FIND} ${WRKSRC} -type f -and \
'(' -name '*.[ch]' -or -name '*.xml' ')' | \
${XARGS} ${REINPLACE_CMD} -e ' \
@@ -46,6 +36,14 @@ post-patch:
s,<parserInternals\.h>,<libxml/parserInternals.h>,; \
s,<entities\.h>,<libxml/entities.h>,'
+post-patch-DOCS-on:
+ @${REINPLACE_CMD} -E -e \
+ 's,^(HTML_DIR *= *).*,\1\$$(DESTDIR)$$(prefix)/share/doc,' \
+ ${WRKSRC}/gtk-doc/Makefile.in
+
+post-patch-DOCS-off:
+ @${REINPLACE_CMD} '/gtk-doc/d' ${WRKSRC}/Makefile.in
+
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libgdome.so