OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

95 lines
3.1 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../tightvnc/x86_64-ppc64.patch.unixsrc
  5. # Copyright (C) 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. What people still use as build system is disgusting ...
  17. - Rene Rebe <rene@exactcode.de>
  18. --- ./Xvnc/config/cf/linux.cf.vanilla 2006-01-14 16:26:22.000000000 +0100
  19. +++ ./Xvnc/config/cf/linux.cf 2006-01-14 16:56:58.000000000 +0100
  20. @@ -43,7 +43,8 @@
  21. #if defined(AlphaArchitecture) || defined(PowerPCArchitecture) || \
  22. defined(SparcArchitecture) || defined(ArmArchitecure) || \
  23. defined(i386Architecture) || defined(s390Architecture) || \
  24. - defined(s390xArchitecture)
  25. + defined(s390xArchitecture) || defined(AMD64Architecture) || \
  26. + defined(Ppc64Architecture)
  27. #define DefaultLinuxCLibMajorVersion 6
  28. #else
  29. #define DefaultLinuxCLibMajorVersion 5
  30. @@ -254,6 +256,21 @@
  31. #define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines
  32. #endif /* i386Architecture */
  33. +#ifdef AMD64Architecture
  34. +#warning here amd64 again
  35. +# define LinuxMachineDefines -D__amd64__
  36. +# define ServerOSDefines XFree86ServerOSDefines -DDDXTIME
  37. +# define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines -D_XSERVER64
  38. +#endif /* AMD64Architecture */
  39. +
  40. +#ifdef Ppc64Architecture
  41. +#warning here ppc64
  42. +# define DefaultCCOptions -mminimal-toc
  43. +# define LinuxMachineDefines -D__powerpc64__ -D__powerpc__
  44. +# define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET
  45. +# define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines -D_XSERVER64
  46. +#endif /* Ppc64Architecture */
  47. +
  48. #ifdef AlphaArchitecture
  49. #define OptimizedCDebugFlags -O2
  50. #define LinuxMachineDefines -D__alpha__
  51. @@ -323,6 +340,10 @@
  52. #define StandardDefines -Dlinux LinuxMachineDefines LinuxSourceDefines
  53. */
  54. +#ifndef LinuxMachineDefines
  55. +#error LinuxMachineDefines not defined
  56. +#endif
  57. +
  58. #define StandardDefines -Dlinux LinuxMachineDefines \
  59. LinuxSourceDefines -D_REENTRANT
  60. --- ./Xvnc/config/cf/Imake.cf.vanilla 2006-01-14 16:42:54.000000000 +0100
  61. +++ ./Xvnc/config/cf/Imake.cf 2006-01-14 16:52:12.000000000 +0100
  62. @@ -696,6 +697,13 @@
  63. # endif
  64. # undef __k6
  65. # endif /* __k6 */
  66. +# if defined(__amd64) || defined(__x86_64)
  67. +# undef __amd64
  68. +# undef __x86_64
  69. +# undef amd64
  70. +# undef i386
  71. +# define AMD64Architecture
  72. +# endif
  73. # ifdef __s390__
  74. # define s390Architecture
  75. # undef __s390__
  76. @@ -730,6 +739,12 @@
  77. # endif
  78. # undef __powerpc__
  79. # endif
  80. +# ifdef __powerpc64
  81. +# ifndef Ppc64Architecture
  82. +# define Ppc64Architecture
  83. +# endif
  84. +# undef __powerpc64__
  85. +# endif
  86. # ifdef sparc
  87. # define SparcArchitecture
  88. # undef sparc