Update of /cvsroot/fink/dists/10.4/unstable/main/finkinfo/devel
In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv13094

Modified Files:
        xmkmf.info 
Added Files:
        xmkmf.patch 
Log Message:
make it work on x86_64 too


--- NEW FILE: xmkmf.patch ---
diff -ruN xorg-cf-files-1.0.2/Imake.cf xorg-cf-files-1.0.2-patched/Imake.cf
--- xorg-cf-files-1.0.2/Imake.cf        2005-11-07 22:33:24.000000000 -0800
+++ xorg-cf-files-1.0.2-patched/Imake.cf        2009-04-07 13:48:13.000000000 
-0700
@@ -33,6 +33,9 @@
 #  define i386DarwinArchitecture
 #  undef __i386__
 # endif
+# ifdef __x86_64__
+#  define x86_64DarwinArchitecture
+# endif
 #endif
 
 #if defined(clipper) || defined(__clipper__)
diff -ruN xorg-cf-files-1.0.2/darwin.cf xorg-cf-files-1.0.2-patched/darwin.cf
--- xorg-cf-files-1.0.2/darwin.cf       2005-03-31 17:22:07.000000000 -0800
+++ xorg-cf-files-1.0.2-patched/darwin.cf       2009-04-07 13:49:24.000000000 
-0700
@@ -230,6 +230,16 @@
 # define ByteOrder              X_LITTLE_ENDIAN
 #endif /* i386DarwinArchitecture */
 
+#ifdef x86_64DarwinArchitecture
+# define DarwinMachineDefines   -D__x86_64__
+# if HasGcc3
+#  define OptimizedCDebugFlags  -Os
+# else
+#  define OptimizedCDebugFlags  -O2 -fno-strength-reduce
+# endif
+# define ByteOrder              X_LITTLE_ENDIAN
+#endif /* x86_64DarwinArchitecture */
+
 #if OSMajorVersion < 7
 # define DarwinLocaleDefines    -DX_LOCALE
 #else

Index: xmkmf.info
===================================================================
RCS file: /cvsroot/fink/dists/10.4/unstable/main/finkinfo/devel/xmkmf.info,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- xmkmf.info  12 Jan 2009 03:41:05 -0000      1.1
+++ xmkmf.info  7 Apr 2009 22:45:49 -0000       1.2
@@ -10,8 +10,15 @@
 Source2: mirror:sourceforge:fink/xorg-cf-files-%v.tar.bz2
 Source-MD5:  02fea5a02ba2857c7d81820c8e8b8e6f
 Source2-MD5: 5f62dd5545b782c74f6e4e70d0e6552c 
+PatchFile: %n.patch
+PatchFile-MD5: 3b545f4c727b37e41a8e861e42f65cd4
 PatchScript: <<
+#! /bin/sh -ev
   perl -pi -e 's|/usr/local|/usr/X11|' ../xorg-cf-files-%v/site.def
+  if [ "%m" == "x86_64" ] ; then
+    cd ..
+    patch -p0 < %{PatchFile}
+  fi
 <<
 ConfigureParams: --mandir=%p/share/man
 CompileScript: <<


------------------------------------------------------------------------------
This SF.net email is sponsored by:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Fink-commits mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to