# New ports collection makefile for: typespeed
# Date created:        06 September 2003
# Whom:                refugee
#
# $FreeBSD: ports/games/typespeed/Makefile,v 1.8 2006/02/19 11:39:08 ehaupt Exp $
#

PORTNAME=	typespeed
PORTVERSION=	0.4.4
CATEGORIES=	games
MASTER_SITES=	http://ls.purkki.org/typespeed/
DISTNAME=	typespeed-${PORTVERSION}

MAINTAINER=	ehaupt@FreeBSD.org
COMMENT=	Test your typing speed, and get your fingers\' CPS

MAN1=		typespeed.1

USE_GETOPT_LONG=	yes

MAKE_ENV=	CPPFLAGS="${CPPFLAGS}" LFLAGS="${LDFLAGS}"

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 700000
BROKEN=		"Coredumps on FreeBSD >= 7.0"
.endif

post-patch:
	@${REINPLACE_CMD} -e 's|\(/etc\)|${PREFIX}\1|' \
		${WRKSRC}/typespeed.h

post-install:
	@PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL

.include <bsd.port.post.mk>
