# New ports collection makefile for:	kbilliards
# Date created:				15 May 2003
# Whom:					Kirill Ponomarew <ponomarew@oberon.net>
#
# $FreeBSD: ports/games/kbilliards/Makefile,v 1.12 2005/07/08 20:06:47 lofi Exp $

PORTNAME=	kbilliards
PORTVERSION=	0.8.5
CATEGORIES=	games kde
MASTER_SITES=	http://www.hostnotfound.it/kbilliards/

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Funny billiards simulator game for KDE

EXTRA_PATCHES=	${.CURDIR}/../../x11/kde3/files/extrapatch-old_configure

USE_BZIP2=	yes
USE_REINPLACE=	yes
USE_KDELIBS_VER=	3
USE_GMAKE=	yes
GNU_CONFIGURE=	yes

CFLAGS+=	-Dsqrtl=sqrt

.include <bsd.port.pre.mk>

.if ${OSVERSION} < 502114
CFLAGS+=	-Dround=rint
.endif

.include <bsd.port.post.mk>
