summaryrefslogtreecommitdiff
path: root/net/airportbasestationconfig
diff options
context:
space:
mode:
authortron <tron>2001-07-13 11:30:08 +0000
committertron <tron>2001-07-13 11:30:08 +0000
commit4f821d576d1f91d1661bbe312ea56fc6192d0cfa (patch)
tree574c2477dc677122e1a95324c5cc4a51065fa6d6 /net/airportbasestationconfig
parent7e6a9f405886b4b4ffb509cad2610a23d0135af3 (diff)
downloadpkgsrc-4f821d576d1f91d1661bbe312ea56fc6192d0cfa.tar.gz
Set "PKG_JVM" to "sun-jdk" to enforce use of the required Java VM.
Diffstat (limited to 'net/airportbasestationconfig')
-rw-r--r--net/airportbasestationconfig/Makefile24
1 files changed, 13 insertions, 11 deletions
diff --git a/net/airportbasestationconfig/Makefile b/net/airportbasestationconfig/Makefile
index 93862518369..814d0771724 100644
--- a/net/airportbasestationconfig/Makefile
+++ b/net/airportbasestationconfig/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.4 2001/02/25 04:18:03 hubertf Exp $
+# $NetBSD: Makefile,v 1.5 2001/07/13 11:30:08 tron Exp $
DISTNAME= configurator
PKGNAME= ${BINNAME}-1.2.2
@@ -11,25 +11,27 @@ HOMEPAGE= http://edge.mcs.drexel.edu/GICL/people/sevy/airport/
COMMENT= Configuration program for Apple's Airport Base Station
# "jdk" and "kaffe" packages don't work.
-DEPENDS+= sun-jdk>=1.3.0:../../lang/sun-jdk13
+PKG_JVM= sun-jdk
+USE_JAVA= YES
-BINNAME= airportbasestationconfig
-DOCDIR= ${PREFIX}/share/doc/${BINNAME}
DIST_SUBDIR= ${PKGNAME}
-LIBDIR= ${PREFIX}/lib/${BINNAME}
-PKG_JVM= jdk
PLIST_SUBST+= BINNAME=${BINNAME}
-USE_JAVA= YES
WRKSRC= ${WRKDIR}
+BINNAME= airportbasestationconfig
+DOCDIR= ${PREFIX}/share/doc/${BINNAME}
+LIBDIR= ${PREFIX}/lib/${BINNAME}
+
post-extract:
${CHMOD} -R g-w,o-w ${WRKSRC}/*
do-build:
- cd ${WRKSRC} && \
- ${ECHO} "#!/bin/sh" >${BINNAME} && \
- ${ECHO} "PATH=${JAVA_HOME}/bin:\$${PATH}; export PATH" >>${BINNAME} && \
- ${ECHO} "exec java -jar ${LIBDIR}/${BINNAME}.jar" >>${BINNAME}
+ ${ECHO} "#!/bin/sh" >${WRKSRC}/${BINNAME}
+ ${ECHO} "PATH=${JAVA_HOME}/bin:\$${PATH}; export PATH" >>${WRKSRC}/${BINNAME}
+.if defined(CLASSPATH)
+ ${ECHO} "CLASSPATH=${CLASSPATH}:\$${CLASSPATH}; export CLASSPATH" >>${WRKSRC}/${BINNAME}
+.endif
+ ${ECHO} "exec java -jar ${LIBDIR}/${BINNAME}.jar" >>${WRKSRC}/${BINNAME}
do-install:
${INSTALL_DATA_DIR} ${DOCDIR} ${LIBDIR}