Tweak graphics/mesa-demos version 8.1.0
[dports.git] / graphics / mesa-demos / Makefile
1 # Created by: Eric Anholt <anholt@FreeBSD.org>
2 # $FreeBSD: graphics/mesa-demos/Makefile 319055 2013-05-25 14:37:02Z zeising $
3
4 PORTNAME=       mesa-demos
5 PORTVERSION=    8.1.0
6 CATEGORIES=     graphics
7 MASTER_SITES=   ftp://ftp.freedesktop.org/pub/mesa/demos/${PORTVERSION}/
8 DISTFILES=      mesa-demos-${PORTVERSION}${EXTRACT_SUFX}
9
10 MAINTAINER=     x11@FreeBSD.org
11 COMMENT=        OpenGL demos distributed with Mesa
12
13 USE_BZIP2=      yes
14 USE_GMAKE=      yes
15 GNU_CONFIGURE=  yes
16 MAKE_JOBS_SAFE= 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 DATADIR=        ${PREFIX}/share/${PKGNAMEPREFIX}${PORTNAME}
23
24 OPTIONS_DEFINE= NVIDIA
25 NVIDIA_DESC=    Use NVIDIA's libraries
26
27 post-patch:
28         @${REINPLACE_CMD} -e 's|-ffast-math|${FAST_MATH}|' -e 's|x86_64|amd64|' \
29                 ${WRKSRC}/configure
30
31 .include <bsd.port.options.mk>
32
33 .if ${PORT_OPTIONS:MNVIDIA}
34 CFLAGS+=        -DWITH_NVIDIA_GL=1
35 .endif
36
37 .include <bsd.port.mk>