aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/netwag/Makefile
blob: c1934ff8ae8f6c973f73fa4c9674d55061a3b619 (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
# Created by: janos.mohacsi@bsd.hu
# $FreeBSD$

PORTNAME=   netwag
PORTVERSION=    5.38.0
CATEGORIES= net-mgmt ipv6
MASTER_SITES=   http://www.laurentconstantin.com/common/netw/${PORTNAME}/download/v5/ \
        http://membres.lycos.fr/lauconstantin/common/netw/${PORTNAME}/download/v5/ \
        http://laurentconstantin.free.fr/common/netw/${PORTNAME}/download/v5/
DISTNAME=   ${PORTNAME}-${PORTVERSION}-src
DISTFILES=  ${DISTNAME}.tgz ${DISTNAME:S/src/doc_html/}.tgz

MAINTAINER= jmohacsi@bsd.hu
COMMENT=    Graphical front end for netwox

DEPRECATED=     Tcl/Tk 8.4 is no longer maintained, please use 8.5+
EXPIRATION_DATE=    2017-11-20

BUILD_DEPENDS=  netwox:net-mgmt/netwox \
        wish8.4:x11-toolkits/tk84 \
        appres:x11/appres \
        xterm:x11/xterm
RUN_DEPENDS:=   ${BUILD_DEPENDS}

OPTIONS_DEFINE= DOCS

WRKSRC_SUBDIR=  src
SHORTPORTVERSION=${PORTVERSION:C/([0-9]*)\.([0-9]*)\.[0-9]*/\1\2/}

PLIST_SUB+= SHORTPORTVERSION=${SHORTPORTVERSION}

do-configure:
        @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' \
             -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
            ${WRKSRC}/config.dat
        cd ${WRKSRC}; ${SH} ./genemake

post-install:
        @${MKDIR} ${STAGEDIR}${DOCSDIR}
        ${CP} -R ${WRKSRC}/../../${PORTNAME}-${PORTVERSION}-doc_html/* ${STAGEDIR}${DOCSDIR}

.include <bsd.port.mk>