aboutsummaryrefslogtreecommitdiffstats
path: root/x11-servers
diff options
context:
space:
mode:
authoranholt <anholt@FreeBSD.org>2003-07-17 05:06:13 +0800
committeranholt <anholt@FreeBSD.org>2003-07-17 05:06:13 +0800
commita57954dfcfaa2439d75005f72b6846205343dde5 (patch)
tree87113d5605ffd4120cd5b7d1d2cbc1e9e4d1e8b0 /x11-servers
parent49dfc22a7ee5ceadc91a0ba81c4eda0d321633a3 (diff)
downloadfreebsd-ports-gnome-a57954dfcfaa2439d75005f72b6846205343dde5.tar.gz
freebsd-ports-gnome-a57954dfcfaa2439d75005f72b6846205343dde5.tar.zst
freebsd-ports-gnome-a57954dfcfaa2439d75005f72b6846205343dde5.zip
Fix compile of XFree86-4-Server on -current and add amd64 patches.
Submitted by: peter (amd64)
Diffstat (limited to 'x11-servers')
-rw-r--r--x11-servers/XFree86-4-Server/Makefile5
-rw-r--r--x11-servers/XFree86-4-Server/files/patch-Pci.h13
-rw-r--r--x11-servers/XFree86-4-Server/files/patch-bsd-Imakefile12
-rw-r--r--x11-servers/XFree86-4-Server/files/patch-bsd-bsdResource.c9
-rw-r--r--x11-servers/XFree86-4-Server/files/patch-bus-Imakefile9
-rw-r--r--x11-servers/XFree86-4-Server/files/patch-libc_wrapper.c9
-rw-r--r--x11-servers/XFree86-4-Server/files/patch-loader-Imakefile9
-rw-r--r--x11-servers/XFree86-4-Server/files/patch-loader-elfloader.c9
-rw-r--r--x11-servers/XFree86-4-Server/files/patch-r200_vtxtmp_x86.S11
-rw-r--r--x11-servers/XFree86-4-Server/files/patch-radeon_vtxtmp_x86.S11
-rw-r--r--x11-servers/XFree86-4-Server/files/patch-xf86-common-Imakefile12
11 files changed, 108 insertions, 1 deletions
diff --git a/x11-servers/XFree86-4-Server/Makefile b/x11-servers/XFree86-4-Server/Makefile
index b9183e954c58..7354d5339726 100644
--- a/x11-servers/XFree86-4-Server/Makefile
+++ b/x11-servers/XFree86-4-Server/Makefile
@@ -28,7 +28,10 @@ COMMENT= XFree86-4 X server and related programs
.for pf in patch-savage-pci-id patch-alpha_video.c patch-Pci.h patch-radeondri \
patch-r128_driver.c patch-mga_driver.c patch-xkbInit.c patch-radeon_dri.c \
patch-mga_dri.c patch-nv_driver.c patch-nv_setup.c patch-int10-generic.c \
- patch-radeon_cursor.c patch-radeon_reg.h patch-smi
+ patch-radeon_cursor.c patch-radeon_reg.h patch-smi \
+ patch-libc_wrapper.c patch-xf86-common-Imakefile patch-loader-Imakefile \
+ patch-loader-elfloader.c patch-bsd-Imakefile patch-bsd-bsdResource.c \
+ patch-bus-Imakefile patch-r200_vtxtmp_x86.S patch-radeon_vtxtmp_x86.S
EXTRA_PATCHES+= ${FILESDIR}/${pf}
.endfor
SCRIPTS_ENV= OSVERSION=${OSVERSION} \
diff --git a/x11-servers/XFree86-4-Server/files/patch-Pci.h b/x11-servers/XFree86-4-Server/files/patch-Pci.h
index f7286b494cea..fc0d0955f376 100644
--- a/x11-servers/XFree86-4-Server/files/patch-Pci.h
+++ b/x11-servers/XFree86-4-Server/files/patch-Pci.h
@@ -11,3 +11,16 @@
# endif
# define XF86SCANPCI_WRAPPER ia64ScanPCIWrapper
#elif defined(__i386__)
+@@ -298,7 +302,11 @@
+ # endif
+ # define ARCH_PCI_PCI_BRIDGE sparcPciPciBridge
+ #elif defined(__x86_64__)
+-# 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/files/patch-bsd-Imakefile b/x11-servers/XFree86-4-Server/files/patch-bsd-Imakefile
new file mode 100644
index 000000000000..e37b4bc833c6
--- /dev/null
+++ b/x11-servers/XFree86-4-Server/files/patch-bsd-Imakefile
@@ -0,0 +1,12 @@
+--- programs/Xserver/hw/xfree86/os-support/bsd/Imakefile.orig Tue Jul 15 20:29:18 2003
++++ programs/Xserver/hw/xfree86/os-support/bsd/Imakefile Tue Jul 15 20:29:20 2003
+@@ -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/files/patch-bsd-bsdResource.c b/x11-servers/XFree86-4-Server/files/patch-bsd-bsdResource.c
new file mode 100644
index 000000000000..1dc49cf70476
--- /dev/null
+++ b/x11-servers/XFree86-4-Server/files/patch-bsd-bsdResource.c
@@ -0,0 +1,9 @@
+--- 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 \ No newline at end of file
diff --git a/x11-servers/XFree86-4-Server/files/patch-bus-Imakefile b/x11-servers/XFree86-4-Server/files/patch-bus-Imakefile
new file mode 100644
index 000000000000..715bebec8f61
--- /dev/null
+++ b/x11-servers/XFree86-4-Server/files/patch-bus-Imakefile
@@ -0,0 +1,9 @@
+--- programs/Xserver/hw/xfree86/os-support/bus/Imakefile Sun Feb 23 12:26:49 2003
++++ programs/Xserver/hw/xfree86/os-support/bus/Imakefile Wed Jun 4 19:19:39 2003
+@@ -81,5 +81,5 @@
+ PCIDRVROBJ = ix86Pci.o linuxPci.o
+
+-#elif defined(FreeBSDArchitecture) && defined(AlphaArchitecture)
++#elif defined(FreeBSDArchitecture) && (defined(AlphaArchitecture) || defined(x86_64Architecture))
+
+ \ No newline at end of file
diff --git a/x11-servers/XFree86-4-Server/files/patch-libc_wrapper.c b/x11-servers/XFree86-4-Server/files/patch-libc_wrapper.c
new file mode 100644
index 000000000000..b020234be195
--- /dev/null
+++ b/x11-servers/XFree86-4-Server/files/patch-libc_wrapper.c
@@ -0,0 +1,9 @@
+--- programs/Xserver/hw/xfree86/os-support/shared/libc_wrapper.c Fri Feb 21 22:00:39 2003
++++ programs/Xserver/hw/xfree86/os-support/shared/libc_wrapper.c Wed Jun 4 18:55:45 2003
+@@ -481,5 +481,5 @@
+ if (flags & XF86_MAP_SHARED) f |= MAP_SHARED;
+ if (flags & XF86_MAP_PRIVATE) f |= MAP_PRIVATE;
+-#ifdef __x86_64__
++#if defined(__x86_64__) && defined(linux)
+ if (flags & XF86_MAP_32BIT) f |= MAP_32BIT;
+ #endif \ No newline at end of file
diff --git a/x11-servers/XFree86-4-Server/files/patch-loader-Imakefile b/x11-servers/XFree86-4-Server/files/patch-loader-Imakefile
new file mode 100644
index 000000000000..01f0a21e6931
--- /dev/null
+++ b/x11-servers/XFree86-4-Server/files/patch-loader-Imakefile
@@ -0,0 +1,9 @@
+--- 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 (x86_64Architecture)
++#if defined (x86_64Architecture) && defined(linux)
+ ARCHDEFINES = -DDoMMAPedMerge -DMmapPageAlign
+ #endif \ No newline at end of file
diff --git a/x11-servers/XFree86-4-Server/files/patch-loader-elfloader.c b/x11-servers/XFree86-4-Server/files/patch-loader-elfloader.c
new file mode 100644
index 000000000000..da51296402b8
--- /dev/null
+++ b/x11-servers/XFree86-4-Server/files/patch-loader-elfloader.c
@@ -0,0 +1,9 @@
+--- programs/Xserver/hw/xfree86/loader/elfloader.c Fri Jan 24 09:26:35 2003
++++ programs/Xserver/hw/xfree86/loader/elfloader.c Wed Jun 4 19:12:09 2003
+@@ -74,5 +74,5 @@
+ # error No MAP_ANON?
+ # endif
+-# if !defined (__x86_64__)
++# if !defined (__x86_64__) || !defined(__linux__)
+ # define MMAP_FLAGS (MAP_PRIVATE | MAP_ANON)
+ # else \ No newline at end of file
diff --git a/x11-servers/XFree86-4-Server/files/patch-r200_vtxtmp_x86.S b/x11-servers/XFree86-4-Server/files/patch-r200_vtxtmp_x86.S
new file mode 100644
index 000000000000..c77182d8b85f
--- /dev/null
+++ b/x11-servers/XFree86-4-Server/files/patch-r200_vtxtmp_x86.S
@@ -0,0 +1,11 @@
+--- 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/files/patch-radeon_vtxtmp_x86.S b/x11-servers/XFree86-4-Server/files/patch-radeon_vtxtmp_x86.S
new file mode 100644
index 000000000000..6703e2c952fe
--- /dev/null
+++ b/x11-servers/XFree86-4-Server/files/patch-radeon_vtxtmp_x86.S
@@ -0,0 +1,11 @@
+--- 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/files/patch-xf86-common-Imakefile b/x11-servers/XFree86-4-Server/files/patch-xf86-common-Imakefile
new file mode 100644
index 000000000000..da4d7c613798
--- /dev/null
+++ b/x11-servers/XFree86-4-Server/files/patch-xf86-common-Imakefile
@@ -0,0 +1,12 @@
+--- programs/Xserver/hw/xfree86/common/Imakefile.orig Mon Feb 17 09:06:41 2003
++++ programs/Xserver/hw/xfree86/common/Imakefile Tue Jul 15 17:29:14 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 \ No newline at end of file