2013-01-09 20:50:06 +01:00
|
|
|
# Created by: janos.mohacsi@bsd.hu
|
2004-11-05 00:39:51 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= mgen
|
2006-11-01 07:58:45 +01:00
|
|
|
PORTVERSION= 4.2b6
|
2004-11-05 00:39:51 +01:00
|
|
|
CATEGORIES= net
|
2009-05-08 23:50:30 +02:00
|
|
|
MASTER_SITES= http://downloads.pf.itd.nrl.navy.mil/mgen/mgen4/ \
|
2006-11-06 23:05:04 +01:00
|
|
|
${MASTER_SITE_LOCAL}
|
|
|
|
MASTER_SITE_SUBDIR= miwi
|
2005-05-31 16:01:12 +02:00
|
|
|
DISTNAME= src-${PORTNAME}-${PORTVERSION}
|
2004-11-05 00:39:51 +01:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2013-01-09 20:50:06 +01:00
|
|
|
MAINTAINER= jmohacsi@bsd.hu
|
2004-11-05 00:39:51 +01:00
|
|
|
COMMENT= An IP network performance tests and measurements
|
|
|
|
|
2005-06-01 13:03:05 +02:00
|
|
|
# Dumps core on 64-bit architectures. This was reported to the upstream
|
|
|
|
# author, who promised to fix it in one of the next releases.
|
|
|
|
ONLY_FOR_ARCHS= i386
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
|
2004-11-05 00:39:51 +01:00
|
|
|
USE_GMAKE= yes
|
|
|
|
|
|
|
|
PLIST_FILES= bin/mgen
|
|
|
|
PORTDOCS= README.TXT VERSION.TXT mgen.html example.mgn
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/unix/Makefile.common \
|
|
|
|
${WRKSRC}/protolib/unix/Makefile.common
|
|
|
|
|
2005-05-31 16:01:12 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|%%PTHREAD_CFLAGS%%|${PTHREAD_CFLAGS}|g' ${WRKSRC}/unix/Makefile.freebsd \
|
|
|
|
${WRKSRC}/protolib/unix/Makefile.freebsd
|
|
|
|
|
2004-11-05 00:39:51 +01:00
|
|
|
do-build:
|
|
|
|
cd ${WRKSRC}/unix && ${GMAKE} -f Makefile.freebsd ${PORTNAME}
|
|
|
|
|
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKSRC}/unix/mgen ${PREFIX}/bin
|
|
|
|
.ifndef(NOPORTDOCS)
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
.for FILE in ${PORTDOCS}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
|
|
|
|
.endfor
|
|
|
|
.endif
|
|
|
|
|
2009-05-08 23:50:30 +02:00
|
|
|
.include <bsd.port.mk>
|