mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
a84c115a09
Approved by: portmgr (not really, but touches unstaged ports)
46 lines
1.2 KiB
Makefile
46 lines
1.2 KiB
Makefile
# Created by: janos.mohacsi@bsd.hu
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= mgen
|
|
PORTVERSION= 4.2b6
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://downloads.pf.itd.nrl.navy.mil/mgen/mgen4/ \
|
|
${MASTER_SITE_LOCAL}
|
|
MASTER_SITE_SUBDIR= miwi
|
|
DISTNAME= src-${PORTNAME}-${PORTVERSION}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= IP network performance tests and measurements
|
|
|
|
# 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}
|
|
|
|
USES= gmake tar:tgz
|
|
|
|
PLIST_FILES= bin/mgen
|
|
PORTDOCS= README.TXT VERSION.TXT mgen.html example.mgn
|
|
|
|
NO_STAGE= yes
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|g' ${WRKSRC}/unix/Makefile.common \
|
|
${WRKSRC}/protolib/unix/Makefile.common
|
|
|
|
@${REINPLACE_CMD} -e 's|%%PTHREAD_CFLAGS%%|${PTHREAD_CFLAGS}|g' ${WRKSRC}/unix/Makefile.freebsd \
|
|
${WRKSRC}/protolib/unix/Makefile.freebsd
|
|
|
|
do-build:
|
|
cd ${WRKSRC}/unix && ${MAKE_CMD} -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
|
|
|
|
.include <bsd.port.mk>
|