summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
Diffstat (limited to 'misc')
-rw-r--r--misc/libreoffice4/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/misc/libreoffice4/Makefile b/misc/libreoffice4/Makefile
index 6a23be5dd6b..e1560f11415 100644
--- a/misc/libreoffice4/Makefile
+++ b/misc/libreoffice4/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.80 2015/09/08 19:39:38 wiz Exp $
+# $NetBSD: Makefile,v 1.81 2015/09/23 20:47:42 joerg Exp $
VERREL= 4.4.5
VERRC= 2
@@ -227,6 +227,14 @@ post-extract:
mkdir ${WRKSRC}/tmp
# mkdir ${WRKSRC}/${OBJDIR}
+.if !empty(PKG_OPTIONS:Mjava)
+CONFIGURE_ARGS+= JAVADOC=${TOOLS_DIR}/bin/javadoc
+
+pre-configure:
+ printf '#!/bin/sh\nexec ${PKG_JAVA_HOME}/bin/javadoc -Xdoclint:none "$$@"' > ${TOOLS_DIR}/bin/javadoc
+ ${CHMOD} a+x ${TOOLS_DIR}/bin/javadoc
+.endif
+
do-install:
cd ${WRKSRC} && make DESTDIR="${DESTDIR}" PREFIXDIR="${PREFIX}" distro-pack-install
# make install cleans ${DESTDIR}${PREFIX}/*, so bin etc. are removed.