xmkmf stable port information

Package: xmkmf
Version: 1.0.2
Revision: 1002
Distribution: 10.5, 10.6
Description: X11 legacy build tools
License: BSD
Maintainer: Dave Morrison
BuildDepends: pkgconfig, fink (>= 0.24.12)
Source: mirror:sourceforge:fink/imake-%v.tar.bz2
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
<<
NoSetMAKEFLAGS: true
SetMAKEFLAGS: -j1
ConfigureParams: --mandir=%p/share/man
CompileScript: <<
#!/bin/sh -ev
./configure %c
make
cd ../xorg-cf-files-%v
./configure %c
perl -pi -e 's|%p|/usr/X11|' site.def
<<
InstallScript: <<
#!/bin/sh -ev
make install DESTDIR=%d
cd ../xorg-cf-files-%v
make install DESTDIR=%d
mkdir %i/lib/%n
mv %i/bin %i/lib/%n
<<
DocFiles: COPYING ChangeLog README
Homepage: http://xorg.freedesktop.org/
DescDetail: <<
Under 10.5, this package provides the xmkmf script and the imake executable
and their supporting config files that are no longer supplied with the
X11R7 release from x.org.

Under 10.4, this package simply gives symlinks to the appropriate files in
/usr/X11R6 (so that .info files which work in both 10.4 and 10.5 can easily
be constructed).

Thanks to Martin Costabel and Benjamin Reed for earlier versions.
<<
DescUsage: <<
In order to use xmkmf and imake to compile legacy packages (under 10.4
or 10.5), one should have a BuildDepends on the present package, and supply
export PATH=%p/lib/xmkmf/bin:$PATH
export IMAKEINCLUDE=-I%p/lib/X11/config
in the CompileScript and InstallScript of the packages.

Failing to do this runs the risk that some users may not have xmkmf and/or
imake (or the necessary config files) available at build time.
<<
DescPackaging: <<
The revision number of the 10.5 version is kept higher than that of the 10.4
version so that users who are upgrading from 10.4 to 10.5 will have this
package replaced by the correct, new version.
<<

xmkmf stable port .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

xmkmf _unstable_ port .patch