blob: 93862518369801906ddc0b736d2338d763ed2d3a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# $NetBSD: Makefile,v 1.4 2001/02/25 04:18:03 hubertf Exp $
DISTNAME= configurator
PKGNAME= ${BINNAME}-1.2.2
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
# "jdk" and "kaffe" packages don't work.
DEPENDS+= sun-jdk>=1.3.0:../../lang/sun-jdk13
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}
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}
do-install:
${INSTALL_DATA_DIR} ${DOCDIR} ${LIBDIR}
cd ${WRKSRC} && \
${INSTALL_SCRIPT} ${BINNAME} ${PREFIX}/bin && \
${INSTALL_DATA} ${BINNAME}.jar ${LIBDIR} && \
${INSTALL_DATA} authors ${DOCDIR}/AUTHORS && \
${INSTALL_DATA} copying ${DOCDIR}/COPYING
cd ${WRKSRC}/helpdocs && \
${INSTALL_DATA} readme.txt ${DOCDIR}/README && \
${INSTALL_DATA} mainscreen.jpg manual.html ${DOCDIR}
.include "../../mk/bsd.pkg.mk"
|