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

- Convert to USES=tk

- Convert to new LIB_DEPENDS format
- STAGE-clean
- Respect EXAMPLESDIR
This commit is contained in:
Pietro Cerutti 2014-01-17 10:01:35 +00:00
parent f7481ef696
commit 8d5fcc272a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=340021
2 changed files with 49 additions and 48 deletions

View File

@ -11,30 +11,30 @@ MAINTAINER= masaki@club.kyutech.ac.jp
COMMENT= Animation tool for network simulation traces COMMENT= Animation tool for network simulation traces
BUILD_DEPENDS= ${LOCALBASE}/lib/libtclcl.a:${PORTSDIR}/devel/tclcl BUILD_DEPENDS= ${LOCALBASE}/lib/libtclcl.a:${PORTSDIR}/devel/tclcl
LIB_DEPENDS= otcl.1:${PORTSDIR}/lang/otcl LIB_DEPENDS= libotcl.so:${PORTSDIR}/lang/otcl
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
USES= gmake tk:85+
USE_XORG= xmu USE_XORG= xmu
GNU_CONFIGURE= yes GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-tcl-ver=${TCL_VER} --with-tk-ver=${TK_VER} --x-libraries=${LOCALBASE}/lib --x-includes=${LOCALBASE}/include CONFIGURE_ARGS= --with-tcl-ver=${TCL_VER} --with-tk-ver=${TK_VER} --x-libraries=${LOCALBASE}/lib --x-includes=${LOCALBASE}/include
USE_GMAKE= yes
USE_TK= 85+
ALL_TARGET= ${PORTNAME} ALL_TARGET= ${PORTNAME}
MAN1= nam.1 OPTIONS_DEFINE= EXAMPLES
.include <bsd.port.options.mk>
NO_STAGE= yes
post-patch: post-patch:
@${REINPLACE_CMD} -e "s,%%LOCALBASE%%,${LOCALBASE},g" \ @${REINPLACE_CMD} -e "s,%%LOCALBASE%%,${LOCALBASE},g" \
${WRKSRC}/configure ${WRKSRC}/configure
do-install: do-install:
${INSTALL_PROGRAM} ${WRKSRC}/nam ${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/nam ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/nam.1 ${MANPREFIX}/man/man1 ${INSTALL_MAN} ${WRKSRC}/nam.1 ${STAGEDIR}${PREFIX}/man/man1
.if !defined(NOPORTDOCS) .if ${PORT_OPTIONS:MEXAMPLES}
@${MKDIR} ${EXAMPLESDIR} @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/ex/* ${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/ex/* ${STAGEDIR}${EXAMPLESDIR}
.endif .endif
.include <bsd.port.mk> .include <bsd.port.mk>

View File

@ -1,39 +1,40 @@
bin/nam bin/nam
%%PORTDOCS%%share/examples/nam/9nodetree.nam man/man1/nam.1.gz
%%PORTDOCS%%share/examples/nam/DSR.nam %%PORTEXAMPLES%%%%EXAMPLESDIR%%/9nodetree.nam
%%PORTDOCS%%share/examples/nam/README %%PORTEXAMPLES%%%%EXAMPLESDIR%%/DSR.nam
%%PORTDOCS%%share/examples/nam/adc.README %%PORTEXAMPLES%%%%EXAMPLESDIR%%/README
%%PORTDOCS%%share/examples/nam/adc.nam.gz %%PORTEXAMPLES%%%%EXAMPLESDIR%%/adc.README
%%PORTDOCS%%share/examples/nam/algo-out-50sub.nam %%PORTEXAMPLES%%%%EXAMPLESDIR%%/adc.nam.gz
%%PORTDOCS%%share/examples/nam/att.README %%PORTEXAMPLES%%%%EXAMPLESDIR%%/algo-out-50sub.nam
%%PORTDOCS%%share/examples/nam/att.nam.gz %%PORTEXAMPLES%%%%EXAMPLESDIR%%/att.README
%%PORTDOCS%%share/examples/nam/dynamic-nam.conf %%PORTEXAMPLES%%%%EXAMPLESDIR%%/att.nam.gz
%%PORTDOCS%%share/examples/nam/dynamics-demo.nam %%PORTEXAMPLES%%%%EXAMPLESDIR%%/dynamic-nam.conf
%%PORTDOCS%%share/examples/nam/dynamics-demo.txt %%PORTEXAMPLES%%%%EXAMPLESDIR%%/dynamics-demo.nam
%%PORTDOCS%%share/examples/nam/flat-out-50sub.nam %%PORTEXAMPLES%%%%EXAMPLESDIR%%/dynamics-demo.txt
%%PORTDOCS%%share/examples/nam/hier-out-50sub.nam %%PORTEXAMPLES%%%%EXAMPLESDIR%%/flat-out-50sub.nam
%%PORTDOCS%%share/examples/nam/lan.nam %%PORTEXAMPLES%%%%EXAMPLESDIR%%/hier-out-50sub.nam
%%PORTDOCS%%share/examples/nam/lantest2.nam %%PORTEXAMPLES%%%%EXAMPLESDIR%%/lan.nam
%%PORTDOCS%%share/examples/nam/losspatterns.README %%PORTEXAMPLES%%%%EXAMPLESDIR%%/lantest2.nam
%%PORTDOCS%%share/examples/nam/losspatterns.nam %%PORTEXAMPLES%%%%EXAMPLESDIR%%/losspatterns.README
%%PORTDOCS%%share/examples/nam/mbone96.layout.nam %%PORTEXAMPLES%%%%EXAMPLESDIR%%/losspatterns.nam
%%PORTDOCS%%share/examples/nam/mbone96.nam %%PORTEXAMPLES%%%%EXAMPLESDIR%%/mbone96.layout.nam
%%PORTDOCS%%share/examples/nam/mcache.nam %%PORTEXAMPLES%%%%EXAMPLESDIR%%/mbone96.nam
%%PORTDOCS%%share/examples/nam/mobigen.nam %%PORTEXAMPLES%%%%EXAMPLESDIR%%/mcache.nam
%%PORTDOCS%%share/examples/nam/pktdemo.nam.gz %%PORTEXAMPLES%%%%EXAMPLESDIR%%/mobigen.nam
%%PORTDOCS%%share/examples/nam/rbp_demo.README %%PORTEXAMPLES%%%%EXAMPLESDIR%%/pktdemo.nam.gz
%%PORTDOCS%%share/examples/nam/rbp_demo.nam %%PORTEXAMPLES%%%%EXAMPLESDIR%%/rbp_demo.README
%%PORTDOCS%%share/examples/nam/rpm-vs-srm.nam %%PORTEXAMPLES%%%%EXAMPLESDIR%%/rbp_demo.nam
%%PORTDOCS%%share/examples/nam/sample.nam.tcl %%PORTEXAMPLES%%%%EXAMPLESDIR%%/rpm-vs-srm.nam
%%PORTDOCS%%share/examples/nam/session.README %%PORTEXAMPLES%%%%EXAMPLESDIR%%/sample.nam.tcl
%%PORTDOCS%%share/examples/nam/session.nam.gz %%PORTEXAMPLES%%%%EXAMPLESDIR%%/session.README
%%PORTDOCS%%share/examples/nam/simple_mcast.nam %%PORTEXAMPLES%%%%EXAMPLESDIR%%/session.nam.gz
%%PORTDOCS%%share/examples/nam/srm-example.nam %%PORTEXAMPLES%%%%EXAMPLESDIR%%/simple_mcast.nam
%%PORTDOCS%%share/examples/nam/tcpecn.nam.gz %%PORTEXAMPLES%%%%EXAMPLESDIR%%/srm-example.nam
%%PORTDOCS%%share/examples/nam/tcpsrm.nam.gz %%PORTEXAMPLES%%%%EXAMPLESDIR%%/tcpecn.nam.gz
%%PORTDOCS%%share/examples/nam/test.nam.gz %%PORTEXAMPLES%%%%EXAMPLESDIR%%/tcpsrm.nam.gz
%%PORTDOCS%%share/examples/nam/ts100.layout.nam.gz %%PORTEXAMPLES%%%%EXAMPLESDIR%%/test.nam.gz
%%PORTDOCS%%share/examples/nam/ts100.nam.gz %%PORTEXAMPLES%%%%EXAMPLESDIR%%/ts100.layout.nam.gz
%%PORTDOCS%%share/examples/nam/ts20.nam.gz %%PORTEXAMPLES%%%%EXAMPLESDIR%%/ts100.nam.gz
%%PORTDOCS%%share/examples/nam/webcache.nam %%PORTEXAMPLES%%%%EXAMPLESDIR%%/ts20.nam.gz
%%PORTDOCS%%@dirrm share/examples/nam %%PORTEXAMPLES%%%%EXAMPLESDIR%%/webcache.nam
%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%