1999-04-30 17:02:05 +00:00
|
|
|
# New ports collection makefile for: nam
|
|
|
|
# Date created: 26 April 1999
|
|
|
|
# Whom: obonilla
|
|
|
|
#
|
1999-08-30 14:24:37 +00:00
|
|
|
# $FreeBSD$
|
1999-04-30 17:02:05 +00:00
|
|
|
#
|
|
|
|
|
2000-04-09 18:14:07 +00:00
|
|
|
PORTNAME= nam
|
2007-01-01 00:58:01 +00:00
|
|
|
PORTVERSION= 1.12
|
2007-05-19 20:36:56 +00:00
|
|
|
PORTREVISION= 2
|
1999-04-30 17:02:05 +00:00
|
|
|
CATEGORIES= net
|
2000-12-11 02:28:41 +00:00
|
|
|
MASTER_SITES= http://www.isi.edu/nsnam/dist/
|
2002-10-08 03:52:06 +00:00
|
|
|
DISTNAME= nam-src-${PORTVERSION}
|
1999-04-30 17:02:05 +00:00
|
|
|
|
2002-10-08 03:52:06 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2005-07-26 22:03:04 +00:00
|
|
|
COMMENT= Animation tool for network simulation traces
|
1999-04-30 17:02:05 +00:00
|
|
|
|
2000-03-20 22:47:00 +00:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/lib/libtclcl.a:${PORTSDIR}/devel/tclcl
|
2005-08-31 22:35:42 +00:00
|
|
|
LIB_DEPENDS= otcl.1:${PORTSDIR}/lang/otcl
|
1999-04-30 17:02:05 +00:00
|
|
|
|
2005-08-31 22:35:42 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
1999-04-30 17:02:05 +00:00
|
|
|
|
2006-12-11 08:06:19 +00:00
|
|
|
USE_XLIB= yes
|
1999-04-30 17:02:05 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2007-03-11 21:01:34 +00:00
|
|
|
CXXFLAGS+= -I${LOCALBASE}/include/tclcl
|
2004-04-19 04:54:43 +00:00
|
|
|
CONFIGURE_ARGS= --with-tcl-ver=8.4 --with-tk-ver=8.4
|
2005-08-31 22:35:42 +00:00
|
|
|
MAKE_ARGS= CCOPT="${CXXFLAGS}"
|
|
|
|
ALL_TARGET= ${PORTNAME}
|
1999-04-30 17:02:05 +00:00
|
|
|
|
2005-08-31 22:35:42 +00:00
|
|
|
MAN1= nam.1
|
2005-08-09 13:46:22 +00:00
|
|
|
|
2002-06-09 03:16:07 +00:00
|
|
|
post-patch:
|
2007-03-11 21:01:34 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|/usr/src/local/Tcl-1.0|${LOCALBASE}/include/tclcl|g' ${WRKSRC}/configure
|
2005-08-31 22:35:42 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|const = NULL|const = 0|g' ${WRKSRC}/agent.h
|
|
|
|
@${REINPLACE_CMD} -e 's|friend Queue|friend class Queue|g' ${WRKSRC}/queue.h
|
2002-06-09 03:16:07 +00:00
|
|
|
|
1999-04-30 17:02:05 +00:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/nam ${PREFIX}/bin
|
2005-08-31 22:35:42 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/nam.1 ${MANPREFIX}/man/man1
|
2002-10-08 03:52:06 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/ex/* ${EXAMPLESDIR}
|
|
|
|
.endif
|
2002-06-09 03:16:07 +00:00
|
|
|
|
2005-08-31 22:35:42 +00:00
|
|
|
.include <bsd.port.mk>
|