33 lines
908 B
Makefile
33 lines
908 B
Makefile
# $NetBSD: Makefile,v 1.15 2012/10/23 17:19:21 asau Exp $
|
|
#
|
|
|
|
DISTNAME= xnap-2.0
|
|
PKGREVISION= 2
|
|
CATEGORIES= net java
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xnap/}
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://xnap.sourceforge.net/
|
|
COMMENT= Java filesharing client with support for OpenNap
|
|
|
|
USE_JAVA= run
|
|
PKG_JVMS_ACCEPTED= 1.4
|
|
|
|
NO_BUILD= yes
|
|
|
|
INSTALLATION_DIRS= bin share/xnap share/doc/xnap
|
|
|
|
SUBST_CLASSES+= path
|
|
SUBST_STAGE.path= pre-configure
|
|
SUBST_MESSAGE.path= fixing java path
|
|
SUBST_FILES.path= xnap.sh
|
|
SUBST_SED.path= -e 's,@JAVA_HOME@,${PKG_JAVA_HOME}/,g'
|
|
SUBST_SED.path+= -e 's,@PREFIX@,${PREFIX},g'
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/xnap.sh ${DESTDIR}${PREFIX}/bin/xnap
|
|
${INSTALL_DATA} ${WRKSRC}/xnap.jar ${DESTDIR}${PREFIX}/share/xnap/xnap.jar
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/xnap
|
|
|
|
.include "../../mk/java-vm.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|