summaryrefslogtreecommitdiff
path: root/net/xnap
diff options
context:
space:
mode:
authorjwise <jwise@pkgsrc.org>2002-04-30 14:42:38 +0000
committerjwise <jwise@pkgsrc.org>2002-04-30 14:42:38 +0000
commitbc264b4cdad900dd57df42c2e3238467ee74e2ca (patch)
tree02942fde40b4ad0098065ea722c76986ae4a8799 /net/xnap
parentec9455a3084b17e9ffd01e02f319eda69c9f6b00 (diff)
downloadpkgsrc-bc264b4cdad900dd57df42c2e3238467ee74e2ca.tar.gz
Use bsd.pkg.mk's USE_JAVA, so that this package can be built with any
jvm supported by pkgsrc (such as the blackdown jdk on powerpc), not just the sun jvm on i386. If user is using a java-1.1 jdk (pkgsrc/lang/jdk or kaffe), pull in swing from the swing package.
Diffstat (limited to 'net/xnap')
-rw-r--r--net/xnap/Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/net/xnap/Makefile b/net/xnap/Makefile
index 702eebaf0d6..b06b8e02eb1 100644
--- a/net/xnap/Makefile
+++ b/net/xnap/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1.1.1 2002/04/28 22:15:14 hubertf Exp $
+# $NetBSD: Makefile,v 1.2 2002/04/30 14:42:38 jwise Exp $
#
DISTNAME= xnap-2.0
@@ -9,8 +9,7 @@ MAINTAINER= Benjamin.Wong@cc.gatech.edu
HOMEPAGE= http://xnap.sourceforge.net/
COMMENT= Java filesharing client with support for OpenNap
-DEPENDS= sun-jdk-[0-9]*:../../lang/sun-jdk13
-
+USE_JAVA= yes
NO_BUILD= yes
do-install:
@@ -22,3 +21,6 @@ do-install:
${CHOWN} -R ${BINOWN}:${BINGRP} ${PREFIX}/share/xnap ${PREFIX}/share/doc/xnap
.include "../../mk/bsd.pkg.mk"
+.if ${PKG_JVM} == "jdk" || ${PKG_JVM} == "kaffe"
+DEPENDS+= swing-[0-9]*:../../x11/swing
+.endif