pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/xorg-server Don't use imake to get the supported d...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/136abc19d0d4
branches:  trunk
changeset: 488067:136abc19d0d4
user:      hira <hira%pkgsrc.org@localhost>
date:      Mon Jan 24 17:24:08 2005 +0000

description:
Don't use imake to get the supported drivers.  It does not work
before installing imake.

diffstat:

 x11/xorg-server/Makefile   |   3 +--
 x11/xorg-server/options.mk |  34 +++++++++++++++++++++++-----------
 2 files changed, 24 insertions(+), 13 deletions(-)

diffs (67 lines):

diff -r 9111cbacff71 -r 136abc19d0d4 x11/xorg-server/Makefile
--- a/x11/xorg-server/Makefile  Mon Jan 24 17:20:43 2005 +0000
+++ b/x11/xorg-server/Makefile  Mon Jan 24 17:24:08 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.14 2005/01/24 10:57:27 hira Exp $
+# $NetBSD: Makefile,v 1.15 2005/01/24 17:24:08 hira Exp $
 
 DISTNAME=              ${DISTFILES}
 PKGNAME=               xorg-server-${XORG_VER}
@@ -49,7 +49,6 @@
 USE_PERL5=     build # Yeah, we need this :-)
 .endif
 
-BUILDLINK_FILES.xorg-libs+=    ${X11ROOT_PREFIX}/lib/X11/config/*
 .include "options.mk"
 
 post-install:
diff -r 9111cbacff71 -r 136abc19d0d4 x11/xorg-server/options.mk
--- a/x11/xorg-server/options.mk        Mon Jan 24 17:20:43 2005 +0000
+++ b/x11/xorg-server/options.mk        Mon Jan 24 17:24:08 2005 +0000
@@ -1,23 +1,35 @@
-# $NetBSD: options.mk,v 1.1 2005/01/24 10:57:27 hira Exp $
+# $NetBSD: options.mk,v 1.2 2005/01/24 17:24:08 hira Exp $
+
+_COMMONCARDDRIVERS=    apm ark ati chips cirrus cyrix dummy glint i128 mga \
+                       neomagic nv rendition s3 s3virge savage siliconmotion \
+                       sis tdfx tga trident tseng vesa vga
+_NOTX86_64CARDDRIVERS= i740 i810 imstt newport nsc via vmware
+_LINUXCARDDRIVERS=     fbdev v4l
+
+_ALLCARDDRIVERS=       ${_COMMONCARDDRIVERS} ${_NOTX86_64CARDDRIVERS} \
+                       ${_LINUXCARDDRIVERS} 
+
+_OSCARDDRIVERS=                # defined
+
+# Not tested with the other x86_64 platforms.
+.if empty(MACHINE_PLATFORM:MNetBSD-*-x86_64)
+_OSCARDDRIVERS+=       ${_NOTX86_64CARDDRIVERS}
+.endif
+
+.if ${OPSYS} == "Linux"
+_OSCARDDRIVERS+=       ${_LINUXCARDDRIVERS}
+.endif
 
 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_SUPPORTED_OPTIONS= ${_COMMONCARDDRIVERS} ${_OSCARDDRIVERS}
 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}
+.for _drv in ${_ALLCARDDRIVERS}
 .  if empty(PLIST_SUBST:MCARDDRIVER\.${_drv}=)
 PLIST_SUBST+=          CARDDRIVER.${_drv}="@comment "
 .  endif



Home | Main Index | Thread Index | Old Index