Update of /cvsroot/fink/dists/10.2/unstable/main/finkinfo/x11-system
In directory sc8-pr-cvs1:/tmp/cvs-serv20016

Added Files:
        system-xfree86-4.2-9.info 
Removed Files:
        system-xfree86-4.2-8.info 
Log Message:
understands apple x11


--- NEW FILE: system-xfree86-4.2-9.info ---
Package: system-xfree86
Version: 4.2
Revision: 9
Provides: x11, rman, libgl, libgl-shlibs
Conflicts: x11, system-libgl
Replaces: system-libgl
Type: bundle
Shlibs: <<
   /usr/X11R6/lib/libdps.1.dylib 1.0.0 xfree86-base-shlibs (>= 4.2.1.1-1) | 
system-free86 (>= 4.2-1)
   /usr/X11R6/lib/libdpstk.1.dylib 1.0.0 xfree86-base-shlibs (>= 4.2.1.1-1) | 
system-free86 (>= 4.2-1)
   /usr/X11R6/lib/libfreetype.6.dylib 6.2.0 xfree86-base-shlibs (>= 4.2.1.1-1) | 
system-free86 (>= 4.2-1)
   /usr/X11R6/lib/libICE.6.dylib 6.3.0 xfree86-base-shlibs (>= 4.2.1.1-1) | 
system-free86 (>= 4.2-1)
   /usr/X11R6/lib/liboldX.6.dylib 6.0.0 xfree86-base-shlibs (>= 4.2.1.1-1) | 
system-free86 (>= 4.2-1)
   /usr/X11R6/lib/libpsres.1.dylib 1.0.0 xfree86-base-shlibs (>= 4.2.1.1-1) | 
system-free86 (>= 4.2-1)
   /usr/X11R6/lib/libSM.6.dylib 6.0.0 xfree86-base-shlibs (>= 4.2.1.1-1) | 
system-free86 (>= 4.2-1)
   /usr/X11R6/lib/libX11.6.dylib 6.2.0 xfree86-base-shlibs (>= 4.2.1.1-1) | 
system-free86 (>= 4.2-1)
   /usr/X11R6/lib/libXaw.6.dylib 6.1.0 xfree86-base-shlibs (>= 4.2.1.1-1) | 
system-free86 (>= 4.2-1)
   /usr/X11R6/lib/libXaw.7.dylib 7.0.0 xfree86-base-shlibs (>= 4.2.1.1-1) | 
system-free86 (>= 4.2-1)
   /usr/X11R6/lib/libXext.6.dylib 6.4.0 xfree86-base-shlibs (>= 4.2.1.1-1) | 
system-free86 (>= 4.2-1)
   /usr/X11R6/lib/libXfont.1.dylib 1.4.0 xfree86-base-shlibs (>= 4.2.1.1-1) | 
system-free86 (>= 4.2-1)
   /usr/X11R6/lib/libXft.1.dylib 1.1.0 xfree86-base-shlibs (>= 4.2.1.1-1) | 
system-free86 (>= 4.2-1)
   /usr/X11R6/lib/libXi.6.dylib 6.0.0 xfree86-base-shlibs (>= 4.2.1.1-1) | 
system-free86 (>= 4.2-1)
   /usr/X11R6/lib/libXmu.6.dylib 6.2.0 xfree86-base-shlibs (>= 4.2.1.1-1) | 
system-free86 (>= 4.2-1)
   /usr/X11R6/lib/libXmuu.1.dylib 1.0.0 xfree86-base-shlibs (>= 4.2.1.1-1) | 
system-free86 (>= 4.2-1)
   /usr/X11R6/lib/libXp.6.dylib 6.2.0 xfree86-base-shlibs (>= 4.2.1.1-1) | 
system-free86 (>= 4.2-1)
   /usr/X11R6/lib/libXpm.4.dylib 4.11.0 xfree86-base-shlibs (>= 4.2.1.1-1) | 
system-free86 (>= 4.2-1)
   /usr/X11R6/lib/libXrandr.1.dylib 1.0.0 xfree86-base-shlibs (>= 4.2.1.1-1) | 
system-free86 (>= 4.2-1)
   /usr/X11R6/lib/libXrender.1.dylib 1.1.0 xfree86-base-shlibs (>= 4.2.1.1-1) | 
system-free86 (>= 4.2-1)
   /usr/X11R6/lib/libXt.6.dylib 6.0.0 xfree86-base-shlibs (>= 4.2.1.1-1) | 
