pkgsrc/x11/xorg-cf-files/patches/patch-aa
schwarz 4e83971ac4 updated to 1.0.3
included a default for DARWIN_USE_QUARTZ (fails on MacOS X if not set)
added a patch for 64 bit Darwin
2010-05-21 22:09:42 +00:00

51 lines
1.5 KiB
Text

$NetBSD: patch-aa,v 1.2 2010/05/21 22:09:43 schwarz Exp $
--- NetBSD.cf.orig 2010-05-16 12:26:19.000000000 +0200
+++ NetBSD.cf 2010-05-16 12:27:44.000000000 +0200
@@ -126,7 +126,7 @@
# if ((OSMajorVersion == 2 && OSMinorVersion == 99 && OSTeenyVersion < 11) || \
(OSMajorVersion == 2 && OSMinorVersion < 99) || \
(OSMajorVersion < 2))
-# define LibraryMTDefines -DUSE_NBSD_THREADLIB
+# define LibraryMTDefines @@NETBSD_THREADLIB@@
# endif
# define SystemMTDefines -D_REENTRANT
# define MTSafeAPIDefines -DXUSE_MTSAFE_API -DXNO_MTSAFE_PWDAPI
@@ -150,7 +150,7 @@
#define MkdirHierCmd mkdir -p
#undef CcCmd
-#define CcCmd gcc
+#define CcCmd @@PKGSRC_CC@@
#ifndef DefaultCCOptions
#if defined(UseInstalled)
#define DefaultCCOptions /**/
@@ -166,7 +166,7 @@
#endif
#endif
-#define CppCmd cpp
+#define CppCmd @@PKGSRC_CPP@@
#define StandardCppOptions -traditional
#define StandardCppDefines /**/
#define PreProcessCmd CcCmd -E
@@ -199,6 +199,8 @@
# ifndef DoLoadableServer
# define DoLoadableServer YES
# endif
+#elif defined(ia64Architecture) || defined(AMD64Architecture)
+#define ServerExtraDefines GccGasOption XFree86ServerDefines -D_XSERVER64
#else
# ifndef DoLoadableServer
# define DoLoadableServer NO
@@ -344,6 +346,10 @@
#define HasPerl NO
#endif
+#if defined(AMD64Architecture)
+# define HasMTRRBuiltin YES
+#endif
+
/*
* NetBSD doesn't have gperf in default system
* you may override this in host.def if you installed perl from the packages