summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzeising <zeising@058c260c-8361-11dd-a0ac-aa2bafec7d09>2012-06-30 20:57:53 +0800
committerzeising <zeising@058c260c-8361-11dd-a0ac-aa2bafec7d09>2012-06-30 20:57:53 +0800
commit62244c24bf7dacad96398c38c3c3870804153a7b (patch)
tree9fce6f6f58609f157cf793ec38a326122ec816be
parent4dbf11b4b568808ca71207c30963e1db216050d0 (diff)
downloadxorg-devel-ports-62244c24bf7dacad96398c38c3c3870804153a7b.tar.gz
xorg-devel-ports-62244c24bf7dacad96398c38c3c3870804153a7b.tar.zst
xorg-devel-ports-62244c24bf7dacad96398c38c3c3870804153a7b.zip
Convert to options-ng.
git-svn-id: https://trillian.chruetertee.ch/svn/ports/trunk@528 058c260c-8361-11dd-a0ac-aa2bafec7d09
-rw-r--r--graphics/libdrm/Makefile6
-rw-r--r--graphics/mesa-demos/Makefile5
-rw-r--r--x11/pixman/Makefile4
-rw-r--r--x11/xdm/Makefile5
4 files changed, 12 insertions, 8 deletions
diff --git a/graphics/libdrm/Makefile b/graphics/libdrm/Makefile
index 8a9e1f6..a53d11c 100644
--- a/graphics/libdrm/Makefile
+++ b/graphics/libdrm/Makefile
@@ -25,11 +25,13 @@ MAKE_JOBS_SAFE= yes
.if defined(WITH_NEW_XORG)
-OPTIONS= KMS "Enable KMS support" off
+OPTIONS_DEFINE= KMS
+KMS_DESC= Enable KMS support
+OPTIONS_DEFAULT=KMS
.include <bsd.port.options.mk>
-.if defined(WITH_KMS)
+.if ${PORT_OPTIONS:MKMS}
CONFIGURE_ARGS+=--enable-libkms
EXTRA_PATCHES+= ${FILESDIR}/extra-xf86drmMode.c
PLIST_SUB+= KMS=""
diff --git a/graphics/mesa-demos/Makefile b/graphics/mesa-demos/Makefile
index a60a007..0e28361 100644
--- a/graphics/mesa-demos/Makefile
+++ b/graphics/mesa-demos/Makefile
@@ -25,7 +25,8 @@ LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
DATADIR= ${PREFIX}/share/${PKGNAMEPREFIX}${PORTNAME}
-OPTIONS= NVIDIA_GL "Use NVIDIA's libraries" off
+OPTIONS_DEFINE= NVIDIA
+NVIDIA_DESC= Use NVIDIA's libraries
post-patch:
@${REINPLACE_CMD} -e 's|-ffast-math|${FAST_MATH}|' -e 's|x86_64|amd64|' \
@@ -51,7 +52,7 @@ post-install:
.include <bsd.port.pre.mk>
-.if defined(WITH_NVIDIA_GL)
+.if ${PORT_OPTIONS:MNVIDIA}
CFLAGS+= -DWITH_NVIDIA_GL=1
.endif
diff --git a/x11/pixman/Makefile b/x11/pixman/Makefile
index 751d86c..be000bd 100644
--- a/x11/pixman/Makefile
+++ b/x11/pixman/Makefile
@@ -18,11 +18,11 @@ USE_PERL5_BUILD=yes
USE_GNOME= ltverhack:9
CONFIGURE_ARGS= --disable-gtk
-OPTIONS= SIMD "Enable SIMD features autodetection (MMX, SSE2, VMX)" off
+OPTIONS_DEFINE= SIMD
.include <bsd.port.pre.mk>
-.if defined(WITHOUT_SIMD)
+.if empty(${PORT_OPTIONS:MSIMD})
CONFIGURE_ARGS= --disable-vmx --disable-arm-simd
. if ! ${MACHINE_CPU:Mmmx}
CONFIGURE_ARGS+= --disable-mmx
diff --git a/x11/xdm/Makefile b/x11/xdm/Makefile
index 51dbe09..36a4c5a 100644
--- a/x11/xdm/Makefile
+++ b/x11/xdm/Makefile
@@ -24,11 +24,12 @@ MAN1= xdm.1
CFFILES= GiveConsole TakeConsole Xaccess Xreset Xresources \
Xservers Xsession Xsetup_0 Xstartup Xwilling xdm-config
-OPTIONS= XDMSHELL "Install xdmshell" off
+OPTIONS_DEFINE= XDMSHELL
+XDMSHELL_DESC= Install xdmshell
.include <bsd.port.options.mk>
-.if defined(WITH_XDMSHELL)
+.if ${PORT_OPTIONS:MXDMSHELL}
CONFIGURE_ARGS+=--enable-xdmshell
MAN1+= xdmshell.1
PLIST_SUB+= XDMSHELL=""