system-free86 (>= 4.2-1)
   /usr/X11R6/lib/libXTrap.6.dylib 6.4.0 xfree86-base-shlibs (>= 4.2.1.1-1) | 
system-free86 (>= 4.2-1)
   /usr/X11R6/lib/libXtst.6.dylib 6.1.0 xfree86-base-shlibs (>= 4.2.1.1-1) | 
system-free86 (>= 4.2-1)
  /usr/X11R6/lib/libGL.1.dylib 1.2.0 xfree86-rootless-shlibs (>= 4.2.1.1-1) | 
system-free86 (>= 4.2-1)
  /usr/X11R6/lib/libGLU.1.dylib 1.3.0 xfree86-rootless-shlibs (>= 4.2.1.1-1) | 
system-free86 (>= 4.2-1)
<<
Description: Placeholder package for manually installed XFree86
DescDetail: <<
Install this package if you have XFree86 4.2.x (or equivalent) installed
manually.  It will check whether the installation is okay and provide
the 'x11' virtual package.

For a compatible X11 package, try XonX (from the XFree86 Project) at
http://sourceforge.net/project/showfiles.php?group_id=18034 or Apple's
X11 at http://www.apple.com/macosx/x11/ .
<<
#
PreInstScript: <<

echo ""

##############################################################################
# Phase 1: Interrogate the system for X11-like thingies
##############################################################################

# Apple X11 -- http://www.apple.com/macosx/x11/

LIBAPPLE="false"
XPINC="false"
LIBTENON="false"

if [ -e /usr/lib/libXplugin.dylib ]; then
  echo "- found apple library"
  LIBAPPLE="true"
elif [ -e /usr/X11R6/lib/libapplexp.1.dylib ]; then
  echo "- found old apple library"
  echo ""
  echo "Previous Apple X11 releases had a number of bugs"
  echo "that make compiling some Fink packages"
  echo "problematic."
  echo ""
  echo "Please install the Apple X11 beta 3 or later,"
  echo "and then install system-xfree86 again."
  echo ""
  exit 1
fi
if [ -f /usr/X11R6/include/xp/x-plugin.h ]; then
  echo "- found X plugin includes"
  XPINC="true"
fi
if [ -d /usr/X11R6/lib/tenon ]; then
  echo "- found lib/tenon"
  LIBTENON="true"
fi
mcount=0
for file in bin/xterm bin/xrdb bin/rman \
            lib/libX11.dylib lib/libXpm.dylib lib/libXaw.dylib \
            include/X11/Xlib.h ; do
  if [ ! -f "/usr/X11R6/$file" ]; then
    mcount=$(($mcount+1))
    echo "- missing /usr/X11R6/$file"
  else
    echo "- found /usr/X11R6/$file"
  fi
done
if [ -x /usr/X11R6/bin/XDarwin ]; then
  XF_VERSION=`/usr/X11R6/bin/XDarwin -version 2>&1 | grep "XFree86 Version" | awk '{ 
print $3 }'`
  XF_MAJOR=`echo $XF_VERSION | cut -d. -f1`
  XF_MINOR=`echo $XF_VERSION | cut -d. -f2`
fi

##############################################################################
# Phase 2: 
##############################################################################

##############################################################################
# Phase 3: Profit!  Err... I mean, make sure this X11 is OK.   =)
##############################################################################

if [ "$LIBAPPLE" = "true" ] || [ "$XPINC" = "true" ]; then
  GOODAPPLE="true"
  if [ "$LIBAPPLE" = "false" ] || [ ! -e /usr/X11R6/bin/Xquartz ]; then
    echo "- Apple X11 userland is missing"
    GOODAPPLE="false"
  elif [ "$XPINC" = "false" ] || [ ! -e /usr/X11R6/include/X11/X.h ]; then
    echo "- Apple X11 SDK is missing"
    GOODAPPLE="false"
  fi
  if [ "$GOODAPPLE" = "false" ]; then
    echo ""
    echo "** ERROR! **"
    echo "It appears you have a partially-installed version of the Apple X11"
    echo "release.  To use Apple's X11 with Fink, you must download both the"
    echo "main X11 installer, as well as the SDK (there are actually 2 separate"
    echo "downloads for the Apple X11 release).  Please go to"
    echo "http://www.apple.com/macosx/x11/ and download and install the missing"
    echo "files, and re-attempt your install of system-xfree86."
    echo ""
    exit 1
  fi

fi

