Update graphics/mesa-demos to version 8.1.0_1
[dports.git] / graphics / mesa-demos / Makefile
1 # Created by: Eric Anholt <anholt@FreeBSD.org>
2 # $FreeBSD$
3
4 PORTNAME=       mesa-demos
5 PORTVERSION=    8.1.0
6 PORTREVISION=   1
7 CATEGORIES=     graphics
8 MASTER_SITES=   ftp://ftp.freedesktop.org/pub/mesa/demos/${PORTVERSION}/
9 DISTFILES=      mesa-demos-${PORTVERSION}${EXTRACT_SUFX}
10
11 MAINTAINER=     x11@FreeBSD.org
12 COMMENT=        OpenGL demos distributed with Mesa
13
14 USE_BZIP2=      yes
15 USES=           gmake pkgconfig
16 GNU_CONFIGURE=  yes
17 USE_GL=         glu glut glew
18 USE_XORG=       glproto x11 xext xi xxf86vm xdamage xfixes dri2proto
19 CPPFLAGS+=      -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
20 LDFLAGS+=       -L${LOCALBASE}/lib ${PTHREAD_LIBS}
21
22 CONFIGURE_ARGS+=--disable-egl --disable-gles2 --disable-wayland \
23                 --disable-gbm --disable-vg --disable-osmesa
24
25 DATADIR=        ${PREFIX}/share/${PKGNAMEPREFIX}${PORTNAME}
26
27 OPTIONS_DEFINE= NVIDIA
28 NVIDIA_DESC=    Use NVIDIA's libraries
29
30 post-patch:
31         @${REINPLACE_CMD} -e 's|-ffast-math|${FAST_MATH}|' -e 's|x86_64|amd64|' \
32                 ${WRKSRC}/configure
33
34 .include <bsd.port.options.mk>
35
36 .if ${PORT_OPTIONS:MNVIDIA}
37 CFLAGS+=        -DWITH_NVIDIA_GL=1
38 .endif
39
40 .include <bsd.port.mk>