# $NetBSD: Makefile,v 1.21 2012/12/16 01:52:11 obache Exp $ # DISTNAME= opengrok-0.8.1 PKGREVISION= 5 CATEGORIES= devel MASTER_SITES= http://hub.opensolaris.org/bin/download/Project+opengrok/files/ MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= http://hub.opensolaris.org/bin/view/Project+opengrok/ COMMENT= Fast and usable source code search and cross reference engine DEPENDS+= exctags-[0-9]*:../../devel/exctags .include "options.mk" .if empty(PKG_OPTIONS:Mopengrok-build) NO_BUILD= YES .endif USE_JAVA= run USE_JAVA2= yes USE_TOOLS+= unzip:run zip:run CONF_FILES= ${PREFIX}/share/examples/opengrok/paths.tsv \ ${PREFIX}/share/opengrok/paths.tsv SUBST_CLASSES+= run SUBST_STAGE.run= post-patch SUBST_FILES.run= run.sh run-quiet.sh SUBST_SED.run= -e "s|/usr/local/bin/ctags|${PREFIX}/bin/exctags|g" SUBST_SED.run+= -e "s|java|${PKG_JAVA_HOME}/bin/java|g" SUBST_SED.run+= -e "s|@PREFIX@|${PREFIX}|g" SUBST_MESSAGE.run= Fixing hardcoded paths. pre-build: ${CP} ${PREFIX}/lib/java/JFlex.jar ${WRKSRC}/lib do-build: cd ${WRKSRC} && ${PREFIX}/bin/ant post-build: ${RM} -f ${WRKSRC}/lib/*.jar ${CP} ${WRKSRC}/dist/lib/*.jar ${WRKSRC}/lib ${CP} ${WRKSRC}/dist/opengrok.jar ${WRKSRC} ${CP} ${WRKSRC}/dist/source.war ${WRKSRC} do-install: ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/opengrok ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/opengrok/lib ${INSTALL_DATA_DIR} ${DESTDIR}${PREFIX}/share/examples/opengrok ${INSTALL_DATA} ${WRKSRC}/README.txt \ ${DESTDIR}${PREFIX}/share/opengrok ${INSTALL_DATA} ${WRKSRC}/opengrok.jar \ ${DESTDIR}${PREFIX}/share/opengrok ${INSTALL_DATA} ${WRKSRC}/source.war \ ${DESTDIR}${PREFIX}/share/opengrok ${INSTALL_DATA} ${WRKSRC}/lib/*.jar \ ${DESTDIR}${PREFIX}/share/opengrok/lib ${INSTALL_DATA} ${WRKSRC}/paths.tsv \ ${DESTDIR}${PREFIX}/share/examples/opengrok ${INSTALL_SCRIPT} ${WRKSRC}/run.sh \ ${DESTDIR}${PREFIX}/share/opengrok ${INSTALL_SCRIPT} ${WRKSRC}/run-quiet.sh \ ${DESTDIR}${PREFIX}/share/opengrok .include "../../mk/java-vm.mk" .include "../../mk/bsd.pkg.mk"