# Tenon XTools
if [ "$LIBTENON" = "true" ]; then
  echo ""
  echo "It looks like you have Xtools installed, not XFree86.  XTools was never"
  echo "properly updated for MacOSX 10.2 and will likely have issues.  It is"
  echo "suggested that you remove XTools XFree86 and download the XonX or"
  echo "Apple X11 releases instead."
  echo ""
  echo "It is possible that you have installed an XonX or Apple X11 release over"
  echo "your Xtools release.  If that is the case, delete the directory"
  echo "'/usr/X11R6/lib/tenon' and try this install again."
  echo ""
  echo "Press a key to continue."
  read -n1 -s
  echo ""
  exit 1
fi

if [ "$mcount" -ge 1 ]; then
  echo ""
  echo "Your XFree86 installation is missing or incomplete.  Please make sure you have"
  echo "an XFree86 release installed and retry the installation of the system-xfree86"
  echo "package."
  echo ""
  echo "The following XFree86 software is compatible with system-xfree86:"
  echo ""
  echo "  XonX (from the XFree86 Project):"
  echo "    http://sourceforge.net/project/showfiles.php?group_id=18034";
  echo ""
  echo "  Apple X11:"
  echo "    http://www.apple.com/macosx/x11/";
  echo ""
  echo "Press a key to continue."
  read -n1 -s
  echo ""
  exit 1
fi

if [ "$GOODAPPLE" = "true" ]; then
  echo ""
  if [ `nm /usr/X11R6/lib/libGL.1.2.dylib | grep -c 'U _glGetColorTableEXT'` = "1" ]; 
then
    echo "- The Apple X11 release versioned 0.2.x has a minor"
    echo "  bug in libGL.1.2.dylib that can complicate some"
    echo "  OpenGL usage.  I am going to attempt to correct it"
    echo "  automatically for you."
    echo ""
    echo -e "- running nmedit on libGL.1.2.dylib... \c"

    echo "_glGetColorTableEXT"             > /tmp/libGL-broken-symbols.txt
    echo "_glGetColorTableParameterfvEXT" >> /tmp/libGL-broken-symbols.txt
    echo "_glGetColorTableParameterivEXT" >> /tmp/libGL-broken-symbols.txt

    if ! nmedit -R /tmp/libGL-broken-symbols.txt /usr/X11R6/lib/libGL.1.2.dylib 
>/tmp/nmedit-output.txt 2>&1; then
      echo "failed!"
      echo "  (Most things should still work, but your libGL may still"
      echo "  have build problems in limited cases.)"
    else
      echo "done"
    fi
  fi
  echo ""
  echo "Valid Apple X11 detected.  Thank you, have a nice day."
  echo ""
  exit 0
else
  if [ -z "$XF_VERSION" ] || [ -z "$XF_MAJOR" ] || [ -z "$XF_MINOR" ]; then

    echo "An error occurred trying to find your XFree86 installation's"
    echo "version.  This really shouldn't happen, so I'm bailing.  :("
    echo ""
    echo "Press a key to continue."
    read -n1 -s
    echo ""
    exit 1
  else
    if [ "$XF_MAJOR" != "4" ] || [ "$XF_MINOR" -lt 2 ]; then
      echo "This package requires XFree86 version 4.2 or equivalent, but your have"
      echo "version $XF_VERSION installed!  Please upgrade your XFree86 installation"
      echo "and try again."
      echo ""
      echo "Press a key to continue."
      read -n1 -s
      echo ""
      exit 1
    fi
  fi
fi

echo "Valid XFree86 installation detected."
echo ""

# check imake config files for 10.1 flags
if grep 'undefined suppress' /usr/X11R6/lib/X11/config/darwinLib.rules >/dev/null 
2>&1; then
  if ! grep 'flat_namespace' /usr/X11R6/lib/X11/config/darwinLib.rules >/dev/null 
2>&1; then
    echo "Adding Mac OS X 10.1 compatibility option to imake configuration file"
    echo "/usr/X11R6/lib/X11/config/darwinLib.rules ..."
    sed 's/-undefined suppress/-flat_namespace -undefined suppress/g' 
</usr/X11R6/lib/X11/config/darwinLib.rules 
>/usr/X11R6/lib/X11/config/darwinLib.rules.tmp
    mv -f /usr/X11R6/lib/X11/config/darwinLib.rules.tmp 
/usr/X11R6/lib/X11/config/darwinLib.rules
    echo
  fi
fi

<<
Maintainer: Benjamin Reed <[EMAIL PROTECTED]>

--- system-xfree86-4.2-8.info DELETED ---




-------------------------------------------------------
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
_______________________________________________
Fink-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to