aboutsummaryrefslogtreecommitdiffstats
path: root/x11-servers/xorg-server
diff options
context:
space:
mode:
authorrnoland <rnoland@FreeBSD.org>2009-04-04 12:04:01 +0800
committerrnoland <rnoland@FreeBSD.org>2009-04-04 12:04:01 +0800
commitfc578e73caf5f1ac4250af6b8ac1e9210c6c13df (patch)
treee9f3d26e5ca4440cbac83710ad40cd0722e073da /x11-servers/xorg-server
parente93d5e002ef7a787a1a667b60145b4753773870f (diff)
downloadfreebsd-ports-gnome-fc578e73caf5f1ac4250af6b8ac1e9210c6c13df.tar.gz
freebsd-ports-gnome-fc578e73caf5f1ac4250af6b8ac1e9210c6c13df.tar.zst
freebsd-ports-gnome-fc578e73caf5f1ac4250af6b8ac1e9210c6c13df.zip
Update Xorg server to 1.6.0
o Update randrproto, libXrandr and xrandr to 1.3.0 o Update xf86-video-intel to 2.6.3 o Update other less common drivers as needed o Mark a bunch of un-maintained input drivers ignored o Update the various slave X server ports as well
Diffstat (limited to 'x11-servers/xorg-server')
-rw-r--r--x11-servers/xorg-server/Makefile13
-rw-r--r--x11-servers/xorg-server/distinfo6
-rw-r--r--x11-servers/xorg-server/files/patch-Xserver-Xext-sync.c90
-rw-r--r--x11-servers/xorg-server/files/patch-Xserver-Xext-xvmc.c14
-rw-r--r--x11-servers/xorg-server/files/patch-Xserver-hw-xfree86-common-compiler.h10
-rw-r--r--x11-servers/xorg-server/files/patch-Xserver-hw-xfree86-os-support-bsd-bsd_mouse.c243
-rw-r--r--x11-servers/xorg-server/files/patch-Xserver-hw-xfree86-os-support-xf86_OSlib.h12
-rw-r--r--x11-servers/xorg-server/files/patch-bsdResource.c32
-rw-r--r--x11-servers/xorg-server/files/patch-config-hal.c143
-rw-r--r--x11-servers/xorg-server/files/patch-configure20
-rw-r--r--x11-servers/xorg-server/pkg-plist55
11 files changed, 44 insertions, 594 deletions
diff --git a/x11-servers/xorg-server/Makefile b/x11-servers/xorg-server/Makefile
index 9b3b390d0d9a..292bf58c383d 100644
--- a/x11-servers/xorg-server/Makefile
+++ b/x11-servers/xorg-server/Makefile
@@ -6,8 +6,8 @@
#
PORTNAME= xorg-server
-PORTVERSION= 1.5.3
-PORTREVISION= 8
+PORTVERSION= 1.6.0
+#PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= x11-servers
MASTER_SITES= http://xorg.freedesktop.org/releases/individual/xserver/
@@ -31,19 +31,18 @@ USE_XORG= xf86driproto glproto xdmcp x11 xkbfile xxf86misc xxf86vm xaw7 \
xf86vidmodeproto xf86bigfontproto scrnsaverproto bigreqsproto \
resourceproto fontsproto inputproto xf86dgaproto \
videoproto compositeproto trapproto recordproto xineramaproto \
- evieproto xfont fontenc xkbui pixman pciaccess
+ xinerama evieproto xfont fontenc xkbui pixman pciaccess
USE_OPENSSL= yes
USE_PERL5_BUILD=yes
-CONFIGURE_ARGS= --disable-dmx --disable-xvfb --disable-xnest --disable-xprint \
+CONFIGURE_ARGS= --disable-dmx --disable-xvfb --disable-xnest \
--localstatedir=/var --without-dtrace --disable-xephyr \
- --enable-record=yes --enable-xtrap=yes
+ --enable-record=yes
MAN1= Xorg.1 \
Xserver.1 \
cvt.1 \
- gtf.1 \
- xorgconfig.1
+ gtf.1
MAN4= exa.4 \
fbdevhw.4
MAN5= xorg.conf.5
diff --git a/x11-servers/xorg-server/distinfo b/x11-servers/xorg-server/distinfo
index 0a7c42acf73d..0455188e73b0 100644
--- a/x11-servers/xorg-server/distinfo
+++ b/x11-servers/xorg-server/distinfo
@@ -1,3 +1,3 @@
-MD5 (xorg/xserver/xorg-server-1.5.3.tar.bz2) = 308971036e25250e7fe3cccfd5a120f8
-SHA256 (xorg/xserver/xorg-server-1.5.3.tar.bz2) = a680174f54be7763819e5275c5d5d44fc9e9b6f8e9351dd45c150eb4c182d5bb
-SIZE (xorg/xserver/xorg-server-1.5.3.tar.bz2) = 5622625
+MD5 (xorg/xserver/xorg-server-1.6.0.tar.bz2) = aafe73f5807ce8bb534727ecb72467c7
+SHA256 (xorg/xserver/xorg-server-1.6.0.tar.bz2) = 81a9a02b621e8a3e0bae1ad1b5dd6706a3fdcdbe766d75e1670ab5b3f0d32812
+SIZE (xorg/xserver/xorg-server-1.6.0.tar.bz2) = 4655422
diff --git a/x11-servers/xorg-server/files/patch-Xserver-Xext-sync.c b/x11-servers/xorg-server/files/patch-Xserver-Xext-sync.c
deleted file mode 100644
index 24dd5fdb75fd..000000000000
--- a/x11-servers/xorg-server/files/patch-Xserver-Xext-sync.c
+++ /dev/null
@@ -1,90 +0,0 @@
---- Xext/sync.c.orig 2008-11-05 10:52:17.000000000 -0600
-+++ Xext/sync.c 2009-03-08 17:04:38.000000000 -0500
-@@ -2533,7 +2533,7 @@
- * IDLETIME implementation
- */
-
--static pointer IdleTimeCounter;
-+static SyncCounter *IdleTimeCounter;
- static XSyncValue *pIdleTimeValueLess;
- static XSyncValue *pIdleTimeValueGreater;
-
-@@ -2545,38 +2545,69 @@
- }
-
- static void
--IdleTimeBlockHandler (pointer env,
-- struct timeval **wt,
-- pointer LastSelectMask)
-+IdleTimeBlockHandler(pointer env, struct timeval **wt, pointer LastSelectMask)
- {
-- XSyncValue idle;
-+ XSyncValue idle, old_idle;
-+ SyncTriggerList *list = IdleTimeCounter->pTriglist;
-+ SyncTrigger *trig;
-
- if (!pIdleTimeValueLess && !pIdleTimeValueGreater)
- return;
-
-+ old_idle = IdleTimeCounter->value;
- IdleTimeQueryValue (NULL, &idle);
-+ IdleTimeCounter->value = idle; /* push, so CheckTrigger works */
-
- if (pIdleTimeValueLess &&
- XSyncValueLessOrEqual (idle, *pIdleTimeValueLess))
- {
-- AdjustWaitForDelay (wt, 0);
-+ /*
-+ * We've been idle for less than the threshold value, and someone
-+ * wants to know about that, but now we need to know whether they
-+ * want level or edge trigger. Check the trigger list against the
-+ * current idle time, and if any succeed, bomb out of select()
-+ * immediately so we can reschedule.
-+ */
-+
-+ for (list = IdleTimeCounter->pTriglist; list; list = list->next) {
-+ trig = list->pTrigger;
-+ if (trig->CheckTrigger(trig, old_idle)) {
-+ AdjustWaitForDelay(wt, 0);
-+ break;
-+ }
-+ }
- }
- else if (pIdleTimeValueGreater)
- {
-- unsigned long timeout = 0;
-+ /*
-+ * There's a threshold in the positive direction. If we've been
-+ * idle less than it, schedule a wakeup for sometime in the future.
-+ * If we've been idle more than it, and someone wants to know about
-+ * that level-triggered, schedule an immediate wakeup.
-+ */
-+ unsigned long timeout = -1;
-
-- if (XSyncValueLessThan (idle, *pIdleTimeValueGreater))
-- {
-+ if (XSyncValueLessThan (idle, *pIdleTimeValueGreater)) {
- XSyncValue value;
- Bool overflow;
-
- XSyncValueSubtract (&value, *pIdleTimeValueGreater,
- idle, &overflow);
-- timeout = XSyncValueLow32 (value);
-+ timeout = min(timeout, XSyncValueLow32 (value));
-+ } else {
-+ for (list = IdleTimeCounter->pTriglist; list; list = list->next) {
-+ trig = list->pTrigger;
-+ if (trig->CheckTrigger(trig, old_idle)) {
-+ timeout = min(timeout, 0);
-+ break;
-+ }
-+ }
- }
-
- AdjustWaitForDelay (wt, timeout);
- }
-+
-+ IdleTimeCounter->value = old_idle; /* pop */
- }
-
- static void
diff --git a/x11-servers/xorg-server/files/patch-Xserver-Xext-xvmc.c b/x11-servers/xorg-server/files/patch-Xserver-Xext-xvmc.c
deleted file mode 100644
index 5894dbb727bc..000000000000
--- a/x11-servers/xorg-server/files/patch-Xserver-Xext-xvmc.c
+++ /dev/null
@@ -1,14 +0,0 @@
-Index: programs/Xserver/Xext/xvmc.c
-diff -u -p programs/Xserver/Xext/xvmc.c.orig programs/Xserver/Xext/xvmc.c
---- Xext/xvmc.c.orig Sun Jul 3 17:53:36 2005
-+++ Xext/xvmc.c Thu Jan 26 14:22:20 2006
-@@ -24,8 +24,8 @@
-
- #ifdef HAS_XVMCSHM
- #ifndef Lynx
--#include <sys/ipc.h>
- #include <sys/types.h>
-+#include <sys/ipc.h>
- #include <sys/shm.h>
- #else
- #include <ipc.h>
diff --git a/x11-servers/xorg-server/files/patch-Xserver-hw-xfree86-common-compiler.h b/x11-servers/xorg-server/files/patch-Xserver-hw-xfree86-common-compiler.h
index a4c50a07127a..750ed01f1c59 100644
--- a/x11-servers/xorg-server/files/patch-Xserver-hw-xfree86-common-compiler.h
+++ b/x11-servers/xorg-server/files/patch-Xserver-hw-xfree86-common-compiler.h
@@ -1,11 +1,11 @@
---- hw/xfree86/common/compiler.h.orig 2009-03-02 12:21:23.000000000 -0600
-+++ hw/xfree86/common/compiler.h 2009-03-02 12:21:29.000000000 -0600
-@@ -498,7 +498,7 @@
+--- hw/xfree86/common/compiler.h.orig 2009-02-25 13:12:11.000000000 -0600
++++ hw/xfree86/common/compiler.h 2009-03-21 02:08:22.000000000 -0500
+@@ -465,7 +465,7 @@
extern unsigned int inw(unsigned long port);
extern unsigned int inl(unsigned long port);
--# elif defined(linux) && (defined(__amd64__) || defined(__x86_64__))
-+# elif defined(linux) || defined(__FreeBSD__) && (defined(__amd64__) || defined(__x86_64__))
+-# elif defined(linux) && defined(__amd64__)
++# elif defined(linux) || defined(__FreeBSD__) && defined(__amd64__)
# include <inttypes.h>
diff --git a/x11-servers/xorg-server/files/patch-Xserver-hw-xfree86-os-support-bsd-bsd_mouse.c b/x11-servers/xorg-server/files/patch-Xserver-hw-xfree86-os-support-bsd-bsd_mouse.c
deleted file mode 100644
index 4d6e1f91b1f2..000000000000
--- a/x11-servers/xorg-server/files/patch-Xserver-hw-xfree86-os-support-bsd-bsd_mouse.c
+++ /dev/null
@@ -1,243 +0,0 @@
---- hw/xfree86/os-support/bsd/bsd_mouse.c.orig 2008-11-05 11:52:17.000000000 -0500
-+++ hw/xfree86/os-support/bsd/bsd_mouse.c 2009-02-04 12:54:48.000000000 -0500
-@@ -1,4 +1,3 @@
--
- /*
- * Copyright (c) 1999-2003 by The XFree86 Project, Inc.
- *
-@@ -76,11 +75,13 @@
- #define DEFAULT_MOUSE_DEV "/dev/mouse"
- #define DEFAULT_SYSMOUSE_DEV "/dev/sysmouse"
- #define DEFAULT_PS2_DEV "/dev/psm0"
-+#define DEFAULT_USB_DEV "/dev/ums0"
-
- static const char *mouseDevs[] = {
- DEFAULT_MOUSE_DEV,
- DEFAULT_SYSMOUSE_DEV,
- DEFAULT_PS2_DEV,
-+ DEFAULT_USB_DEV,
- NULL
- };
- #elif (defined(__OpenBSD__) || defined(__NetBSD__)) && defined(WSCONS_SUPPORT)
-@@ -101,7 +102,11 @@
- #if defined(__NetBSD__)
- return MSE_SERIAL | MSE_BUS | MSE_PS2 | MSE_AUTO;
- #elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
-- return MSE_SERIAL | MSE_BUS | MSE_PS2 | MSE_AUTO | MSE_MISC;
-+ return MSE_SERIAL | MSE_BUS | MSE_PS2 |
-+#ifdef XPS2_SUPPORT
-+ MSE_XPS2 |
-+#endif
-+ MSE_AUTO | MSE_MISC;
- #else
- return MSE_SERIAL | MSE_BUS | MSE_PS2 | MSE_XPS2 | MSE_AUTO;
- #endif
-@@ -180,10 +185,31 @@
- { MOUSE_PROTO_THINK, "ThinkingMouse" },
- { MOUSE_PROTO_SYSMOUSE, "SysMouse" }
- };
--
-+
-+#ifdef XPS2_SUPPORT
-+static struct {
-+ int dmodel;
-+ char *name;
-+} ps2proto[] = {
-+ { MOUSE_MODEL_NETSCROLL, "NetScrollPS/2" },
-+ { MOUSE_MODEL_NET, "NetMousePS/2" },
-+ { MOUSE_MODEL_GLIDEPOINT, "GlidePointPS/2" },
-+ { MOUSE_MODEL_THINK, "ThinkingMousePS/2" },
-+ { MOUSE_MODEL_INTELLI, "IMPS/2" },
-+ { MOUSE_MODEL_MOUSEMANPLUS, "MouseManPlusPS/2" },
-+ { MOUSE_MODEL_EXPLORER, "ExplorerPS/2" },
-+ { MOUSE_MODEL_4D, "IMPS/2" },
-+ { MOUSE_MODEL_4DPLUS, "IMPS/2" },
-+};
-+#endif
-+
- static const char *
- SetupAuto(InputInfoPtr pInfo, int *protoPara)
- {
-+#ifdef XPS2_SUPPORT
-+ char *dev;
-+#endif
-+ const char *proto;
- int i;
- mousehw_t hw;
- mousemode_t mode;
-@@ -191,10 +217,16 @@
- if (pInfo->fd == -1)
- return NULL;
-
-+#ifdef XPS2_SUPPORT
- /* set the driver operation level, if applicable */
-+ dev = xf86FindOptionValue(pInfo->options, "Device");
-+ if (dev != NULL && !strncmp(dev, DEFAULT_PS2_DEV, 8))
-+ i = 2;
-+ else
-+#endif
- i = 1;
- ioctl(pInfo->fd, MOUSE_SETLEVEL, &i);
--
-+
- /* interrogate the driver and get some intelligence on the device. */
- hw.iftype = MOUSE_IF_UNKNOWN;
- hw.model = MOUSE_MODEL_GENERIC;
-@@ -210,9 +242,18 @@
- protoPara[0] = mode.syncmask[0];
- protoPara[1] = mode.syncmask[1];
- }
-+ proto = devproto[i].name;
-+#ifdef XPS2_SUPPORT
-+ if (mode.protocol == MOUSE_PROTO_PS2)
-+ for (i = 0; i < sizeof(ps2proto)/sizeof(ps2proto[0]); ++i)
-+ if (hw.model == ps2proto[i].dmodel) {
-+ proto = ps2proto[i].name;
-+ break;
-+ }
-+#endif
- xf86MsgVerb(X_INFO, 3, "%s: SetupAuto: protocol is %s\n",
-- pInfo->name, devproto[i].name);
-- return devproto[i].name;
-+ pInfo->name, proto);
-+ return proto;
- }
- }
- }
-@@ -235,41 +276,41 @@
- (protocol && xf86NameCmp(protocol, "SysMouse") == 0)) {
- /*
- * As the FreeBSD sysmouse driver defaults to protocol level 0
-- * everytime it is opened we enforce protocol level 1 again at
-+ * everytime it is closed we enforce protocol level 1 again at
- * this point.
- */
- mode.level = 1;
- } else
-- mode.level = -1;
--#else
-- mode.level = -1;
- #endif
-+ mode.level = -1;
- ioctl(pInfo->fd, MOUSE_SETMODE, &mode);
- }
- #endif
-
- #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
--
--#define MOUSED_PID_FILE "/var/run/moused.pid"
--
- /*
- * Try to check if moused is running. DEFAULT_SYSMOUSE_DEV is useless without
-- * it. There doesn't seem to be a better way of checking.
-+ * it. Also, try to check if the device is used by moused. If it is opened
-+ * by moused, we do not want to use it directly. There doesn't seem to be
-+ * a better way of checking.
- */
- static Bool
--MousedRunning(void)
-+MousedRunning(const char *dev)
- {
-+ char cmd[128];
- FILE *f = NULL;
-- unsigned int pid;
-+ unsigned int i;
-
-- if ((f = fopen(MOUSED_PID_FILE, "r")) != NULL) {
-- if (fscanf(f, "%u", &pid) == 1 && pid > 0) {
-- if (kill(pid, 0) == 0) {
-- fclose(f);
-- return TRUE;
-- }
-+ if (dev)
-+ sprintf(cmd, "sh -c 'fstat %s | grep -c moused' 2>/dev/null", dev);
-+ else
-+ sprintf(cmd, "sh -c 'pgrep -nx moused' 2>/dev/null");
-+ if ((f = popen(cmd, "r")) != NULL) {
-+ if (fscanf(f, "%u", &i) == 1 && i > 0) {
-+ pclose(f);
-+ return TRUE;
- }
-- fclose(f);
-+ pclose(f);
- }
- return FALSE;
- }
-@@ -277,17 +318,17 @@
- static const char *
- FindDevice(InputInfoPtr pInfo, const char *protocol, int flags)
- {
-- int fd = -1;
-+ int ret = -1;
- const char **pdev, *dev = NULL;
- Bool devMouse = FALSE;
- struct stat devMouseStat;
- struct stat sb;
-
- for (pdev = mouseDevs; *pdev; pdev++) {
-- SYSCALL (fd = open(*pdev, O_RDWR | O_NONBLOCK));
-- if (fd == -1) {
-+ SYSCALL (ret = stat(*pdev, &sb));
-+ if (ret == -1) {
- #ifdef DEBUG
-- ErrorF("Cannot open %s (%s)\n", *pdev, strerror(errno));
-+ ErrorF("Cannot stat %s (%s)\n", *pdev, strerror(errno));
- #endif
- } else {
- /*
-@@ -296,28 +337,32 @@
- * the test for whether /dev/sysmouse is usable can be made.
- */
- if (!strcmp(*pdev, DEFAULT_MOUSE_DEV)) {
-- if (fstat(fd, &devMouseStat) == 0)
-- devMouse = TRUE;
-- close(fd);
-+ memcpy(&devMouseStat, &sb, sizeof(devMouseStat));
-+ devMouse = TRUE;
- continue;
- } else if (!strcmp(*pdev, DEFAULT_SYSMOUSE_DEV)) {
- /* Check if /dev/mouse is the same as /dev/sysmouse. */
-- if (devMouse && fstat(fd, &sb) == 0 &&
-- devMouseStat.st_dev == sb.st_dev &&
-+ if (devMouse && devMouseStat.st_dev == sb.st_dev &&
- devMouseStat.st_ino == sb.st_ino) {
- /* If the same, use /dev/sysmouse. */
- devMouse = FALSE;
- }
-- close(fd);
-- if (MousedRunning())
-+ if (MousedRunning(NULL))
- break;
-- else {
--#ifdef DEBUG
-- ErrorF("moused isn't running\n");
--#endif
-- }
- } else {
-- close(fd);
-+ /* Check if /dev/mouse is the same as this device. */
-+ if (devMouse && devMouseStat.st_dev == sb.st_dev &&
-+ devMouseStat.st_ino == sb.st_ino) {
-+ /* If the same, use this device. */
-+ devMouse = FALSE;
-+ }
-+ if (MousedRunning(*pdev))
-+ continue;
-+ /* ums(4) does not support anything but SysMouse protocol. */
-+ if (!strncmp(*pdev, DEFAULT_USB_DEV, 8) && protocol &&
-+ xf86NameCmp(protocol, "auto") != 0 &&
-+ xf86NameCmp(protocol, "sysmouse") != 0)
-+ continue;
- break;
- }
- }
-@@ -775,7 +820,9 @@
- p->CheckProtocol = CheckProtocol;
- #if (defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)) && defined(MOUSE_PROTO_SYSMOUSE)
- p->SetupAuto = SetupAuto;
-+#ifndef XPS2_SUPPORT
- p->SetPS2Res = SetSysMouseRes;
-+#endif
- p->SetBMRes = SetSysMouseRes;
- p->SetMiscRes = SetSysMouseRes;
- #endif
diff --git a/x11-servers/xorg-server/files/patch-Xserver-hw-xfree86-os-support-xf86_OSlib.h b/x11-servers/xorg-server/files/patch-Xserver-hw-xfree86-os-support-xf86_OSlib.h
deleted file mode 100644
index 169034d2a7bf..000000000000
--- a/x11-servers/xorg-server/files/patch-Xserver-hw-xfree86-os-support-xf86_OSlib.h
+++ /dev/null
@@ -1,12 +0,0 @@
---- hw/xfree86/os-support/xf86_OSlib.h.orig 2007-08-23 15:04:53.000000000 -0400
-+++ hw/xfree86/os-support/xf86_OSlib.h 2008-04-08 16:20:04.000000000 -0400
-@@ -495,6 +495,9 @@
- # if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__DragonFly__)
- # if defined(__FreeBSD_kernel_version) && (__FreeBSD_kernel_version >= 500013)
- # include <sys/mouse.h>
-+# if (__FreeBSD_kernel_version >= 700106)
-+# define XPS2_SUPPORT
-+# endif
- # else
- # undef MOUSE_GETINFO
- # include <machine/mouse.h>
diff --git a/x11-servers/xorg-server/files/patch-bsdResource.c b/x11-servers/xorg-server/files/patch-bsdResource.c
deleted file mode 100644
index 67eef5985730..000000000000
--- a/x11-servers/xorg-server/files/patch-bsdResource.c
+++ /dev/null
@@ -1,32 +0,0 @@
---- hw/xfree86/os-support/bsd/bsdResource.c.orig 2008-07-19 12:47:13.000000000 +0100
-+++ hw/xfree86/os-support/bsd/bsdResource.c 2008-07-19 12:52:03.000000000 +0100
-@@ -19,7 +19,7 @@
-
- #ifdef INCLUDE_XF86_NO_DOMAIN
-
--#if defined(__alpha__) || defined(__sparc64__) || defined(__amd64__) || defined(__x86_64__)
-+#if defined(__alpha__) || defined(__amd64__) || defined(__x86_64__)
-
- resPtr
- xf86AccResFromOS(resPtr ret)
-@@ -60,7 +60,7 @@
- return ret;
- }
-
--#elif defined(__powerpc__)
-+#elif defined(__powerpc__) || defined(__sparc__) || defined(__sparc64__)
-
- resPtr
- xf86AccResFromOS(resPtr ret)
-@@ -77,7 +77,11 @@
- ret = xf86AddResToList(ret, &range, -1);
- RANGE(range, 0x00000000, 0x00000000, ResExcIoBlock);
- ret = xf86AddResToList(ret, &range, -1);
-+#if defined(__sparc__) || defined(__sparc64__)
-+ RANGE(range, 0x00ffffff, 0x00ffffff, ResExcIoBlock);
-+#else
- RANGE(range, 0x0000ffff, 0x0000ffff, ResExcIoBlock);
-+#endif
- ret = xf86AddResToList(ret, &range, -1);
-
- return ret;
diff --git a/x11-servers/xorg-server/files/patch-config-hal.c b/x11-servers/xorg-server/files/patch-config-hal.c
deleted file mode 100644
index 69ec0d6f3112..000000000000
--- a/x11-servers/xorg-server/files/patch-config-hal.c
+++ /dev/null
@@ -1,143 +0,0 @@
---- config/hal.c.orig 2008-11-14 16:27:05.000000000 -0500
-+++ config/hal.c 2009-02-08 01:17:28.000000000 -0500
-@@ -467,11 +467,10 @@
- info->system_bus = NULL;
- }
-
--static void
--connect_hook(DBusConnection *connection, void *data)
-+static BOOL
-+connect_and_register(DBusConnection *connection, struct config_hal_info *info)
- {
- DBusError error;
-- struct config_hal_info *info = data;
- char **devices;
- int num_devices, i;
-
-@@ -479,8 +478,10 @@
-
- dbus_error_init(&error);
-
-- if (!info->hal_ctx)
-- info->hal_ctx = libhal_ctx_new();
-+ if (info->hal_ctx)
-+ return TRUE; /* already registered, pretend we did something */
-+
-+ info->hal_ctx = libhal_ctx_new();
- if (!info->hal_ctx) {
- LogMessage(X_ERROR, "config/hal: couldn't create HAL context\n");
- goto out_err;
-@@ -512,7 +513,7 @@
-
- dbus_error_free(&error);
-
-- return;
-+ return TRUE;
-
- out_ctx2:
- if (!libhal_ctx_shutdown(info->hal_ctx, &error))
-@@ -526,6 +527,104 @@
- info->hal_ctx = NULL;
- info->system_bus = NULL;
-
-+ return FALSE;
-+}
-+
-+
-+/**
-+ * Handle NewOwnerChanged signals to deal with HAL startup at X server runtime.
-+ *
-+ * NewOwnerChanged is send once when HAL shuts down, and once again when it
-+ * comes back up. Message has three arguments, first is the name
-+ * (org.freedesktop.Hal), the second one is the old owner, third one is new
-+ * owner.
-+ */
-+static DBusHandlerResult
-+ownerchanged_handler(DBusConnection *connection, DBusMessage *message, void *data)
-+{
-+ int ret = DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
-+
-+ if (dbus_message_is_signal(message,
-+ "org.freedesktop.DBus",
-+ "NameOwnerChanged")) {
-+ DBusError error;
-+ char *name, *old_owner, *new_owner;
-+
-+ dbus_error_init(&error);
-+ dbus_message_get_args(message, &error,
-+ DBUS_TYPE_STRING, &name,
-+ DBUS_TYPE_STRING, &old_owner,
-+ DBUS_TYPE_STRING, &new_owner,
-+ DBUS_TYPE_INVALID);
-+
-+ if (dbus_error_is_set(&error)) {
-+ ErrorF("[config/hal] failed to get NameOwnerChanged args: %s (%s)\n",
-+ error.name, error.message);
-+ } else if (name && strcmp(name, "org.freedesktop.Hal") == 0) {
-+
-+ if (!old_owner || !strlen(old_owner)) {
-+ DebugF("[config/hal] HAL startup detected.\n");
-+ if (connect_and_register(connection, (struct config_hal_info*)data))
-+ dbus_connection_unregister_object_path(connection,
-+ "/org/freedesktop/DBus");
-+ else
-+ ErrorF("[config/hal] Failed to connect to HAL bus.\n");
-+ }
-+
-+ ret = DBUS_HANDLER_RESULT_HANDLED;
-+ }
-+ dbus_error_free(&error);
-+ }
-+
-+ return ret;
-+}
-+
-+/**
-+ * Register a handler for the NameOwnerChanged signal.
-+ */
-+static BOOL
-+listen_for_startup(DBusConnection *connection, void *data)
-+{
-+ DBusObjectPathVTable vtable = { .message_function = ownerchanged_handler, };
-+ DBusError error;
-+ const char MATCH_RULE[] = "sender='org.freedesktop.DBus',"
-+ "interface='org.freedesktop.DBus',"
-+ "type='signal',"
-+ "path='/org/freedesktop/DBus',"
-+ "member='NameOwnerChanged'";
-+ int rc = FALSE;
-+
-+ dbus_error_init(&error);
-+ dbus_bus_add_match(connection, MATCH_RULE, &error);
-+ if (!dbus_error_is_set(&error)) {
-+ if (dbus_connection_register_object_path(connection,
-+ "/org/freedesktop/DBus",
-+ &vtable,
-+ data))
-+ rc = TRUE;
-+ else
-+ ErrorF("[config/hal] cannot register object path.\n");
-+ } else {
-+ ErrorF("[config/hal] couldn't add match rule: %s (%s)\n", error.name,
-+ error.message);
-+ ErrorF("[config/hal] cannot detect a HAL startup.\n");
-+ }
-+
-+ dbus_error_free(&error);
-+
-+ return rc;
-+}
-+
-+static void
-+connect_hook(DBusConnection *connection, void *data)
-+{
-+ struct config_hal_info *info = data;
-+
-+ if (listen_for_startup(connection, data) &&
-+ connect_and_register(connection, info))
-+ dbus_connection_unregister_object_path(connection,
-+ "/org/freedesktop/DBus");
-+
- return;
- }
-
diff --git a/x11-servers/xorg-server/files/patch-configure b/x11-servers/xorg-server/files/patch-configure
new file mode 100644
index 000000000000..b22c59911065
--- /dev/null
+++ b/x11-servers/xorg-server/files/patch-configure
@@ -0,0 +1,20 @@
+--- configure.orig 2009-04-02 20:48:06.000000000 -0500
++++ configure 2009-04-02 20:52:17.000000000 -0500
+@@ -30559,7 +30559,7 @@
+ esac
+
+
+-if test "x$DRI2" == xyes; then
++if test "x$DRI2" = xyes; then
+ DRI2_TRUE=
+ DRI2_FALSE='#'
+ else
+@@ -30741,7 +30741,7 @@
+ fi
+
+
+-if test "x$DRI2_AIGLX" == xyes; then
++if test "x$DRI2_AIGLX" = xyes; then
+ DRI2_AIGLX_TRUE=
+ DRI2_AIGLX_FALSE='#'
+ else
diff --git a/x11-servers/xorg-server/pkg-plist b/x11-servers/xorg-server/pkg-plist
index 5e6e3a102e0a..fe98ace6368a 100644
--- a/x11-servers/xorg-server/pkg-plist
+++ b/x11-servers/xorg-server/pkg-plist
@@ -2,32 +2,14 @@ bin/X
bin/Xorg
bin/cvt
bin/gtf
-%%PPC_NA%%bin/inb
-%%PPC_NA%%bin/inl
-%%PPC_NA%%bin/inw
-%%PPC_NA%%bin/ioport
-%%PPC_NA%%bin/outb
-%%PPC_NA%%bin/outl
-%%PPC_NA%%bin/outw
-bin/xorgconfig
include/xorg/BT.h
include/xorg/IBM.h
include/xorg/TI.h
include/xorg/XIstubs.h
-include/xorg/afb.h
-include/xorg/assyntax.h
-include/xorg/atKeynames.h
include/xorg/bstore.h
include/xorg/bstorestr.h
include/xorg/bt829.h
-include/xorg/cfb.h
-include/xorg/cfb16.h
-include/xorg/cfb32.h
include/xorg/cfb8_16.h
-include/xorg/cfb8_32.h
-include/xorg/cfbmap.h
-include/xorg/cfbmskbits.h
-include/xorg/cfbunmap.h
include/xorg/closestr.h
include/xorg/closure.h
include/xorg/colormap.h
@@ -47,6 +29,7 @@ include/xorg/dixfontstr.h
include/xorg/dixgrabs.h
include/xorg/dixstruct.h
include/xorg/dri.h
+include/xorg/dri2.h
include/xorg/dristruct.h
include/xorg/edid.h
include/xorg/exa.h
@@ -57,21 +40,19 @@ include/xorg/extnsionst.h
include/xorg/fb.h
include/xorg/fbdevhw.h
include/xorg/fboverlay.h
-include/xorg/fbpseudocolor.h
include/xorg/fbrop.h
include/xorg/fi1236.h
include/xorg/fourcc.h
include/xorg/gc.h
include/xorg/gcstruct.h
+include/xorg/geext.h
+include/xorg/geint.h
include/xorg/globals.h
include/xorg/glyphstr.h
include/xorg/hotplug.h
include/xorg/i2c_def.h
include/xorg/input.h
include/xorg/inputstr.h
-include/xorg/mfb.h
-include/xorg/mfbmap.h
-include/xorg/mfbunmap.h
include/xorg/mi.h
include/xorg/mibank.h
include/xorg/mibstore.h
@@ -100,6 +81,7 @@ include/xorg/pixmapstr.h
include/xorg/privates.h
include/xorg/property.h
include/xorg/propertyst.h
+include/xorg/ptrveloc.h
include/xorg/randrstr.h
include/xorg/region.h
include/xorg/regionstr.h
@@ -107,6 +89,7 @@ include/xorg/registry.h
include/xorg/renderedge.h
include/xorg/resource.h
include/xorg/rgb.h
+include/xorg/rrtransform.h
include/xorg/sarea.h
include/xorg/screenint.h
include/xorg/scrnintstr.h
@@ -114,6 +97,7 @@ include/xorg/selection.h
include/xorg/servermd.h
include/xorg/shadow.h
include/xorg/shadowfb.h
+include/xorg/shmint.h
include/xorg/site.h
include/xorg/swaprep.h
include/xorg/swapreq.h
@@ -132,15 +116,12 @@ include/xorg/xaa.h
include/xorg/xaaWrapper.h
include/xorg/xaalocal.h
include/xorg/xaarop.h
-include/xorg/xf1bpp.h
-include/xorg/xf4bpp.h
include/xorg/xf86.h
include/xorg/xf86Crtc.h
include/xorg/xf86Cursor.h
include/xorg/xf86DDC.h
include/xorg/xf86Modes.h
include/xorg/xf86Module.h
-include/xorg/xf86OSmouse.h
include/xorg/xf86Opt.h
include/xorg/xf86Optrec.h
include/xorg/xf86Parser.h
@@ -154,7 +135,6 @@ include/xorg/xf86RamDac.h
include/xorg/xf86Rename.h
include/xorg/xf86Resources.h
%%SPARC64%%include/xorg/xf86Sbus.h
-include/xorg/xf86Version.h
include/xorg/xf86Xinput.h
include/xorg/xf86_OSlib.h
include/xorg/xf86_OSproc.h
@@ -169,42 +149,33 @@ include/xorg/xf86xvmc.h
include/xorg/xf86xvpriv.h
include/xorg/xisb.h
include/xorg/xkbfile.h
+include/xorg/xkbrules.h
include/xorg/xkbsrv.h
include/xorg/xkbstr.h
include/xorg/xorg-server.h
include/xorg/xorgVersion.h
+include/xorg/xserver-properties.h
include/xorg/xvdix.h
include/xorg/xvmcext.h
-lib/X11/Cards
lib/X11/Options
lib/xorg/modules/extensions/libdbe.la
lib/xorg/modules/extensions/libdbe.so
lib/xorg/modules/extensions/libdri.la
lib/xorg/modules/extensions/libdri.so
+lib/xorg/modules/extensions/libdri2.la
+lib/xorg/modules/extensions/libdri2.so
lib/xorg/modules/extensions/libextmod.la
lib/xorg/modules/extensions/libextmod.so
lib/xorg/modules/extensions/libglx.la
lib/xorg/modules/extensions/libglx.so
lib/xorg/modules/extensions/librecord.la
lib/xorg/modules/extensions/librecord.so
-lib/xorg/modules/extensions/libxtrap.la
-lib/xorg/modules/extensions/libxtrap.so
-lib/xorg/modules/fonts/libfreetype.la
-lib/xorg/modules/fonts/libfreetype.so
-%%ALPHA_NA%%lib/xorg/modules/libafb.la
-%%ALPHA_NA%%lib/xorg/modules/libafb.so
-lib/xorg/modules/libcfb.la
-lib/xorg/modules/libcfb.so
-lib/xorg/modules/libcfb32.la
-lib/xorg/modules/libcfb32.so
lib/xorg/modules/libexa.la
lib/xorg/modules/libexa.so
lib/xorg/modules/libfb.la
lib/xorg/modules/libfb.so
lib/xorg/modules/libint10.la
lib/xorg/modules/libint10.so
-lib/xorg/modules/libmfb.la
-lib/xorg/modules/libmfb.so
lib/xorg/modules/libshadow.la
lib/xorg/modules/libshadow.so
lib/xorg/modules/libshadowfb.la
@@ -217,14 +188,8 @@ lib/xorg/modules/libwfb.la
lib/xorg/modules/libwfb.so
lib/xorg/modules/libxaa.la
lib/xorg/modules/libxaa.so
-lib/xorg/modules/libxf1bpp.la
-lib/xorg/modules/libxf1bpp.so
-lib/xorg/modules/libxf4bpp.la
-lib/xorg/modules/libxf4bpp.so
lib/xorg/modules/libxf8_16bpp.la
lib/xorg/modules/libxf8_16bpp.so
-lib/xorg/modules/libxf8_32bpp.la
-lib/xorg/modules/libxf8_32bpp.so
lib/xorg/modules/linux/libfbdevhw.la
lib/xorg/modules/linux/libfbdevhw.so
lib/xorg/modules/multimedia/bt829_drv.la