summaryrefslogtreecommitdiff
path: root/x11/xorg-server/options.mk
diff options
context:
space:
mode:
authorhira <hira@pkgsrc.org>2005-01-24 10:57:27 +0000
committerhira <hira@pkgsrc.org>2005-01-24 10:57:27 +0000
commit9c63e2c9989c4d16635516b81cc3774f6db68052 (patch)
treeef596ea8d88a24dce22dd5d66020bef23e1d51c0 /x11/xorg-server/options.mk
parenta4c741f41de66db6623529fb21889f573d4c8038 (diff)
downloadpkgsrc-9c63e2c9989c4d16635516b81cc3774f6db68052.tar.gz
Make drivers selectable with options.mk. By default, all of the drivers
which are supported by the platform are built. OK'd by xtraeme@.
Diffstat (limited to 'x11/xorg-server/options.mk')
-rw-r--r--x11/xorg-server/options.mk26
1 files changed, 26 insertions, 0 deletions
diff --git a/x11/xorg-server/options.mk b/x11/xorg-server/options.mk
new file mode 100644
index 00000000000..3b22bdc3175
--- /dev/null
+++ b/x11/xorg-server/options.mk
@@ -0,0 +1,26 @@
+# $NetBSD: options.mk,v 1.1 2005/01/24 10:57:27 hira Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.xorg-server
+PKG_SUPPORTED_OPTIONS!= ${X11BASE}/bin/imake -I${X11BASE}/lib/X11/config \
+ -f ${FILESDIR}/Imakefile.drivers -s - | \
+ ${EGREP} "^CARDDRIVERS=" | \
+ ${AWK} '{$$1=""; print $$0}'
+PKG_DEFAULT_OPTIONS= ${PKG_SUPPORTED_OPTIONS}
+.include "../../mk/bsd.options.mk"
+
+ALLCARDDRIVERS= apm ark ati chips cirrus cyrix dummy fbdev glint i128 \
+ i740 i810 imstt mga neomagic newport nsc nv rendition \
+ rendition s3 s3virge savage siliconmotion sis tdfx tga \
+ trident tseng v4l vesa vga via vmware
+
+.for _drv in ${PKG_OPTIONS}
+PLIST_SUBST+= CARDDRIVER.${_drv}=
+.endfor
+
+.for _drv in ${ALLCARDDRIVERS}
+. if empty(PLIST_SUBST:MCARDDRIVER\.${_drv}=)
+PLIST_SUBST+= CARDDRIVER.${_drv}="@comment "
+. endif
+.endfor
+
+CARDDRIVERS= ${PKG_OPTIONS}