49 lines
1.9 KiB
Makefile
49 lines
1.9 KiB
Makefile
# $NetBSD: Makefile,v 1.11 2014/12/09 11:52:03 fhajny Exp $
|
|
#
|
|
|
|
DISTNAME= apache-maven-3.2.3
|
|
CATEGORIES= devel java
|
|
MASTER_SITES= ${MASTER_SITE_APACHE:=maven/maven-3/${PKGVERSION_NOREV}/binaries/}
|
|
DISTFILES= ${DISTNAME}-bin${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= yyamano@NetBSD.org
|
|
HOMEPAGE= http://maven.apache.org/
|
|
COMMENT= Apache Project's software project management and comprehension tool
|
|
LICENSE= apache-2.0
|
|
|
|
USE_JAVA= run
|
|
USE_JAVA2= 1.5
|
|
USE_TOOLS+= pax
|
|
NO_BUILD= yes
|
|
|
|
SUBST_CLASSES+= maven
|
|
SUBST_FILES.maven= bin/m2.conf bin/mvn
|
|
SUBST_STAGE.maven= pre-configure
|
|
SUBST_VARS.maven= PKG_JAVA_HOME PKG_SYSCONFDIR PREFIX
|
|
|
|
INSTALLATION_DIRS= bin etc/maven lib/java/maven lib/java/maven/boot \
|
|
share/doc/java/maven share/examples/maven \
|
|
share/examples/maven/logging
|
|
|
|
PKG_SYSCONFSUBDIR= maven
|
|
MAKE_DIRS+= ${PKG_SYSCONFDIR}/logging
|
|
CONF_FILES= share/examples/maven/m2.conf \
|
|
${PKG_SYSCONFDIR}/m2.conf
|
|
CONF_FILES+= share/examples/maven/settings.xml \
|
|
${PKG_SYSCONFDIR}/settings.xml
|
|
CONF_FILES+= share/examples/maven/logging/simplelogger.properties \
|
|
${PKG_SYSCONFDIR}/logging/simplelogger.properties
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/bin/mvn ${DESTDIR}${PREFIX}/bin
|
|
${INSTALL_DATA} ${WRKSRC}/bin/m2.conf ${DESTDIR}${PREFIX}/share/examples/maven
|
|
${INSTALL_DATA} ${WRKSRC}/conf/settings.xml ${DESTDIR}${PREFIX}/share/examples/maven
|
|
${INSTALL_DATA} ${WRKSRC}/conf/logging/simplelogger.properties ${DESTDIR}${PREFIX}/share/examples/maven/logging
|
|
${INSTALL_DATA} ${WRKSRC}/boot/*.jar ${DESTDIR}${PREFIX}/lib/java/maven/boot
|
|
${INSTALL_DATA} ${WRKSRC}/lib/*.jar ${DESTDIR}${PREFIX}/lib/java/maven
|
|
${INSTALL_DATA} ${WRKSRC}/README.txt ${DESTDIR}${PREFIX}/share/doc/java/maven
|
|
${INSTALL_DATA} ${WRKSRC}/NOTICE ${DESTDIR}${PREFIX}/share/doc/java/maven
|
|
${INSTALL_DATA} ${WRKSRC}/LICENSE ${DESTDIR}${PREFIX}/share/doc/java/maven
|
|
|
|
.include "../../mk/java-vm.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|