Lines 7-13
Link Here
|
7 |
|
7 |
|
8 |
PORTNAME= nam |
8 |
PORTNAME= nam |
9 |
PORTVERSION= 1.11 |
9 |
PORTVERSION= 1.11 |
10 |
#PORTREVISION= 1 |
10 |
PORTREVISION= 1 |
11 |
CATEGORIES= net |
11 |
CATEGORIES= net |
12 |
MASTER_SITES= http://www.isi.edu/nsnam/dist/ |
12 |
MASTER_SITES= http://www.isi.edu/nsnam/dist/ |
13 |
DISTNAME= nam-src-${PORTVERSION} |
13 |
DISTNAME= nam-src-${PORTVERSION} |
Lines 16-31
Link Here
|
16 |
COMMENT= Animation tool for network simulation traces |
16 |
COMMENT= Animation tool for network simulation traces |
17 |
|
17 |
|
18 |
BUILD_DEPENDS= ${LOCALBASE}/lib/libtclcl.a:${PORTSDIR}/devel/tclcl |
18 |
BUILD_DEPENDS= ${LOCALBASE}/lib/libtclcl.a:${PORTSDIR}/devel/tclcl |
19 |
LIB_DEPENDS= tcl84.1:${PORTSDIR}/lang/tcl84 |
19 |
LIB_DEPENDS= otcl.1:${PORTSDIR}/lang/otcl |
20 |
|
20 |
|
21 |
MAN1= nam.1 |
21 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} |
22 |
MANCOMPRESSED= no |
|
|
23 |
|
22 |
|
24 |
USE_REINPLACE= yes |
23 |
USE_REINPLACE= yes |
25 |
GNU_CONFIGURE= yes |
24 |
GNU_CONFIGURE= yes |
26 |
CONFIGURE_ARGS= --with-tcl-ver=8.4 --with-tk-ver=8.4 |
25 |
CONFIGURE_ARGS= --with-tcl-ver=8.4 --with-tk-ver=8.4 |
27 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} |
26 |
MAKE_ARGS= CCOPT="${CXXFLAGS}" |
28 |
ALL_TARGET= # empty |
27 |
ALL_TARGET= ${PORTNAME} |
|
|
28 |
|
29 |
MAN1= nam.1 |
29 |
|
30 |
|
30 |
.include <bsd.port.pre.mk> |
31 |
.include <bsd.port.pre.mk> |
31 |
|
32 |
|
Lines 34-44
Link Here
|
34 |
.endif |
35 |
.endif |
35 |
|
36 |
|
36 |
post-patch: |
37 |
post-patch: |
37 |
@${REINPLACE_CMD} -e 's,friend Queue,friend class Queue,' ${WRKSRC}/queue.h |
38 |
@${REINPLACE_CMD} -e 's|const = NULL|const = 0|g' ${WRKSRC}/agent.h |
|
|
39 |
@${REINPLACE_CMD} -e 's|friend Queue|friend class Queue|g' ${WRKSRC}/queue.h |
38 |
|
40 |
|
39 |
do-install: |
41 |
do-install: |
40 |
${INSTALL_PROGRAM} ${WRKSRC}/nam ${PREFIX}/bin |
42 |
${INSTALL_PROGRAM} ${WRKSRC}/nam ${PREFIX}/bin |
41 |
${INSTALL_MAN} ${WRKSRC}/nam.1 ${PREFIX}/man/man1 |
43 |
${INSTALL_MAN} ${WRKSRC}/nam.1 ${MANPREFIX}/man/man1 |
42 |
.if !defined(NOPORTDOCS) |
44 |
.if !defined(NOPORTDOCS) |
43 |
@${MKDIR} ${EXAMPLESDIR} |
45 |
@${MKDIR} ${EXAMPLESDIR} |
44 |
${INSTALL_DATA} ${WRKSRC}/ex/* ${EXAMPLESDIR} |
46 |
${INSTALL_DATA} ${WRKSRC}/ex/* ${EXAMPLESDIR} |