1 # Created by: Eric Anholt <anholt@FreeBSD.org>
8 MASTER_SITES= ftp://ftp.freedesktop.org/pub/mesa/demos/${PORTVERSION}/
9 DISTFILES= mesa-demos-${PORTVERSION}${EXTRACT_SUFX}
11 MAINTAINER= x11@FreeBSD.org
12 COMMENT= OpenGL demos distributed with Mesa
14 USES= gmake pkgconfig tar:bzip2
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 CONFIGURE_ARGS+=--disable-egl --disable-gles2 --disable-wayland \
22 --disable-gbm --disable-vg --disable-osmesa
24 DATADIR= ${PREFIX}/share/${PKGNAMEPREFIX}${PORTNAME}
26 OPTIONS_DEFINE= NVIDIA
27 NVIDIA_DESC= Use NVIDIA's libraries
30 @${REINPLACE_CMD} -e 's|-ffast-math|${FAST_MATH}|' -e 's|x86_64|amd64|' \
33 .include <bsd.port.options.mk>
35 .if ${PORT_OPTIONS:MNVIDIA}
36 CFLAGS+= -DWITH_NVIDIA_GL=1
39 .include <bsd.port.mk>