mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
9746d6524b
graphics/zbar didn't pass check-plist (pre-existing), fixed. approved by: PTHREAD blanket
40 lines
1002 B
Makefile
40 lines
1002 B
Makefile
# Created by: Eric Anholt <anholt@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= mesa-demos
|
|
PORTVERSION= 8.1.0
|
|
PORTREVISION= 2
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= ftp://ftp.freedesktop.org/pub/mesa/demos/${PORTVERSION}/
|
|
DISTFILES= mesa-demos-${PORTVERSION}${EXTRACT_SUFX}
|
|
|
|
MAINTAINER= x11@FreeBSD.org
|
|
COMMENT= OpenGL demos distributed with Mesa
|
|
|
|
USES= gmake pkgconfig tar:bzip2
|
|
GNU_CONFIGURE= yes
|
|
USE_GL= glu glut glew
|
|
USE_XORG= glproto x11 xext xi xxf86vm xdamage xfixes dri2proto
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -lpthread -L${LOCALBASE}/lib
|
|
|
|
CONFIGURE_ARGS+=--disable-egl --disable-gles2 --disable-wayland \
|
|
--disable-gbm --disable-vg --disable-osmesa
|
|
|
|
DATADIR= ${PREFIX}/share/${PKGNAMEPREFIX}${PORTNAME}
|
|
|
|
OPTIONS_DEFINE= NVIDIA
|
|
NVIDIA_DESC= Use NVIDIA's libraries
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|-ffast-math|${FAST_MATH}|' -e 's|x86_64|amd64|' \
|
|
${WRKSRC}/configure
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MNVIDIA}
|
|
CFLAGS+= -DWITH_NVIDIA_GL=1
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|