# New ports collection makefile for:	sysutils/xdd
# Date created:				29.05.2006
# Whom:					Gerhard Gonter <g.gonter@ieee.org>
#
# $FreeBSD: ports/sysutils/xdd/Makefile,v 1.1 2006/07/26 15:33:21 garga Exp $
#

PORTNAME=	xdd
PORTVERSION=	64
CATEGORIES=	sysutils
MASTER_SITES=	http://www.ioperformance.com/xddversions/
DISTNAME=	xdd64.121805

MAINTAINER=	g.gonter@ieee.org
COMMENT=	Tool for measuring and characterizing disk subsystem I/O

WRKSRC=		${WRKDIR}/${PORTNAME}${PORTVERSION}
PLIST_FILES=	bin/xdd bin/timeserver bin/gettime

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 500000
BROKEN=	Doesn't build on 4.x
.endif

post-extract:
	${CP} ${FILESDIR}/freebsd.makefile ${WRKSRC}

do-build:
	@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} -f freebsd.makefile

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/bin/xdd.freebsd ${PREFIX}/bin/xdd
	${INSTALL_PROGRAM} ${WRKSRC}/bin/timeserver.freebsd ${PREFIX}/bin/timeserver
	${INSTALL_PROGRAM} ${WRKSRC}/bin/gettime.freebsd ${PREFIX}/bin/gettime

.include <bsd.port.post.mk>
