summaryrefslogtreecommitdiff
path: root/x11/XFree86-4-libraries
diff options
context:
space:
mode:
authorEric Anholt <anholt@FreeBSD.org>2003-07-16 21:06:13 +0000
committerEric Anholt <anholt@FreeBSD.org>2003-07-16 21:06:13 +0000
commit085cfa9e04a2621cf9032deeb97730618185094e (patch)
tree78d5a81ab091ec1708a18e14a9738f313bac29ce /x11/XFree86-4-libraries
parentFix a bug in string handling in rman. (diff)
Fix compile of XFree86-4-Server on -current and add amd64 patches.
Submitted by: peter (amd64)
Notes
Notes: svn path=/head/; revision=85004
Diffstat (limited to 'x11/XFree86-4-libraries')
-rw-r--r--x11/XFree86-4-libraries/files/patch-FreeBSD.cf50
-rw-r--r--x11/XFree86-4-libraries/files/patch-Imake.cf11
2 files changed, 45 insertions, 16 deletions
diff --git a/x11/XFree86-4-libraries/files/patch-FreeBSD.cf b/x11/XFree86-4-libraries/files/patch-FreeBSD.cf
index 4e59a2df9397..b606777cd1dd 100644
--- a/x11/XFree86-4-libraries/files/patch-FreeBSD.cf
+++ b/x11/XFree86-4-libraries/files/patch-FreeBSD.cf
@@ -1,5 +1,5 @@
--- config/cf/FreeBSD.cf.orig Tue Jan 14 18:52:12 2003
-+++ config/cf/FreeBSD.cf Tue Mar 4 16:36:20 2003
++++ config/cf/FreeBSD.cf Tue Jul 15 19:57:04 2003
@@ -162,11 +162,11 @@
* ld: warning: libXThrStub.so.6, needed by libX11.so, not found
*/
@@ -25,36 +25,60 @@
#endif
#endif
#ifndef ExtraLibraries
-@@ -228,13 +228,17 @@
+@@ -209,6 +209,10 @@
+ #endif
+
+ /* 3.3(?) and later has support for setting MTRRs */
++#ifdef x86_64Architecture
++#define HasMTRRSupport NO /* not yet */
++#endif
++
+ #ifndef HasMTRRSupport
+ #if OSMajorVersion > 3 || (OSMajorVersion == 3 && OSMinorVersion >= 3)
+ #define HasMTRRSupport YES
+@@ -228,21 +232,25 @@
#endif
/*
- * 4.1/i386 and 5.0/i386 have the AGP driver.
-+ * 4.1/i386 and 5.0/i386,alpha,ia64 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)) && \
-+ (OSMajorVersion >= 5)
++#if (defined(AlphaArchitecture) || defined(ia64Architecture) || \
++ defined(x86_64Architecture)) && (OSMajorVersion >= 5)
+#define HasAgpGart YES
+#endif
#endif
/*
-@@ -461,6 +465,9 @@
- #ifdef Sparc64Architecture
+ * 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) && \
+- (OSMajorVersion >= 5 || (OSMajorVersion == 4 && OSMinorVersion >= 2))
++#if defined(x86_64Architecture) || (defined(i386Architecture) && \
++ (OSMajorVersion >= 5 || (OSMajorVersion == 4 && OSMinorVersion >= 2)))
+ # define HasX86Support YES
+ # define HasMMXSupport YES
+ # define Has3DNowSupport YES
+@@ -455,10 +463,8 @@
+ #ifdef i386Architecture
+ #define ServerExtraDefines GccGasOption XFree86ServerDefines
+ #endif
+-#ifdef AlphaArchitecture
+-#define ServerExtraDefines GccGasOption XFree86ServerDefines -D_XSERVER64
+-#endif
+-#ifdef Sparc64Architecture
++#if defined(AlphaArchitecture) || defined(Sparc64Architecture) || \
++ defined(ia64Architecture) || defined(x86_64Architecture)
#define ServerExtraDefines GccGasOption XFree86ServerDefines -D_XSERVER64
#endif
-+#ifdef ia64Architecture
-+#define ServerExtraDefines GccGasOption XFree86ServerDefines -D_XSERVER64
-+#endif
-
- #define StandardDefines -DCSRG_BASED
-@@ -482,18 +489,8 @@
+@@ -482,18 +488,8 @@
#define XawI18nDefines -DUSE_XWCHAR_STRING -DUSE_XMBTOWC
#endif
diff --git a/x11/XFree86-4-libraries/files/patch-Imake.cf b/x11/XFree86-4-libraries/files/patch-Imake.cf
index e20e009d9356..11e6068925b0 100644
--- a/x11/XFree86-4-libraries/files/patch-Imake.cf
+++ b/x11/XFree86-4-libraries/files/patch-Imake.cf
@@ -1,6 +1,6 @@
---- config/cf/Imake.cf.orig Tue Mar 4 16:38:16 2003
-+++ config/cf/Imake.cf Tue Mar 4 16:38:18 2003
-@@ -232,6 +232,10 @@
+--- config/cf/Imake.cf.orig Tue Feb 18 08:51:45 2003
++++ config/cf/Imake.cf Tue Jul 15 20:02:05 2003
+@@ -232,6 +232,15 @@
# define Sparc64Architecture
# undef __sparc64__
# endif
@@ -8,6 +8,11 @@
+# define ia64Architecture
+# undef __ia64__
+# endif
++# ifdef __amd64__
++# define x86_64Architecture
++# undef __amd64__
++# undef __x86_64__
++# endif
#endif /* __FreeBSD__ */
#ifdef AMOEBA