aboutsummaryrefslogtreecommitdiff
path: root/graphics/mesa-demos
diff options
context:
space:
mode:
authorKoop Mast <kwm@FreeBSD.org>2013-01-05 22:57:40 +0000
committerKoop Mast <kwm@FreeBSD.org>2013-01-05 22:57:40 +0000
commitc3c2e7cbffdd95c50e4e51af6ed725f080579b27 (patch)
tree4a30b690095b7c3b36754f571aeca80a710febd6 /graphics/mesa-demos
parentb3b45538b98420f9d8207e45ca713cd7aafafc23 (diff)
downloadports-c3c2e7cbffdd95c50e4e51af6ed725f080579b27.tar.gz
ports-c3c2e7cbffdd95c50e4e51af6ed725f080579b27.zip
Notes
Diffstat (limited to 'graphics/mesa-demos')
-rw-r--r--graphics/mesa-demos/Makefile20
1 files changed, 10 insertions, 10 deletions
diff --git a/graphics/mesa-demos/Makefile b/graphics/mesa-demos/Makefile
index 8c4ce1b134f1..2991acebecea 100644
--- a/graphics/mesa-demos/Makefile
+++ b/graphics/mesa-demos/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: mesa-demos
-# Date created: 7 Nov 2003
-# Whom: anholt@FreeBSD.org
-#
+# Created by: anholt@FreeBSD.org
# $FreeBSD$
-#
PORTNAME= mesa-demos
PORTVERSION= 7.6.1
@@ -33,12 +29,16 @@ WRKSRC= ${WRKDIR}/Mesa-${PORTVERSION}/
DATADIR= ${PREFIX}/share/${PKGNAMEPREFIX}${PORTNAME}
-OPTIONS= NVIDIA_GL "Use NVIDIA's libraries" off
+OPTIONS_DEFINE= NVIDIA_GL XCB
+NVIDIA_DESC= Use NVIDIA's libraries
+XCB_DESC= Use XCB for GLX
-.if defined(WITHOUT_XCB)
-CONFIGURE_ARGS+= --disable-xcb
-.else
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MXCB}
CONFIGURE_ARGS+= --enable-xcb
+.else
+CONFIGURE_ARGS+= --disable-xcb
.endif
post-patch:
@@ -77,7 +77,7 @@ do-install:
.include <bsd.port.pre.mk>
-.if defined(WITH_NVIDIA_GL)
+.if ${PORT_OPTIONS:MNVIDIA_GL}
CFLAGS+= -DWITH_NVIDIA_GL=1
.endif