aboutsummaryrefslogtreecommitdiff
path: root/x11-servers
diff options
context:
space:
mode:
authorEric Anholt <anholt@FreeBSD.org>2003-11-12 05:47:01 +0000
committerEric Anholt <anholt@FreeBSD.org>2003-11-12 05:47:01 +0000
commit9555c60bc330c746c8a9286dcbe59db81f2207cc (patch)
treedcb50bfc884bd747fe2e94e4f56b009a2dd54176 /x11-servers
parent45866cf139a3e72ee1c0b07955bca28336e29c23 (diff)
downloadports-9555c60bc330c746c8a9286dcbe59db81f2207cc.tar.gz
ports-9555c60bc330c746c8a9286dcbe59db81f2207cc.zip
Notes
Diffstat (limited to 'x11-servers')
-rw-r--r--x11-servers/XFree86-4-Server-snap/Makefile16
-rw-r--r--x11-servers/XFree86-4-Server-snap/distinfo2
-rw-r--r--x11-servers/XFree86-4-Server-snap/files/patch-FreeBSD.cf68
-rw-r--r--x11-servers/XFree86-4-Server-snap/files/patch-GL-Imakefile11
-rw-r--r--x11-servers/XFree86-4-Server-snap/files/patch-Pci.h36
-rw-r--r--x11-servers/XFree86-4-Server-snap/files/patch-Sbus.c11
-rw-r--r--x11-servers/XFree86-4-Server-snap/files/patch-bsd-Imakefile26
-rw-r--r--x11-servers/XFree86-4-Server-snap/files/patch-bsd-bsdResource.c9
-rw-r--r--x11-servers/XFree86-4-Server-snap/files/patch-bus-Imakefile18
-rw-r--r--x11-servers/XFree86-4-Server-snap/files/patch-compiler.h11
-rw-r--r--x11-servers/XFree86-4-Server-snap/files/patch-elfloader.c77
-rw-r--r--x11-servers/XFree86-4-Server-snap/files/patch-freebsdPci.c11
-rw-r--r--x11-servers/XFree86-4-Server-snap/files/patch-libc_wrapper.c11
-rw-r--r--x11-servers/XFree86-4-Server-snap/files/patch-loader-Imakefile9
-rw-r--r--x11-servers/XFree86-4-Server-snap/files/patch-loader.c20
-rw-r--r--x11-servers/XFree86-4-Server-snap/files/patch-os-support_Imakefile10
-rw-r--r--x11-servers/XFree86-4-Server-snap/files/patch-r200_vtxtmp_x86.S11
-rw-r--r--x11-servers/XFree86-4-Server-snap/files/patch-radeon_vtxtmp_x86.S11
-rw-r--r--x11-servers/XFree86-4-Server-snap/files/patch-sunffb-Imakefile11
-rw-r--r--x11-servers/XFree86-4-Server-snap/files/patch-xf86-common-Imakefile21
-rw-r--r--x11-servers/XFree86-4-Server-snap/files/patch-xf86Events.c18
-rw-r--r--x11-servers/XFree86-4-Server-snap/files/patch-xf86Sbus.h16
-rw-r--r--x11-servers/XFree86-4-Server-snap/files/patch-xf86sym.c31
-rw-r--r--x11-servers/XFree86-4-Server-snap/files/patch-xfree86.cf11
-rw-r--r--x11-servers/XFree86-4-Server-snap/pkg-plist8
-rw-r--r--x11-servers/XFree86-4-Server-snap/scripts/configure2
26 files changed, 33 insertions, 453 deletions
diff --git a/x11-servers/XFree86-4-Server-snap/Makefile b/x11-servers/XFree86-4-Server-snap/Makefile
index 7df5e3806bd4..cabde2e5ba9c 100644
--- a/x11-servers/XFree86-4-Server-snap/Makefile
+++ b/x11-servers/XFree86-4-Server-snap/Makefile
@@ -6,8 +6,7 @@
#
PORTNAME= Server
-PORTVERSION= 4.3.99.12
-PORTREVISION= 2
+PORTVERSION= 4.3.99.15
CATEGORIES= x11-servers
MASTER_SITES= ${MASTER_SITE_XFREE:S|source/||:S/$/:x/} \
${MASTER_SITE_LOCAL:S/$/:local/}
@@ -26,11 +25,11 @@ PATCHDIR= ${MASTERDIR}/files
.for pf in patch-Imake.cf patch-Imake.rules \
patch-Imake.tmpl patch-X11.tmpl patch-Xcursor-Imakefile \
- patch-c2 patch-dps patch-dri-Imakefile \
+ patch-c2 patch-dri-Imakefile \
patch-f patch-imake.c \
patch-texteroids patch-xditview-Imakefile patch-xdm \
patch-xdm_session.c patch-xf86.tmpl patch-xfree86.cf \
- patch-xterm-Imakefile patch-z04 patch-z05 patch-z14 \
+ patch-xterm-Imakefile patch-z05 patch-z14 \
patch-z15 patch-z30 patch-z32 patch-z34 patch-z35 \
patch-z41 patch-z44 patch-z45
# patch-startx
@@ -93,18 +92,19 @@ XINCLUDE_DIRS= lib/xkbfile lib/xtrans
XINSTALL_DIRS= lib/font programs/Xserver
XINSTALL_MAN_DIRS= programs/Xserver
+NOT_FOR_ARCHS= ia64
+
.include "${.CURDIR}/../../x11/XFree86-4-libraries/Makefile.inc"
.include <bsd.port.pre.mk>
-.if ${ARCH} == i386 || ${ARCH} == alpha
+.if ${ARCH} == i386 || ${ARCH} == alpha
+RUN_DEPENDS+= ${X11BASE}/lib/modules/dri/r200_dri.so:${PORTSDIR}/graphics/dri
BuildXF86DRI= YES
PLIST_SUB+= DRI=""
-XBUILD_DIRS+= lib/XThrStub lib/X11 lib/Xext lib/GL
-XINSTALL_DIRS+= lib/GL/mesa/src/drv
.else
BuildXF86DRI= NO
PLIST_SUB+= DRI="@comment "
-.endif # i386
+.endif
.if ${ARCH} == alpha
PLIST_SUB+= ALPHA_NA="@comment "
diff --git a/x11-servers/XFree86-4-Server-snap/distinfo b/x11-servers/XFree86-4-Server-snap/distinfo
index 3035e127dab8..28c51857f12b 100644
--- a/x11-servers/XFree86-4-Server-snap/distinfo
+++ b/x11-servers/XFree86-4-Server-snap/distinfo
@@ -1,2 +1,2 @@
-MD5 (xc/XFree86-4.3.99.12.tar.bz2) = 12820de14d53c61cc84a0f20109f1743
+MD5 (xc/XFree86-4.3.99.15.tar.bz2) = ae7ec191348888bc9f83318e55a009e1
MD5 (xc/Wraphelp2.gz) = bd1910492087442288d885412e2e5535
diff --git a/x11-servers/XFree86-4-Server-snap/files/patch-FreeBSD.cf b/x11-servers/XFree86-4-Server-snap/files/patch-FreeBSD.cf
index 0716e72982be..bcbd69901253 100644
--- a/x11-servers/XFree86-4-Server-snap/files/patch-FreeBSD.cf
+++ b/x11-servers/XFree86-4-Server-snap/files/patch-FreeBSD.cf
@@ -1,6 +1,6 @@
---- config/cf/FreeBSD.cf.orig Wed Sep 10 11:00:01 2003
-+++ config/cf/FreeBSD.cf Thu Sep 18 01:04:05 2003
-@@ -167,11 +167,11 @@
+--- config/cf/FreeBSD.cf.orig Sat Nov 1 20:38:01 2003
++++ config/cf/FreeBSD.cf Tue Nov 11 20:47:11 2003
+@@ -172,11 +172,11 @@
* ld: warning: libXThrStub.so.6, needed by libX11.so, not found
*/
#if BuildThreadStubLibrary && (!defined(UseInstalledX11) || !UseInstalledX11)
@@ -16,72 +16,14 @@
#endif
#define CppCmd /usr/bin/cpp
-@@ -182,7 +182,13 @@
- #if defined(UseInstalled)
- #define DefaultCCOptions /**/
- #else
--#define DefaultCCOptions -ansi -pedantic -Dasm=__asm GccWarningOptions
-+#if defined(HasGcc3) && HasGcc3
-+#define NoSystemWarn -Wno-system-headers
-+#else
-+#define NoSystemWarn
-+#endif
-+#define DefaultCCOptions -ansi -pedantic NoSystemWarn -Dasm=__asm \
-+ GccWarningOptions
- #endif
- #endif
- #ifndef ExtraLibraries
-@@ -233,20 +239,24 @@
- #endif
-
- /*
-- * 4.1/i386 and 5.0/i386 have the AGP driver.
-+ * 4.1/i386 and 5.0/i386,alpha,ia64,amd64 have the AGP driver.
- */
- #ifndef HasAgpGart
- #if defined(i386Architecture) && \
- (OSMajorVersion >= 5 || (OSMajorVersion == 4 && OSMinorVersion >= 1))
- #define HasAgpGart YES
- #endif
-+#if (defined(AlphaArchitecture) || defined(ia64Architecture) || \
-+ defined(x86_64Architecture)) && (OSMajorVersion >= 5)
-+#define HasAgpGart YES
-+#endif
- #endif
-
- /*
- * SSE and 3DNow will be autodetected, so binutils is the only
- * requirement for enabling this. By 4.2 they were all supported.
- */
--#if defined(i386Architecture) && \
-+#if defined(x86_64Architecture) || defined(i386Architecture) && \
- (OSMajorVersion >= 5 || (OSMajorVersion == 4 && OSMinorVersion >= 2))
- # define HasX86Support YES
- # define HasMMXSupport YES
-@@ -349,11 +359,13 @@
- #ifdef i386Architecture
- #define ServerExtraDefines GccGasOption XFree86ServerDefines
- #endif
--#ifdef AlphaArchitecture
-+#if defined(AlphaArchitecture) || defined(Sparc64Architecture) || \
-+ defined(ia64Architecture) || defined(x86_64Architecture)
- #define ServerExtraDefines GccGasOption XFree86ServerDefines -D_XSERVER64
- #endif
- #ifdef Sparc64Architecture
--#define ServerExtraDefines GccGasOption XFree86ServerDefines -D_XSERVER64
-+#define AsVISOption -Av9a
-+#define AsOutputArchSize 64
- #endif
-
- #define StandardDefines -DCSRG_BASED
-@@ -376,18 +388,8 @@
+@@ -393,18 +393,8 @@
#define XawI18nDefines -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
#endif
-/* The GCC strength-reduce bug is fixed for FreeBSD 2.1.5 and later */
-#ifndef DefaultGcc2i386Opt
-#if OSMajorVersion > 2 || (OSMajorVersion == 2 && OSMinorVersion > 1) || (OSMajorVersion == 2 && OSMinorVersion == 1 && OSTeenyVersion >= 5)
--#define DefaultGcc2i386Opt -O2
+-#define DefaultGcc2i386Opt -O2 GccAliasingArgs
-#endif
-#endif
-
diff --git a/x11-servers/XFree86-4-Server-snap/files/patch-GL-Imakefile b/x11-servers/XFree86-4-Server-snap/files/patch-GL-Imakefile
new file mode 100644
index 000000000000..40560c382274
--- /dev/null
+++ b/x11-servers/XFree86-4-Server-snap/files/patch-GL-Imakefile
@@ -0,0 +1,11 @@
+--- lib/GL/Imakefile.orig Thu Oct 23 00:33:15 2003
++++ lib/GL/Imakefile Thu Oct 23 00:35:49 2003
+@@ -110,7 +110,7 @@
+ #if BuildXF86DRI && GlxUseBuiltInDRIDriver
+ SUBDIRS = $(MESADIRS) $(DRIDIRS) $(DRIVERDIRS) $(GLXDIRS) $(LIBGLBUILDDIR) $(OSMESADIRS)
+ #else
+-SUBDIRS = $(MESADIRS) $(GLXDIRS) $(DRIDIRS) $(LIBGLBUILDDIR) $(OSMESADIRS) $(DRIVERDIRS)
++SUBDIRS = $(MESADIRS) $(GLXDIRS) $(DRIDIRS) /*$(LIBGLBUILDDIR) $(OSMESADIRS) */ $(DRIVERDIRS)
+ #endif
+
+ MakeSubdirs($(SUBDIRS))
diff --git a/x11-servers/XFree86-4-Server-snap/files/patch-Pci.h b/x11-servers/XFree86-4-Server-snap/files/patch-Pci.h
deleted file mode 100644
index 0a3b90b9c635..000000000000
--- a/x11-servers/XFree86-4-Server-snap/files/patch-Pci.h
+++ /dev/null
@@ -1,36 +0,0 @@
---- programs/Xserver/hw/xfree86/os-support/bus/Pci.h.orig Wed Sep 10 04:05:17 2003
-+++ programs/Xserver/hw/xfree86/os-support/bus/Pci.h Wed Sep 17 19:10:42 2003
-@@ -255,6 +255,10 @@
- # define ARCH_PCI_INIT linuxPciInit
- # define INCLUDE_XF86_MAP_PCI_MEM
- # define INCLUDE_XF86_NO_DOMAIN
-+# elif defined(FreeBSD)
-+# define ARCH_PCI_INIT freebsdPciInit
-+# define INCLUDE_XF86_MAP_PCI_MEM
-+# define INCLUDE_XF86_NO_DOMAIN
- # endif
- # define XF86SCANPCI_WRAPPER ia64ScanPCIWrapper
- #elif defined(__i386__)
-@@ -315,14 +319,20 @@
- # elif defined(sun)
- # define ARCH_PCI_INIT sparcPciInit
- # define INCLUDE_XF86_MAP_PCI_MEM
--# elif defined(__OpenBSD__) && defined(__sparc64__)
-+# elif (defined(__OpenBSD__) || defined(__FreeBSD__)) && defined(__sparc64__)
- # define ARCH_PCI_INIT freebsdPciInit
- # define INCLUDE_XF86_MAP_PCI_MEM
- # define INCLUDE_XF86_NO_DOMAIN
- # endif
-+# if !defined(__FreeBSD__)
- # define ARCH_PCI_PCI_BRIDGE sparcPciPciBridge
-+# endif
- #elif defined(__AMD64__)
--# define ARCH_PCI_INIT ix86PciInit
-+# if defined(__FreeBSD__)
-+# define ARCH_PCI_INIT freebsdPciInit
-+# else
-+# define ARCH_PCI_INIT ix86PciInit
-+# endif
- # define INCLUDE_XF86_MAP_PCI_MEM
- # define INCLUDE_XF86_NO_DOMAIN
- # if defined(linux)
diff --git a/x11-servers/XFree86-4-Server-snap/files/patch-Sbus.c b/x11-servers/XFree86-4-Server-snap/files/patch-Sbus.c
deleted file mode 100644
index 9013e1dfe8c0..000000000000
--- a/x11-servers/XFree86-4-Server-snap/files/patch-Sbus.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- programs/Xserver/hw/xfree86/os-support/bus/Sbus.c.orig Fri May 16 15:33:46 2003
-+++ programs/Xserver/hw/xfree86/os-support/bus/Sbus.c Fri May 16 15:37:46 2003
-@@ -170,6 +170,8 @@
- promP1275 = TRUE;
- else
- promP1275 = FALSE;
-+#elif defined(__FreeBSD__)
-+ promP1275 = TRUE;
- #else
- #error Missing promIsP1275() function for this OS
- #endif
diff --git a/x11-servers/XFree86-4-Server-snap/files/patch-bsd-Imakefile b/x11-servers/XFree86-4-Server-snap/files/patch-bsd-Imakefile
deleted file mode 100644
index 5e98788f28dd..000000000000
--- a/x11-servers/XFree86-4-Server-snap/files/patch-bsd-Imakefile
+++ /dev/null
@@ -1,26 +0,0 @@
---- programs/Xserver/hw/xfree86/os-support/bsd/Imakefile.orig Thu May 15 18:39:39 2003
-+++ programs/Xserver/hw/xfree86/os-support/bsd/Imakefile Thu May 15 18:40:42 2003
-@@ -45,10 +45,10 @@
- IOPERM_SRC = ioperm_noop.c
- IOPERM_OBJ = ioperm_noop.o
- # endif
--#elif defined(FreeBSDArchitecture) && !defined(AlphaBsdArchitecture)
-+#elif defined(FreeBSDArchitecture)
-+# if defined(i386Architecture)
- IOPERMDEFINES = -DUSE_DEV_IO
--#else
--# if defined(AlphaBsdArchitecture)
-+# elif defined(AlphaBsdArchitecture)
- IOPERMDEFINES = -DUSE_ALPHA_PORTS
- # else
- IOPERM_SRC = ioperm_noop.c
-@@ -150,6 +150,9 @@
- #elif defined(Sparc64Architecture)
- VIDEO_SRC = sparc64_video.c
- VIDEO_OBJ = sparc64_video.o
-+#elif defined(x86_64Architecture)
-+VIDEO_SRC = i386_video.c
-+VIDEO_OBJ = i386_video.o
- #else
- #error Unknown architecture !
- #endif
diff --git a/x11-servers/XFree86-4-Server-snap/files/patch-bsd-bsdResource.c b/x11-servers/XFree86-4-Server-snap/files/patch-bsd-bsdResource.c
deleted file mode 100644
index 34da14506316..000000000000
--- a/x11-servers/XFree86-4-Server-snap/files/patch-bsd-bsdResource.c
+++ /dev/null
@@ -1,9 +0,0 @@
---- programs/Xserver/hw/xfree86/os-support/bsd/bsdResource.c Wed May 22 14:38:29 2002
-+++ programs/Xserver/hw/xfree86/os-support/bsd/bsdResource.c Wed Jun 4 19:00:15 2003
-@@ -19,5 +19,5 @@
- #ifdef INCLUDE_XF86_NO_DOMAIN
-
--#if defined(__alpha__) || defined(__sparc64__)
-+#if defined(__alpha__) || defined(__sparc64__) || defined(__amd64__)
-
- resPtr
diff --git a/x11-servers/XFree86-4-Server-snap/files/patch-bus-Imakefile b/x11-servers/XFree86-4-Server-snap/files/patch-bus-Imakefile
deleted file mode 100644
index 503877315957..000000000000
--- a/x11-servers/XFree86-4-Server-snap/files/patch-bus-Imakefile
+++ /dev/null
@@ -1,18 +0,0 @@
---- programs/Xserver/hw/xfree86/os-support/bus/Imakefile.orig Sun Feb 23 15:26:49 2003
-+++ programs/Xserver/hw/xfree86/os-support/bus/Imakefile Fri May 16 14:33:32 2003
-@@ -88,6 +88,15 @@
- PCIDRVRSRC = freebsdPci.c
- PCIDRVROBJ = freebsdPci.o
-
-+#elif defined(FreeBSDArchitecture) && defined(Sparc64Architecture)
-+
-+XCOMM Sparc SBUS & PCI drivers
-+
-+PCIDRVRSRC = freebsdPci.c
-+PCIDRVROBJ = freebsdPci.o
-+SBUSDRVSRC = Sbus.c
-+SBUSDRVOBJ = Sbus.o
-+
- #elif defined(NetBSDArchitecture) && defined(AlphaArchitecture)
-
- XCOMM Alpha (NetBSD) PCI driver
diff --git a/x11-servers/XFree86-4-Server-snap/files/patch-compiler.h b/x11-servers/XFree86-4-Server-snap/files/patch-compiler.h
deleted file mode 100644
index 2cbe5f847ea2..000000000000
--- a/x11-servers/XFree86-4-Server-snap/files/patch-compiler.h
+++ /dev/null
@@ -1,11 +0,0 @@
---- programs/Xserver/hw/xfree86/common/compiler.h.orig Thu May 15 14:49:26 2003
-+++ programs/Xserver/hw/xfree86/common/compiler.h Thu May 15 14:50:07 2003
-@@ -514,7 +514,7 @@
- return ret;
- }
-
--# elif (defined(linux) || defined(Lynx) || defined(sun) || defined(__OpenBSD__)) && defined(__sparc__)
-+# elif (defined(linux) || defined(Lynx) || defined(sun) || defined(__OpenBSD__) || defined(__FreeBSD__)) && defined(__sparc__)
-
- # if !defined(Lynx)
- # ifndef ASI_PL
diff --git a/x11-servers/XFree86-4-Server-snap/files/patch-elfloader.c b/x11-servers/XFree86-4-Server-snap/files/patch-elfloader.c
deleted file mode 100644
index 1f030e6d90b1..000000000000
--- a/x11-servers/XFree86-4-Server-snap/files/patch-elfloader.c
+++ /dev/null
@@ -1,77 +0,0 @@
---- programs/Xserver/hw/xfree86/loader/elfloader.c.orig Fri Jan 24 12:26:35 2003
-+++ programs/Xserver/hw/xfree86/loader/elfloader.c Tue May 20 15:18:44 2003
-@@ -74,5 +74,5 @@
- # error No MAP_ANON?
- # endif
--# if !defined (__AMD64__)
-+# if !defined (__AMD64__) || !defined(__linux__)
- # define MMAP_FLAGS (MAP_PRIVATE | MAP_ANON)
- # else
-@@ -1150,6 +1150,7 @@
- #endif
- #if defined(__sparc__)
- unsigned char *dest8; /* address of the 8 bit place being modified */
-+ unsigned long *dest64;
- #endif
- #if defined(__alpha__)
- unsigned int *dest32h; /* address of the high 32 bit place being modified */
-@@ -1960,7 +1961,6 @@
- break;
-
- case R_SPARC_32: /* 3 */
-- case R_SPARC_GLOB_DAT: /* 20 */
- case R_SPARC_UA32: /* 23 */
- dest32 = (unsigned int *)(secp + rel->r_offset);
- symval += rel->r_addend;
-@@ -1970,29 +1970,36 @@
- ((unsigned char *)dest32)[3] = (unsigned char)(symval );
- break;
-
-+ case R_SPARC_GLOB_DAT: /* 20 */
-+ case R_SPARC_64: /* 32 */
-+ dest64 = (unsigned long *)(secp + rel->r_offset);
-+ symval += rel->r_addend;
-+ *dest64 = symval;
-+ break;
-+
- case R_SPARC_DISP8: /* 4 */
- dest8 = (unsigned char *)(secp + rel->r_offset);
- symval += rel->r_addend;
-- *dest8 = (symval - (Elf32_Addr) dest8);
-+ *dest8 = (symval - (Elf_Addr) dest8);
- break;
-
- case R_SPARC_DISP16: /* 5 */
- dest16 = (unsigned short *)(secp + rel->r_offset);
- symval += rel->r_addend;
-- *dest16 = (symval - (Elf32_Addr) dest16);
-+ *dest16 = (symval - (Elf_Addr) dest16);
- break;
-
- case R_SPARC_DISP32: /* 6 */
- dest32 = (unsigned int *)(secp + rel->r_offset);
- symval += rel->r_addend;
-- *dest32 = (symval - (Elf32_Addr) dest32);
-+ *dest32 = (symval - (Elf_Addr) dest32);
- break;
-
- case R_SPARC_WDISP30: /* 7 */
- dest32 = (unsigned int *)(secp + rel->r_offset);
- symval += rel->r_addend;
- *dest32 = ((*dest32 & 0xc0000000) |
-- ((symval - (Elf32_Addr) dest32) >> 2));
-+ (((symval - (Elf_Addr) dest32) >> 2) & 0x3fffffff));
- break;
-
- case R_SPARC_HI22: /* 9 */
-@@ -2038,8 +2045,8 @@
- break;
-
- case R_SPARC_RELATIVE: /* 22 */
-- dest32 = (unsigned int *)(secp + rel->r_offset);
-- *dest32 += (unsigned int)secp + rel->r_addend;
-+ dest64 = (unsigned long *)(secp + rel->r_offset);
-+ *dest64 = (unsigned long)secp + rel->r_addend;
- break;
- #endif /*__sparc__*/
- #ifdef __ia64__
diff --git a/x11-servers/XFree86-4-Server-snap/files/patch-freebsdPci.c b/x11-servers/XFree86-4-Server-snap/files/patch-freebsdPci.c
deleted file mode 100644
index 58b4c940474a..000000000000
--- a/x11-servers/XFree86-4-Server-snap/files/patch-freebsdPci.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- programs/Xserver/hw/xfree86/os-support/bus/freebsdPci.c.orig Thu May 15 18:53:48 2003
-+++ programs/Xserver/hw/xfree86/os-support/bus/freebsdPci.c Thu May 15 18:54:24 2003
-@@ -84,7 +84,7 @@
- /* bridge */ NULL
- };
-
--#if !defined(__OpenBSD__)
-+#if !defined(__OpenBSD__) && !defined(__FreeBSD__)
- #if X_BYTE_ORDER == X_BIG_ENDIAN
- #ifdef __sparc__
- #ifndef ASI_PL
diff --git a/x11-servers/XFree86-4-Server-snap/files/patch-libc_wrapper.c b/x11-servers/XFree86-4-Server-snap/files/patch-libc_wrapper.c
deleted file mode 100644
index 5441e3bf58c9..000000000000
--- a/x11-servers/XFree86-4-Server-snap/files/patch-libc_wrapper.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- programs/Xserver/hw/xfree86/os-support/shared/libc_wrapper.c.orig Wed Sep 10 04:05:22 2003
-+++ programs/Xserver/hw/xfree86/os-support/shared/libc_wrapper.c Wed Sep 17 19:18:01 2003
-@@ -484,7 +484,7 @@
- if (flags & XF86_MAP_FIXED) f |= MAP_FIXED;
- if (flags & XF86_MAP_SHARED) f |= MAP_SHARED;
- if (flags & XF86_MAP_PRIVATE) f |= MAP_PRIVATE;
--#ifdef __AMD64__
-+#ifdef __AMD64__ && defined(linux)
- if (flags & XF86_MAP_32BIT) f |= MAP_32BIT;
- #endif
- if (prot & XF86_PROT_EXEC) p |= PROT_EXEC;
diff --git a/x11-servers/XFree86-4-Server-snap/files/patch-loader-Imakefile b/x11-servers/XFree86-4-Server-snap/files/patch-loader-Imakefile
deleted file mode 100644
index 19eef5970c6c..000000000000
--- a/x11-servers/XFree86-4-Server-snap/files/patch-loader-Imakefile
+++ /dev/null
@@ -1,9 +0,0 @@
---- programs/Xserver/hw/xfree86/loader/Imakefile Wed Feb 26 15:32:12 2003
-+++ programs/Xserver/hw/xfree86/loader/Imakefile Wed Jun 4 19:14:55 2003
-@@ -35,5 +35,5 @@
- #endif
-
--#if defined (AMD64Architecture)
-+#if defined (AMD64Architecture) && defined(linux)
- ARCHDEFINES = -DDoMMAPedMerge -DMmapPageAlign
- #endif
diff --git a/x11-servers/XFree86-4-Server-snap/files/patch-loader.c b/x11-servers/XFree86-4-Server-snap/files/patch-loader.c
deleted file mode 100644
index 23acde46016b..000000000000
--- a/x11-servers/XFree86-4-Server-snap/files/patch-loader.c
+++ /dev/null
@@ -1,20 +0,0 @@
---- programs/Xserver/hw/xfree86/loader/loader.c.orig Thu May 15 19:50:47 2003
-+++ programs/Xserver/hw/xfree86/loader/loader.c Thu May 15 19:51:35 2003
-@@ -88,7 +88,7 @@
- static int refCount[MAX_HANDLE] ;
- #endif
-
--#if defined(__sparc__) && defined(__GNUC__)
-+#if defined(__sparc__) && defined(__GNUC__) && !defined(__FreeBSD__)
- # define SYMFUNCDOT(func) { "." #func, (funcptr)&__sparc_dot_ ## func },
- # if !defined(__OpenBSD__)
- # define SYMFUNCDOT89(func) { "." #func, (funcptr)&func ## _sparcv89 },
-@@ -298,7 +298,7 @@
- LoaderAddSymbols(-1, -1, dixLookupTab ) ;
- LoaderAddSymbols(-1, -1, fontLookupTab ) ;
- LoaderAddSymbols(-1, -1, extLookupTab );
--#ifdef __sparc__
-+#if defined(__sparc__) && !defined(__FreeBSD__)
- #ifdef linux
- if (sparcUseHWMulDiv())
- LoaderAddSymbols(-1, -1, SparcV89LookupTab ) ;
diff --git a/x11-servers/XFree86-4-Server-snap/files/patch-os-support_Imakefile b/x11-servers/XFree86-4-Server-snap/files/patch-os-support_Imakefile
deleted file mode 100644
index 5ca4d30ccf34..000000000000
--- a/x11-servers/XFree86-4-Server-snap/files/patch-os-support_Imakefile
+++ /dev/null
@@ -1,10 +0,0 @@
---- programs/Xserver/hw/xfree86/os-support/Imakefile.orig Mon Feb 17 12:06:45 2003
-+++ programs/Xserver/hw/xfree86/os-support/Imakefile Thu May 15 16:51:46 2003
-@@ -13,6 +13,7 @@
- #if defined(i386Architecture) || defined(ia64Architecture) || \
- (defined(SunArchitecture) && defined(SparcArchitecture)) || \
- (defined(FreeBSDArchitecture) && defined(AlphaArchitecture)) || \
-+ (defined(FreeBSDArchitecture) && defined(Sparc64Architecture)) || \
- (defined(NetBSDArchitecture) && defined(AlphaArchitecture)) || \
- (defined(NetBSDArchitecture) && defined(PpcArchitecture)) || \
- (defined(NetBSDArchitecture) && defined(SparcArchitecture)) || \
diff --git a/x11-servers/XFree86-4-Server-snap/files/patch-r200_vtxtmp_x86.S b/x11-servers/XFree86-4-Server-snap/files/patch-r200_vtxtmp_x86.S
deleted file mode 100644
index c77182d8b85f..000000000000
--- a/x11-servers/XFree86-4-Server-snap/files/patch-r200_vtxtmp_x86.S
+++ /dev/null
@@ -1,11 +0,0 @@
---- lib/GL/mesa/src/drv/r200/r200_vtxtmp_x86.S.orig Wed Jul 16 13:48:41 2003
-+++ lib/GL/mesa/src/drv/r200/r200_vtxtmp_x86.S Wed Jul 16 13:48:56 2003
-@@ -28,7 +28,7 @@
-
- #define GLOBL( x ) \
- .globl x; \
--x##:
-+x:
-
- .data
- .align 4
diff --git a/x11-servers/XFree86-4-Server-snap/files/patch-radeon_vtxtmp_x86.S b/x11-servers/XFree86-4-Server-snap/files/patch-radeon_vtxtmp_x86.S
deleted file mode 100644
index 6703e2c952fe..000000000000
--- a/x11-servers/XFree86-4-Server-snap/files/patch-radeon_vtxtmp_x86.S
+++ /dev/null
@@ -1,11 +0,0 @@
---- lib/GL/mesa/src/drv/radeon/radeon_vtxtmp_x86.S.orig Wed Jul 16 13:47:09 2003
-+++ lib/GL/mesa/src/drv/radeon/radeon_vtxtmp_x86.S Wed Jul 16 13:47:10 2003
-@@ -28,7 +28,7 @@
-
- #define GLOBL( x ) \
- .globl x; \
--x##:
-+x:
-
- .data
- .align 4
diff --git a/x11-servers/XFree86-4-Server-snap/files/patch-sunffb-Imakefile b/x11-servers/XFree86-4-Server-snap/files/patch-sunffb-Imakefile
deleted file mode 100644
index fe16ad9c1cf7..000000000000
--- a/x11-servers/XFree86-4-Server-snap/files/patch-sunffb-Imakefile
+++ /dev/null
@@ -1,11 +0,0 @@
---- programs/Xserver/hw/xfree86/drivers/sunffb/Imakefile.orig Mon Sep 16 14:06:01 2002
-+++ programs/Xserver/hw/xfree86/drivers/sunffb/Imakefile Tue May 20 12:25:15 2003
-@@ -49,7 +49,7 @@
- #define FFBsObjectRule(name) @@\
- name.o: name.s @@\
- $(RM) $@ @@\
-- $(CPP) $*.s | $(AS) $(GCCVISOPTION) -o $@ -
-+ $(CC) -c -x assembler-with-cpp $(GCCVISOPTION) $*.s -o $@
- #endif
- #else
- VISOBJS =
diff --git a/x11-servers/XFree86-4-Server-snap/files/patch-xf86-common-Imakefile b/x11-servers/XFree86-4-Server-snap/files/patch-xf86-common-Imakefile
deleted file mode 100644
index c5c5c7617849..000000000000
--- a/x11-servers/XFree86-4-Server-snap/files/patch-xf86-common-Imakefile
+++ /dev/null
@@ -1,21 +0,0 @@
---- programs/Xserver/hw/xfree86/common/Imakefile.orig Mon Feb 17 12:06:41 2003
-+++ programs/Xserver/hw/xfree86/common/Imakefile Thu May 15 20:17:15 2003
-@@ -18,7 +18,8 @@
- #endif /* GNUMachArchitecture */
- #else
- # if defined(i386BsdArchitecture) || defined(AlphaBsdArchitecture) \
-- || defined(OpenBSDArchitecture) || defined(NetBSDArchitecture)
-+ || defined(OpenBSDArchitecture) || defined(NetBSDArchitecture) \
-+ || defined(FreeBSDArchitecture)
- KBD = xf86KbdBSD
- # else
- # ifdef LinuxArchitecture
-@@ -29,7 +30,7 @@
- # endif
- #endif
-
--#ifdef SparcArchitecture
-+#if defined(SparcArchitecture) || defined(Sparc64Architecture)
- SBUSSRC = xf86sbusBus.c
- SBUSOBJ = xf86sbusBus.o
- #endif
diff --git a/x11-servers/XFree86-4-Server-snap/files/patch-xf86Events.c b/x11-servers/XFree86-4-Server-snap/files/patch-xf86Events.c
deleted file mode 100644
index 636c0b42b876..000000000000
--- a/x11-servers/XFree86-4-Server-snap/files/patch-xf86Events.c
+++ /dev/null
@@ -1,18 +0,0 @@
---- programs/Xserver/hw/xfree86/common/xf86Events.c.orig Mon Aug 25 04:08:11 2003
-+++ programs/Xserver/hw/xfree86/common/xf86Events.c Wed Sep 17 19:38:22 2003
-@@ -627,6 +627,7 @@
- scanCode = KEY_Pause; /* pause */
- }
-
-+#ifndef __sparc64__
- /*
- * PC keyboards generate separate key codes for
- * Alt+Print and Control+Pause but in the X keyboard model
-@@ -637,6 +638,7 @@
- scanCode = KEY_Print;
- else if (scanCode == KEY_Break)
- scanCode = KEY_Pause;
-+#endif
-
- /*
- * and now get some special keysequences
diff --git a/x11-servers/XFree86-4-Server-snap/files/patch-xf86Sbus.h b/x11-servers/XFree86-4-Server-snap/files/patch-xf86Sbus.h
deleted file mode 100644
index c6ac90bc6a21..000000000000
--- a/x11-servers/XFree86-4-Server-snap/files/patch-xf86Sbus.h
+++ /dev/null
@@ -1,16 +0,0 @@
---- programs/Xserver/hw/xfree86/os-support/bus/xf86Sbus.h.orig Wed May 22 17:38:30 2002
-+++ programs/Xserver/hw/xfree86/os-support/bus/xf86Sbus.h Fri May 16 15:47:05 2003
-@@ -35,7 +35,13 @@
- #elif defined(__OpenBSD__) && defined(__sparc64__)
- /* XXX */
- #elif defined(CSRG_BASED)
-+#if defined(__FreeBSD__)
-+#include <sys/types.h>
-+#include <sys/fbio.h>
-+#include <dev/ofw/openpromio.h>
-+#else
- #include <machine/fbio.h>
-+#endif
- #else
- #include <sun/fbio.h>
- #endif
diff --git a/x11-servers/XFree86-4-Server-snap/files/patch-xf86sym.c b/x11-servers/XFree86-4-Server-snap/files/patch-xf86sym.c
deleted file mode 100644
index 1d30c304c847..000000000000
--- a/x11-servers/XFree86-4-Server-snap/files/patch-xf86sym.c
+++ /dev/null
@@ -1,31 +0,0 @@
---- programs/Xserver/hw/xfree86/loader/xf86sym.c.orig Wed Feb 26 15:08:02 2003
-+++ programs/Xserver/hw/xfree86/loader/xf86sym.c Wed May 21 08:47:39 2003
-@@ -106,6 +106,14 @@
- extern void* __remqu(long, long);
- #endif
-
-+#if defined(__sparc__) && defined(__FreeBSD__)
-+extern float _Qp_qtos(unsigned int *);
-+extern double _Qp_qtod(unsigned int *);
-+extern unsigned long long _Qp_qtoux(unsigned int *);
-+extern void _Qp_dtoq(unsigned int *, double);
-+extern void _Qp_uitoq(unsigned int *, unsigned int);
-+#endif
-+
- #if defined(__GNUC__)
- extern long __div64(long, long);
- extern long __divdf3(long, long);
-@@ -1066,6 +1074,13 @@
-
- #ifdef __FreeBSD__
- SYMFUNC(sysctlbyname)
-+#if defined(__sparc__)
-+ SYMFUNC(_Qp_qtos)
-+ SYMFUNC(_Qp_qtod)
-+ SYMFUNC(_Qp_qtoux)
-+ SYMFUNC(_Qp_uitoq)
-+ SYMFUNC(_Qp_dtoq)
-+#endif
- #endif
-
- /*
diff --git a/x11-servers/XFree86-4-Server-snap/files/patch-xfree86.cf b/x11-servers/XFree86-4-Server-snap/files/patch-xfree86.cf
deleted file mode 100644
index a46f6ae40b15..000000000000
--- a/x11-servers/XFree86-4-Server-snap/files/patch-xfree86.cf
+++ /dev/null
@@ -1,11 +0,0 @@
---- config/cf/xfree86.cf.orig Mon May 19 02:11:26 2003
-+++ config/cf/xfree86.cf Mon May 19 02:12:05 2003
-@@ -481,7 +481,7 @@
-
- /* SPARC and UltraSPARC drivers */
-
--#if defined(SparcArchitecture) && \
-+#if (defined(SparcArchitecture) || defined(Sparc64Architecture)) && \
- !defined(LynxOSArchitecture) && \
- !defined(NetBSDArchitecture) && \
- !defined(OpenBSDArchitecture)
diff --git a/x11-servers/XFree86-4-Server-snap/pkg-plist b/x11-servers/XFree86-4-Server-snap/pkg-plist
index c50e3b99814c..177e927dc04d 100644
--- a/x11-servers/XFree86-4-Server-snap/pkg-plist
+++ b/x11-servers/XFree86-4-Server-snap/pkg-plist
@@ -1,5 +1,7 @@
bin/X
bin/XFree86
+bin/getconfig
+bin/getconfig.pl
bin/gtf
%%SPARC64_NA%%bin/inb
%%SPARC64_NA%%bin/inl
@@ -65,7 +67,6 @@ lib/X11/doc/README.rapidaccess
%%SPARC64_NA%%%%IA64_NA%%lib/X11/doc/README.rendition
%%SPARC64_NA%%%%IA64_NA%%lib/X11/doc/README.s3virge
lib/X11/doc/RELNOTES
-lib/X11/doc/ServersOnly
lib/X11/doc/Status
lib/X11/doc/Versions
lib/X11/doc/VideoBoard98
@@ -73,6 +74,8 @@ lib/X11/etc/Xinstall.sh
lib/X11/etc/sun.termcap
lib/X11/etc/sun.terminfo
lib/X11/etc/xmodmap.std
+lib/X11/getconfig/cfg.sample
+lib/X11/getconfig/xfree86.cfg
lib/modules/codeconv/libARABIC.a
lib/modules/codeconv/libARMSCII8.a
lib/modules/codeconv/libBIG5.a
@@ -112,6 +115,7 @@ lib/modules/codeconv/libVISCII.a
%%DRI%%lib/modules/dri/r128_dri.so
%%DRI%%lib/modules/dri/r200_dri.so
%%DRI%%lib/modules/dri/radeon_dri.so
+%%DRI%%lib/modules/dri/sis_dri.so
%%DRI%%lib/modules/dri/tdfx_dri.so
%%I386%%lib/modules/drivers/apm_drv.o
%%I386%%lib/modules/drivers/ark_drv.o
@@ -130,10 +134,10 @@ lib/modules/drivers/atimisc_drv.o
%%I386%%lib/modules/drivers/neomagic_drv.o
%%I386%%lib/modules/drivers/nsc_drv.o
lib/modules/drivers/nv_drv.o
-lib/modules/drivers/riva128.o
lib/modules/drivers/r128_drv.o
lib/modules/drivers/radeon_drv.o
%%SPARC64_NA%%%%IA64_NA%%lib/modules/drivers/rendition_drv.o
+lib/modules/drivers/riva128.o
%%SPARC64_NA%%%%IA64_NA%%lib/modules/drivers/s3_drv.o
%%SPARC64_NA%%%%IA64_NA%%lib/modules/drivers/s3virge_drv.o
%%SPARC64_NA%%%%IA64_NA%%lib/modules/drivers/savage_drv.o
diff --git a/x11-servers/XFree86-4-Server-snap/scripts/configure b/x11-servers/XFree86-4-Server-snap/scripts/configure
index ce9289b58fc4..9c4e633444ef 100644
--- a/x11-servers/XFree86-4-Server-snap/scripts/configure
+++ b/x11-servers/XFree86-4-Server-snap/scripts/configure
@@ -64,7 +64,9 @@ echo "#define BuildServersOnly YES" >> $LOCALDEF
echo "#define BuildGLXLibrary YES" >> $LOCALDEF
echo "#define BuildXFree86ConfigTools YES" >> $LOCALDEF
echo "#define UseInstalledPrograms YES" >> $LOCALDEF
+echo "#define UseInstalledLibraries YES" >> $LOCALDEF
echo "#define StandardIncludes -I${PREFIX}/include" >> $LOCALDEF
+#echo "#define UsrLibDir ${PREFIX}/lib" >> $LOCALDEF
echo "#define FreeBSDCC ${CC}" >> $LOCALDEF
echo "#define FreeBSDCXX ${CXX}" >> $LOCALDEF