diff options
author | ryoon <ryoon@pkgsrc.org> | 2012-01-01 20:06:34 +0000 |
---|---|---|
committer | ryoon <ryoon@pkgsrc.org> | 2012-01-01 20:06:34 +0000 |
commit | ae82633b46e2ee9f92bfad7e9b5e6f679ad31048 (patch) | |
tree | 95f5f2e33f2b3a8a334d73e2dafa76ef457a9447 /net/xnap/Makefile | |
parent | fda699d5db72d01c729241889f21252d645e1f55 (diff) | |
download | pkgsrc-ae82633b46e2ee9f92bfad7e9b5e6f679ad31048.tar.gz |
* Convert to use SUBST framework.
* Remove dependency to x11/swing.
* Drop lang/kaffe support, because x11/swing had been removed.
* Bump PKGREVISION.
Diffstat (limited to 'net/xnap/Makefile')
-rw-r--r-- | net/xnap/Makefile | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/net/xnap/Makefile b/net/xnap/Makefile index f4940c88373..3295dbc1834 100644 --- a/net/xnap/Makefile +++ b/net/xnap/Makefile @@ -1,8 +1,8 @@ -# $NetBSD: Makefile,v 1.13 2010/02/15 17:27:16 joerg Exp $ +# $NetBSD: Makefile,v 1.14 2012/01/01 20:06:34 ryoon Exp $ # DISTNAME= xnap-2.0 -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= net java MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xnap/} @@ -12,16 +12,19 @@ COMMENT= Java filesharing client with support for OpenNap PKG_DESTDIR_SUPPORT= user-destdir +USE_JAVA= run +PKG_JVMS_ACCEPTED= 1.4 + NO_BUILD= yes INSTALLATION_DIRS= bin share/xnap share/doc/xnap -post-extract: - cd ${WRKSRC} && ${MV} xnap.sh xnap.sh.in - -pre-configure: - cd ${WRKSRC} && ${SED} \ - -e 's|@PREFIX@|${PREFIX}|g' < xnap.sh.in > xnap.sh +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 @@ -29,9 +32,4 @@ do-install: ${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${PREFIX}/share/doc/xnap .include "../../mk/java-vm.mk" - -.if ${PKG_JVM} == "jdk" || ${PKG_JVM} == "kaffe" -DEPENDS+= swing-[0-9]*:../../x11/swing -.endif - .include "../../mk/bsd.pkg.mk" |