aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/netwag/Makefile
blob: 7ff09cb165246d14015f81679aaf3ed2ecec7365 (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
# New ports collection makefile for:    netwag
# Date created:             11.08.2004
# Whom:                 janos.mohacsi@bsd.hu
#
# $FreeBSD$
#

PORTNAME=   netwag
PORTVERSION=    5.26.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/
DISTFILES=  ${PORTNAME}-${PORTVERSION}-src.tgz ${PORTNAME}-${PORTVERSION}-doc_html.tgz

MAINTAINER= janos.mohacsi@bsd.hu
COMMENT=    A graphical front end for netwox

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

WRKSRC=     ${WRKDIR}/${PORTNAME}-${PORTVERSION}-src/src
USE_REINPLACE=  yes
SHORTPORTVERSION=${PORTVERSION:C/([0-9]*)\.([0-9]*)\.[0-9]*/\1\2/}
MAN1=       ${PORTNAME}.1 ${PORTNAME}${SHORTPORTVERSION}.1

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:
.ifndef(NOPORTDOCS)
        @${MKDIR} ${DOCSDIR}
        @${CP} -R ${WRKSRC}/../../${PORTNAME}-${PORTVERSION}-doc_html/* ${DOCSDIR}
.endif

.include <bsd.port.mk>