# New ports collection makefile for:	libosmesa
# Date created:				9 April 2010
# Whom:					gahr
#
# $FreeBSD: ports/graphics/libosmesa/Makefile,v 1.17 2012/03/05 11:02:55 gahr Exp $
#

PORTNAME=	libosmesa
PORTVERSION=	8.0.1
PORTREVISION=	1
CATEGORIES=	graphics
MASTER_SITES=	ftp://ftp.freedesktop.org/pub/mesa/${PORTVERSION}/
DISTNAME=	MesaLib-${PORTVERSION}

MAINTAINER=	gahr@FreeBSD.org
COMMENT=	Off-Screen Mesa implementation of the OpenGL API

LIB_DEPENDS=	expat.6:${PORTSDIR}/textproc/expat2 \
    		talloc.2:${PORTSDIR}/devel/talloc
BUILD_DEPENDS=	makedepend:${PORTSDIR}/devel/makedepend \
		bison:${PORTSDIR}/devel/bison \
		${PYTHON_SITELIBDIR}/libxml2mod.so:${PORTSDIR}/textproc/py-libxml2

CONFLICTS=	mesagl-mangled-*

USE_BZIP2=	yes
USE_GCC=	4.2+
USE_LDCONFIG=	yes
USE_GMAKE=	yes
USE_GNOME=	pkgconfig gnomehack
USE_PYTHON=	yes
GNU_CONFIGURE=	yes
CONFIGURE_ARGS+=--with-driver=osmesa --with-osmesa-bits=32 \
		--with-gallium-drivers= --disable-asm \
		--disable-egl \
		--includedir=${PREFIX}/include/Mesa
CFLAGS+=	-I${LOCALBASE}/include -fPIC
CPPFLAGS=	${CFLAGS}

WRKSRC=		${WRKDIR}/Mesa-${PORTVERSION}

.include <bsd.port.mk>
