aboutsummaryrefslogtreecommitdiff
path: root/benchmarks/netio/Makefile
blob: c51492108aba76f12b1b4e969dee68cd16934ce3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Created by: arved

PORTNAME=	netio
PORTVERSION=	1.33
CATEGORIES=	benchmarks net
MASTER_SITES=	http://www.ars.de/ \
		LOCAL/arved
DISTNAME=	netio133

MAINTAINER=	arved@FreeBSD.org
COMMENT=	Network benchmark

USES=		dos2unix gmake zip

LICENSE=	UNKNOWN
LICENSE_NAME=	unknown
LICENSE_TEXT=	Usage permitted for non-commercial purposes only. Sale for profit is not permitted.
LICENSE_PERMS=	auto-accept

DOS2UNIX_FILES=	Makefile netio.c
NO_WRKSUBDIR=	yes
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>