Tweak graphics/mesa-demos 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 USES=           gmake pkgconfig tar:bzip2
15 GNU_CONFIGURE=  yes
16 USE_GL=         glu glut glew
17 USE_XORG=       glproto x11 xext xi xxf86vm xdamage xfixes dri2proto
18 CPPFLAGS+=      -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
19 LDFLAGS+=       -L${LOCALBASE}/lib ${PTHREAD_LIBS}
20
21 CONFIGURE_ARGS+=--disable-egl --disable-gles2 --disable-wayland \
22                 --disable-gbm --disable-vg --disable-osmesa
23
24 DATADIR=        ${PREFIX}/share/${PKGNAMEPREFIX}${PORTNAME}
25
26 OPTIONS_DEFINE= NVIDIA
27 NVIDIA_DESC=    Use NVIDIA's libraries
28
29 post-patch:
30         @${REINPLACE_CMD} -e 's|-ffast-math|${FAST_MATH}|' -e 's|x86_64|amd64|' \
31                 ${WRKSRC}/configure
32
33 .include <bsd.port.options.mk>
34
35 .if ${PORT_OPTIONS:MNVIDIA}
36 CFLAGS+=        -DWITH_NVIDIA_GL=1
37 .endif
38
39 .include <bsd.port.mk>