Xfree86 version 4.7.0 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    xfree86  most recent diff


    version 4.7.0

      View the most recent changes for the xfree86 port at: xfree86.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for xfree86.
      The raw portfile for xfree86 4.7.0 is located here:
      http://xfree86.darwinports.com/dports/x11/XFree86/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/xfree86


      The xfree86 Portfile 57375 2009-09-10 08:16:41Z ryandesign macports.org $

      PortSystem 1.0

      Name: XFree86
      Version: 4.7.0
      Category: x11
      Maintainers: nomaintainer
      Homepage: http://www.xfree86.org/

      Description: X11R6 windowing system
      Long Description: The XFree86 project's X window system implementation

      Platform: darwin freebsd
      Master Sites: xfree:${version}/source/

      distfiles ${distname}-src-1.tgz ${distname}-src-2.tgz ${distname}-src-3.tgz ${distname}-src-4.tgz ${distname}-src-5.tgz
      Checksums: ${distname}-src-1.tgz md5 e452e53240d16091abdc4f4bd2967ebd ${distname}-src-2.tgz md5 db68bab296cff797c1ae399f683905f2 ${distname}-src-3.tgz md5 4787c740ee8ae61a294f488606ced230 ${distname}-src-4.tgz md5 e622168021c7e8ca60928fbb9febdae5 ${distname}-src-5.tgz md5 05a3f3ce703df2fd24112cb8e9d86f73

      Patch Files: patch-freetype.h patch-glxcmds.c patch-Xtranssock.c.diff patch-decompress.c.diff
      post-patch {
      set hostfd [open "${worksrcpath}/config/cf/host.def" a+]
      puts $hostfd "#define ProjectRoot ${prefix}"
      puts $hostfd "#define NothingOutsideProjectRoot YES"
      puts $hostfd "#define EtcX11Directory \"${prefix}/etc/X11\""
      puts $hostfd "#define StandardIncludes \"-I${workpath}/include\""
      puts $hostfd "#define FontconfigFontsConfDir \"${prefix}/etc/fonts\""
      close $hostfd
      }

      prefix /usr/X11R6
      worksrcdir xc

      use_configure no

      build.target World
      destroot.target install install.man
      destroot.violate_mtree yes

      platform darwin {

      patchfiles-append patch-XTerm.ad
      post-patch {
      file mkdir "${workpath}/include"
      file link -symbolic "${workpath}/include/security" "/usr/include/pam"
      }
      }


      platform puredarwin {

      post-patch {
      set hostfd [open "${worksrcpath}/config/cf/host.def" a+]
      puts $hostfd "#define DarwinQuartzSupport NO"
      puts $hostfd "#define BuildGlxExt YES"
      puts $hostfd "#define BuildGLXLibrary YES"
      close $hostfd
      }
      }

      platform macosx {

      # Should also check for cookie crumbs in the keyboard
      pre-fetch {
      if { [file exists ${prefix}/bin/Xquartz] } {
      if { ![file exists ${prefix}/include/X11/X.h] } {
      return -code error "

      You have an Apple X11 installation already.
      MacPorts will not overwrite it.

      If you wish to use Apple X11,
      install the X11SDK included with Xcode tools.

      If you really want to use XFree86 instead,
      please move it aside first :

      sudo mv $prefix ${prefix}.apple
      "
      } else {
      return -code error "

      You have an Apple X11 installation already.
      MacPorts will not overwrite it.

      If you really want to use XFree86 instead,
      please move it aside first :

      sudo mv $prefix ${prefix}.apple
      "
      }
      } elseif { [file exists ${prefix}/include/X11/X.h] } {
      return -code error "

      You have an Apple X11SDK installation already.
      MacPorts will not overwrite it.

      If you wish to use Apple X11,
      install it from your Mac OS X install disc.

      If you really want to use XFree86 instead,
      please move it aside first :

      sudo mv $prefix ${prefix}.apple
      "
      }
      }

      post-destroot {
      xinstall -d ${destroot}/Applications/MacPorts
      ln -s ${prefix}/bin/XDarwin.app ${destroot}/Applications/MacPorts
      }
      }

      # No attempt has yet been made to allow XFree86 to build universal. Feel free
      # to attempt. The default universal variant is merely being disabled here
      # because it does not function with ports that do not use configure, and
      # leaving it enabled prevents the universal installation of any other ports
      # that depend on XFree86, even if they would otherwise succeed. See #12137.
      universal_variant no
      # Disable livecheck
      livecheck.type none

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/xfree86
      % sudo port install xfree86
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching xfree86
      ---> Verifying checksum for xfree86
      ---> Extracting xfree86
      ---> Configuring xfree86
      ---> Building xfree86 with target all
      ---> Staging xfree86 into destroot
      ---> Installing xfree86
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using xfree86 with these commands:
      %  man xfree86
      % apropos xfree86
      % which xfree86
      % locate xfree86

     Where to find more information:

    Darwin Ports



    Lightbox this page.