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 336621 2013-12-16 11:11:09Z 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 USES=           gmake pkgconfig
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 DATADIR=        ${PREFIX}/share/${PKGNAMEPREFIX}${PORTNAME}
22
23 OPTIONS_DEFINE= NVIDIA
24 NVIDIA_DESC=    Use NVIDIA's libraries
25
26 post-patch:
27         @${REINPLACE_CMD} -e 's|-ffast-math|${FAST_MATH}|' -e 's|x86_64|amd64|' \
28                 ${WRKSRC}/configure
29
30 .include <bsd.port.options.mk>
31
32 .if ${PORT_OPTIONS:MNVIDIA}
33 CFLAGS+=        -DWITH_NVIDIA_GL=1
34 .endif
35
36 .include <bsd.port.mk>