1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-11 02:50:24 +00:00
freebsd-ports/benchmarks/netio/Makefile
Mathieu Arnold 7ae7b018cc With the power of USES=dos2unix, get rid of most patches and files
with CRLF.

While there, run make makepatch, rename patches to use the new scheme,
and various fixes.

With hat:	portmgr
Sponsored by:	Absolight
2016-06-20 16:23:28 +00:00

38 lines
804 B
Makefile

# Created by: arved
# $FreeBSD$
PORTNAME= netio
PORTVERSION= 1.32
CATEGORIES= benchmarks net ipv6
MASTER_SITES= LOCAL/arved
DISTNAME= netio132
MAINTAINER= arved@FreeBSD.org
COMMENT= Network benchmark
WRKSRC= ${WRKDIR}
USES= dos2unix gmake zip
DOS2UNIX_FILES= Makefile netio.c
PLIST_FILES= bin/netio
CFLAGS+= -DUNIX -DSOCKLEN_T
LIBS+= -pthread
MAKE_ENV+= OUT=-o
OPTIONS_DEFINE= IPV6
IPV6_PLIST_FILES= bin/netio6
do-build:
@(cd ${WRKSRC} && \
${SETENV} ${MAKE_ENV} O=.o CFLAGS="${CFLAGS}" ${MAKE_CMD} all)
do-build-IPV6-on:
@(cd ${WRKSRC} && \
${MAKE_ENV} O=.6o X=6 CFLAGS="${CFLAGS} -DUSE_IPV6" ${MAKE_CMD} all)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/netio ${STAGEDIR}${PREFIX}/bin
do-install-IPV6-on:
${INSTALL_PROGRAM} ${WRKSRC}/netio6 ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>