# New ports collection makefile for:	kbilliards
# Date created:				15 May 2003
# Whom:					Kirill Ponomarew <ponomarew@oberon.net>
#
# $FreeBSD: ports/games/kbilliards/Makefile,v 1.25 2009/08/02 19:33:51 mezz Exp $

PORTNAME=	kbilliards
PORTVERSION=	0.8.7b
PORTREVISION=	3
CATEGORIES=	games kde
MASTER_SITES=	http://www.hostnotfound.it/kbilliards/ \
		${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR=	arved

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

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

USE_BZIP2=	yes
USE_GETTEXT=	yes
USE_KDELIBS_VER=3
USE_PERL5_BUILD=yes
USE_GMAKE=	yes
USE_AUTOTOOLS=	libtool:22

CFLAGS+=	-Dsqrtl=sqrt

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 800024
BROKEN=		does not compile
.endif

pre-configure:
	@cd ${WRKSRC} && ${PERL} admin/am_edit

.include <bsd.port.post.mk>
