aboutsummaryrefslogtreecommitdiffstats
path: root/net/confregdecode/Makefile
blob: d799ca935fb0808282788ca54342c0368a40cb48 (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
# New ports collection makefile for: The cisco Systems IOS(tm) config register decoder
# Date created:     24 May 2001
# Whom:         Joe Clarke <marcus@marcuscom.com>
#
# $FreeBSD$
#

PORTNAME=   confregdecode
PORTVERSION=    1.0.1
CATEGORIES= net java
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= cosi-nms
DISTNAME=   confregdecode-src-${PORTVERSION}

MAINTAINER= marcus@FreeBSD.org

BUILD_DEPENDS=  ${LOCALBASE}/jdk1.1.8/bin/javac:${PORTSDIR}/java/jdk
RUN_DEPENDS=    ${LOCALBASE}/jdk1.1.8/bin/java:${PORTSDIR}/java/jdk \
        ${LOCALBASE}/bin/javavm:${PORTSDIR}/java/javavmwrapper

ALL_TARGET= jar

do-install:
    @${MKDIR} ${PREFIX}/share/java
    @${INSTALL_DATA} ${WRKSRC}/confregdecode.jar ${LOCALBASE}/share/java
    @${SED} \
        -e s,%%PREFIX%%,${PREFIX}, \
        -e s,%%LOCALBASE%%,${LOCALBASE}, \
        < ${FILESDIR}/confregdecode > ${PREFIX}/bin/confregdecode; \
    ${CHMOD} a+x ${PREFIX}/bin/confregdecode

post-install:
    @${MKDIR} ${PREFIX}/share/doc/confregdecode
    @${INSTALL_DATA} ${WRKSRC}/README.txt ${LOCALBASE}/share/doc/confregdecode
    @${INSTALL_DATA} ${WRKSRC}/ConfregDecode.html ${LOCALBASE}/share/doc/confregdecode

.include <bsd.port.mk>