aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/airport/Makefile
blob: ffb6585bcfa9d6976d964b574b38896fad7d1802 (plain) (blame)
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
46
47
# New ports collection makefile for:    airport
# Date created:     2000/09/16
# Whom:         Nick Sayer
#
# $FreeBSD$
#

PORTNAME=   airport
PORTVERSION=    1.4
PORTREVISION=   1
CATEGORIES= net java
MASTER_SITES=   http://edge.mcs.drexel.edu/GICL/people/sevy/airport/
DISTFILES=  configurator_${PORTVERSION:S/.//}${EXTRACT_SUFX}

MAINTAINER= nsayer@freebsd.org

RUN_DEPENDS=    ${LOCALBASE}/jdk${JDK_VERSION}/bin/java:${PORTSDIR}/java/jdk \
        ${LOCALBASE}/share/java/classes/jfc-${JFC_VERSION}/swingall.jar:${PORTSDIR}/java/jfc \
        ${LOCALBASE}/bin/javavm:${PORTSDIR}/java/javavmwrapper

USE_ZIP=    YES

NO_WRKSUBDIR=   YES

JDK_VERSION=    1.1.8
JFC_VERSION=    1.1.1

NO_BUILD=   yes

.include <bsd.port.pre.mk>

do-install:
    @cd ${WRKSRC}; \
        ${MKDIR} ${PREFIX}/share/doc/airport/helpdocs; \
        ${MKDIR} ${PREFIX}/share/java; \
        ${INSTALL_DATA} ${WRKSRC}/*jar ${PREFIX}/share/java; \
        ${CP} ${WRKSRC}/AUTHORS ${PREFIX}/share/doc/airport; \
        ${CP} ${WRKSRC}/COPYING ${PREFIX}/share/doc/airport; \
        ${CP} -r ${WRKSRC}/helpdocs/* ${PREFIX}/share/doc/airport/helpdocs; \
        ${SED} \
            -e s,%%PREFIX%%,${PREFIX},g \
            -e s/%%JFC_VERSION%%/${JFC_VERSION}/ \
            -e s/%%JDK_VERSION%%/${JDK_VERSION}/ \
            < ${FILESDIR}/airport > ${PREFIX}/bin/airport; \
        ${CHMOD} a+x ${PREFIX}/bin/airport

.include <bsd.port.post.mk>