[BACK]Return to Makefile CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / devel / opengrok

File: [cvs.NetBSD.org] / pkgsrc / devel / opengrok / Makefile (download)

Revision 1.30, Mon Jan 27 18:41:12 2014 UTC (6 years, 2 months ago) by wiz
Branch: MAIN
Changes since 1.29: +1 -3 lines

Do not set FETCH_USING, should not be set in a package Makefile.

# $NetBSD: Makefile,v 1.30 2014/01/27 18:41:12 wiz Exp $

DISTNAME=	OpenGrok-0.12-rc5
PKGNAME=	${DISTNAME:tl:S/-rc/rc/}
CATEGORIES=	devel
MASTER_SITES=	-https://github.com/OpenGrok/OpenGrok/archive/0.12-rc5.tar.gz

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://opengrok.github.io/OpenGrok/
COMMENT=	Fast and usable source code search and cross reference engine
LICENSE=	cddl-1.0

EXTRACT_USING=	bsdtar

DEPENDS+=	exctags-[0-9]*:../../devel/exctags
DEPENDS+=	jflex-[0-9]*:../../devel/jflex
DEPENDS+=	apache-ant-[0-9]*:../../devel/apache-ant

SUBST_CLASSES+=		vcs
SUBST_FILES.vcs+=	OpenGrok
SUBST_MESSAGE.vcs=	Set VCS program pathes.
SUBST_STAGE.vcs=	pre-configure
SUBST_VARS.vcs=		PREFIX

SUBST_CLASSES+=		conf
SUBST_FILES.conf+=	web/WEB-INF/web.xml
SUBST_MESSAGE.conf=	Set configuration.xml location
SUBST_STAGE.conf=	pre-configure
SUBST_VARS.conf=	PREFIX

.include "options.mk"

USE_JAVA=	yes
USE_JAVA2=	yes
USE_TOOLS+=	unzip:run zip:run

CONF_FILES=	${PREFIX}/share/examples/opengrok/paths.tsv \
		${PREFIX}/share/opengrok/var/opengrok/paths.tsv

INSTALLATION_DIRS+=	share/opengrok/bin \
			share/opengrok/lib/lib \
			share/examples/opengrok \
			share/opengrok/var/opengrok

do-build:
	cd ${WRKSRC} && \
		CLASSPATH=${PREFIX}/lib/java/JFlex.jar ${PREFIX}/bin/ant

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/OpenGrok \
		${DESTDIR}${PREFIX}/share/opengrok/bin
	${INSTALL_DATA} ${WRKSRC}/README.txt \
		${DESTDIR}${PREFIX}/share/opengrok
	${INSTALL_DATA} ${WRKSRC}/dist/opengrok.jar \
		${DESTDIR}${PREFIX}/share/opengrok/lib
	${INSTALL_DATA} ${WRKSRC}/dist/source.war \
		${DESTDIR}${PREFIX}/share/opengrok/lib
	${INSTALL_DATA} ${WRKSRC}/dist/lib/*.jar \
		${DESTDIR}${PREFIX}/share/opengrok/lib/lib
	${INSTALL_DATA} ${WRKSRC}/paths.tsv \
		${DESTDIR}${PREFIX}/share/examples/opengrok

.include "../../mk/java-vm.mk"
.include "../../mk/bsd.pkg.mk"