# New ports collection makefile for:    dri
# Date created:		8 Nov 2003
# Whom:			anholt@FreeBSD.org
#
# $FreeBSD: ports/graphics/dri/Makefile,v 1.35 2010/03/25 23:11:21 marius Exp $
#

PORTNAME=	dri
PORTVERSION=	${MESAVERSION}
PORTEPOCH=	2
CATEGORIES=	graphics

COMMENT=	OpenGL hardware acceleration drivers for the DRI

LIB_DEPENDS=	drm:${PORTSDIR}/graphics/libdrm \
		expat.6:${PORTSDIR}/textproc/expat2
BUILD_DEPENDS=	makedepend:${PORTSDIR}/devel/makedepend

CONFLICTS=	dri-6.2.2005* dri-6.5.2006*
MAKE_JOBS_UNSAFE=	yes

USE_XORG=	glproto x11 xext xxf86vm xdamage xfixes dri2proto

.ifndef WITHOUT_NOUVEAU
EXTRA_PATCHES+=	${FILESDIR}/mesalib74-configure
.endif

do-install:
	cd ${WRKSRC}/src/mesa; ${GMAKE} install-dri

.include "${.CURDIR}/../../graphics/libGL/bsd.mesalib.mk"

.include <bsd.port.pre.mk>

.if ${ARCH} == "ia64"
BROKEN=		Does not install on ia64
.endif

.include <bsd.port.post.mk>
