aboutsummaryrefslogtreecommitdiffstats
path: root/net/cnet/Makefile
blob: 030a7438cedd3a3733e0bab8730e2157a50bdf12 (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
48
# New ports collection makefile for:    cnet
# Date created:         Feb 8th, 1988
# Whom:                 jkh
#
# $FreeBSD$
#

PORTNAME=   cnet
PORTVERSION=    1.7.7
PORTREVISION=   2
CATEGORIES= net tcl84 tk84
MASTER_SITES=   http://www.cs.uwa.edu.au/cnet/
EXTRACT_SUFX=   .tgz

MAINTAINER= ports@FreeBSD.org
COMMENT=    A networking simulator

LIB_DEPENDS=    tk84.1:${PORTSDIR}/x11-toolkits/tk84

USE_REINPLACE=  yes
USE_X_PREFIX=   yes
USE_XPM=    yes
USE_GMAKE=  yes
ALL_TARGET= # empty
MAN1=       cnet.1

post-patch:
    @${REINPLACE_CMD} -e 's|8.2|8.4|g ; \
         s|82|84|g' ${WRKSRC}/src/Makefile.freebsd
    @${REINPLACE_CMD} -e 's|%%CC%%|${CC}|g ; \
         s|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/src/config.h

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/src/cnet ${PREFIX}/bin
    ${INSTALL_DATA} ${WRKSRC}/src/cnet.h ${PREFIX}/include
    ${INSTALL_MAN} ${WRKSRC}/DOC/cnet.man ${PREFIX}/man/man1/cnet.1
    @${MKDIR} ${DATADIR}
    ${INSTALL_DATA} ${WRKSRC}/cnetlib/* ${DATADIR}
.if !defined(NOPORTDOCS)
    @${MKDIR} ${PREFIX}/share/examples/cnet
    ${INSTALL_DATA} ${WRKSRC}/EXAMPLES/* ${PREFIX}/share/examples/cnet
    @${MKDIR} ${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/DOC/*.html ${DOCSDIR}
    @${MKDIR} ${DOCSDIR}/images
    ${INSTALL_DATA} ${WRKSRC}/DOC/images/* ${DOCSDIR}/images
.endif

.include <bsd.port.mk>