9c8b5ede43
developer is officially maintaining the package. The rationale for changing this from "tech-pkg" to "pkgsrc-users" is that it implies that any user can try to maintain the package (by submitting patches to the mailing list). Since the folks most likely to care about the package are the folks that want to use it or are already using it, this would leverage the energy of users who aren't developers.
57 lines
1.5 KiB
Makefile
57 lines
1.5 KiB
Makefile
# $NetBSD: Makefile,v 1.12 2006/03/04 21:30:16 jlam Exp $
|
|
|
|
DISTNAME= ${BINNAME}_20
|
|
PKGNAME= ${BINNAME}-2.0
|
|
PKGREVISION= 1
|
|
CATEGORIES= net
|
|
MASTER_SITES= ${HOMEPAGE}
|
|
EXTRACT_SUFX= .zip
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://edge.mcs.drexel.edu/GICL/people/sevy/airport/
|
|
COMMENT= Modem (dis)connection utility for Apple's Airport Base Station
|
|
|
|
PLIST_SUBST+= BINNAME=${BINNAME:Q} JARNAME=${JARNAME:Q}
|
|
|
|
ONLY_FOR_PLATFORM= NetBSD-*-i386 NetBSD-*-powerpc Darwin-*-*
|
|
|
|
BINNAME= airportmodemutility
|
|
DOCDIR= ${PREFIX}/share/doc/${BINNAME}
|
|
JARNAME= AirportModemUtility.jar
|
|
LIBDIR= ${PREFIX}/lib/${BINNAME}
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
USE_JAVA= run
|
|
PKG_JVMS_ACCEPTED= sun-jdk13 sun-jdk14 blackdown-jdk13 jdk14
|
|
|
|
INSTALLATION_DIRS= bin
|
|
|
|
post-extract:
|
|
${CHMOD} -R g-w,o-w ${WRKSRC}/*
|
|
|
|
do-build:
|
|
${ECHO} "#!/bin/sh" >${WRKSRC}/${BINNAME}
|
|
${ECHO} "PATH=${PKG_JAVA_HOME}/bin:\$${PATH}; export PATH" >>${WRKSRC}/${BINNAME}
|
|
.if defined(CLASSPATH)
|
|
${ECHO} "CLASSPATH=${CLASSPATH}:\$${CLASSPATH}; export CLASSPATH" >>${WRKSRC}/${BINNAME}
|
|
.endif
|
|
${ECHO} "exec java ${JVM_OPTS} ${LIBDIR}/${JARNAME}" >>${WRKSRC}/${BINNAME}
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${DOCDIR} ${LIBDIR}
|
|
cd ${WRKSRC} && \
|
|
${INSTALL_SCRIPT} ${BINNAME} ${PREFIX}/bin && \
|
|
${INSTALL_DATA} ${JARNAME} ${LIBDIR} && \
|
|
${INSTALL_DATA} AUTHORS ${DOCDIR} && \
|
|
${INSTALL_DATA} COPYING ${DOCDIR} && \
|
|
${INSTALL_DATA} README ${DOCDIR}
|
|
|
|
.include "../../mk/java-vm.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|
|
|
|
.if ${PKG_JVM} == "blackdown-jdk13"
|
|
JVM_OPTS+= -green -jar
|
|
.else
|
|
JVM_OPTS+= -jar
|
|
.endif
|