1 # Created by: Eric Anholt <anholt@FreeBSD.org>
2 # $FreeBSD: graphics/mesa-demos/Makefile 336621 2013-12-16 11:11:09Z zeising $
7 MASTER_SITES= ftp://ftp.freedesktop.org/pub/mesa/demos/${PORTVERSION}/
8 DISTFILES= mesa-demos-${PORTVERSION}${EXTRACT_SUFX}
10 MAINTAINER= x11@FreeBSD.org
11 COMMENT= OpenGL demos distributed with Mesa
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}
21 DATADIR= ${PREFIX}/share/${PKGNAMEPREFIX}${PORTNAME}
23 OPTIONS_DEFINE= NVIDIA
24 NVIDIA_DESC= Use NVIDIA's libraries
27 @${REINPLACE_CMD} -e 's|-ffast-math|${FAST_MATH}|' -e 's|x86_64|amd64|' \
30 .include <bsd.port.options.mk>
32 .if ${PORT_OPTIONS:MNVIDIA}
33 CFLAGS+= -DWITH_NVIDIA_GL=1
36 .include <bsd.port.mk>