1 # Created by: Eric Anholt <anholt@FreeBSD.org>
2 # $FreeBSD: graphics/mesa-demos/Makefile 319055 2013-05-25 14:37:02Z 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
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}
22 DATADIR= ${PREFIX}/share/${PKGNAMEPREFIX}${PORTNAME}
24 OPTIONS_DEFINE= NVIDIA
25 NVIDIA_DESC= Use NVIDIA's libraries
28 @${REINPLACE_CMD} -e 's|-ffast-math|${FAST_MATH}|' -e 's|x86_64|amd64|' \
31 .include <bsd.port.options.mk>
33 .if ${PORT_OPTIONS:MNVIDIA}
34 CFLAGS+= -DWITH_NVIDIA_GL=1
37 .include <bsd.port.mk>