1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

- Respect new tcl layout

- Fix build
- Bump PORTREVISON

Submitted by:   pointyhat
This commit is contained in:
Martin Wilke 2007-03-11 21:01:34 +00:00
parent 4c0ac4f1fd
commit c7d4f90ec2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=187160

View File

@ -7,6 +7,7 @@
PORTNAME= nam
PORTVERSION= 1.12
PORTREVISION= 1
CATEGORIES= net
MASTER_SITES= http://www.isi.edu/nsnam/dist/
DISTNAME= nam-src-${PORTVERSION}
@ -21,6 +22,7 @@ WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USE_XLIB= yes
GNU_CONFIGURE= yes
CXXFLAGS+= -I${LOCALBASE}/include/tclcl
CONFIGURE_ARGS= --with-tcl-ver=8.4 --with-tk-ver=8.4
MAKE_ARGS= CCOPT="${CXXFLAGS}"
ALL_TARGET= ${PORTNAME}
@ -28,6 +30,7 @@ ALL_TARGET= ${PORTNAME}
MAN1= nam.1
post-patch:
@${REINPLACE_CMD} -e 's|/usr/src/local/Tcl-1.0|${LOCALBASE}/include/tclcl|g' ${WRKSRC}/configure
@${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