summaryrefslogtreecommitdiff
path: root/devel/opengrok/options.mk
diff options
context:
space:
mode:
Diffstat (limited to 'devel/opengrok/options.mk')
-rw-r--r--devel/opengrok/options.mk18
1 files changed, 16 insertions, 2 deletions
diff --git a/devel/opengrok/options.mk b/devel/opengrok/options.mk
index c6c69d5bf13..48d73fa6081 100644
--- a/devel/opengrok/options.mk
+++ b/devel/opengrok/options.mk
@@ -1,8 +1,8 @@
-# $NetBSD: options.mk,v 1.1.1.1 2007/04/08 16:59:41 adrianp Exp $
+# $NetBSD: options.mk,v 1.2 2008/10/25 18:11:16 adrianp Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.opengrok
-PKG_SUPPORTED_OPTIONS= svn
+PKG_SUPPORTED_OPTIONS= svn opengrok-build
.include "../../mk/bsd.options.mk"
@@ -13,3 +13,17 @@ PKG_SUPPORTED_OPTIONS= svn
. include "../../devel/subversion-base/buildlink3.mk"
BUILDLINK_API_DEPENDS.subversion-base+= subversion-base>=1.3.0
.endif
+
+###
+### Rebuild OpenGrok
+###
+.if !empty(PKG_OPTIONS:Mopengrok-build)
+DEPENDS+= jflex-[0-9]*:../../devel/jflex
+DEPENDS+= apache-ant-[0-9]*:../../devel/apache-ant
+USE_JAVA= yes
+
+OPENGROK_SOURCES= ${PKGNAME_NOREV}-src${EXTRACT_SUFX}
+DISTFILES+= ${OPENGROK_SOURCES}
+EXTRACT_ONLY+= ${OPENGROK_SOURCES}
+WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}-src
+.endif