# $NetBSD: Makefile,v 1.16 2002/09/08 06:19:00 tron Exp $ DISTNAME= configurator_152-128 PKGNAME= ${BINNAME}-1.5.2 PKGREVISION= 1 CATEGORIES= net MASTER_SITES= ${HOMEPAGE} EXTRACT_SUFX= .zip MAINTAINER= tron@netbsd.org HOMEPAGE= http://edge.mcs.drexel.edu/GICL/people/sevy/airport/ COMMENT= Configuration program for Apple's Airport Base Station USE_JAVA= run PLIST_SUBST+= BINNAME=${BINNAME} JARNAME=${JARNAME} ONLY_FOR_PLATFORM= NetBSD-*-i386 NetBSD-*-powerpc Darwin-*-* BINNAME= airportbasestationconfig DOCDIR= ${PREFIX}/share/doc/${BINNAME} JARNAME= AirportConfig128Bit.jar LIBDIR= ${PREFIX}/lib/${BINNAME} .include "../../mk/bsd.prefs.mk" # "jdk" and "kaffe" packages don't work. .if ${MACHINE_ARCH} == i386 || ${OPSYS} == "Darwin" PKG_JVM= sun-jdk .elif ${MACHINE_ARCH} == powerpc PKG_JVM= blackdown-jdk13 .else PKG_JVM= none .endif .if ${PKG_JVM} == blackdown-jdk13 JVM_OPTS+= -green -jar .else JVM_OPTS= -jar .endif post-extract: ${CHMOD} -R g-w,o-w ${WRKSRC}/* do-build: ${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 ${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} && \ cd helpdocs && \ ${INSTALL_DATA} ReadMe.txt ${DOCDIR}/README && \ ${INSTALL_DATA} mainscreen.jpg manual.html ${DOCDIR} .include "../../mk/bsd.pkg.mk"