aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks/netio/Makefile
blob: 0b91f4430c1f52ac20a727da71599a36c547565b (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
# Created by: arved
# $FreeBSD$

PORTNAME=   netio
PORTVERSION=    1.26
CATEGORIES= benchmarks net ipv6
MASTER_SITES=   ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= arved
DISTNAME=   netio126

MAINTAINER= arved@FreeBSD.org
COMMENT=    Network benchmark

WRKSRC=     ${WRKDIR}
USE_ZIP=    yes
USES=       gmake
PLIST_FILES=    bin/netio

CFLAGS+=    -DUNIX ${PTHREAD_CFLAGS}
MAKE_ENV+=  OUT="-o" LIBS=${PTHREAD_LIBS}
.if defined(WITH_IPV6)
PLIST_FILES+=   bin/netio6
.endif

do-build:
    cd ${WRKSRC}; \
    ${SETENV} ${MAKE_ENV} O=.o CFLAGS="${CFLAGS}" ${GMAKE} all
.if defined(WITH_IPV6)
    cd ${WRKSRC}; \
    ${MAKE_ENV} O=.6o X=6 CFLAGS="${CFLAGS} -DUSE_IPV6" ${GMAKE} all
.endif

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/netio ${STAGEDIR}${PREFIX}/bin
.if defined(WITH_IPV6)
    ${INSTALL_PROGRAM} ${WRKSRC}/netio6 ${STAGEDIR}${PREFIX}/bin
.endif

.include <bsd.port.mk>