Fontconfig version 2.7.3 - How to Download and Install on Mac OS X
Sunday the 22nd of November, 2009

    fontconfig  most recent diff


    version 2.7.3

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


      The fontconfig Portfile 58380 2009-09-28 00:14:59Z ryandesign macports.org $

      PortSystem 1.0
      PortGroup muniversal 1.0
      PortGroup archcheck 1.0

      Name: fontconfig
      Version: 2.7.3
      Category: graphics
      Maintainers: ryandesign
      license fontconfig
      Homepage: http://fontconfig.org/
      Platform: darwin
      use_parallel_build yes

      Description: An XML-based font configuration API for X Windows

      Long Description: Fontconfig is a library for configuring and customizing font access.

      Master Sites: ${homepage}release/

      Checksums: md5 747d2c691c66b563c8e8c1784ce8d014 sha1 bc84b883673a7f43f2849f06ec110c4eaccfb42c rmd160 2c349203592007b9cad439befccfc8fe05a977b1

      depends_lib port:libiconv port:expat port:freetype

      archcheck.files lib/libiconv.dylib lib/libexpat.dylib lib/libfreetype.dylib

      set add_fonts /usr/X11R6/lib/X11/fonts
      set docdir ${prefix}/share/doc/${name}-${version}

      configure.args --with-docdir=${prefix}/share/doc/${name}-${version}

      Patch Files: arch.patch

      # We put this into a pre-configure so it can be evaluated _after_ variants selection.
      pre-configure {
      configure.args-append --with-add-fonts=[join ${add_fonts} ,]
      }

      post-destroot {
      xinstall -d ${destroot}${docdir}
      xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README ${destroot}${docdir}
      }

      post-activate {
      # fc-cache can "fail" due to /Network/Library/Fonts being "down", so force succcess
      system "${prefix}/bin/fc-cache -frsv || true"
      system "${prefix}/bin/fc-cache -frv || true"
      }

      Variant: vera description {Install the Bitstream Vera font} {
      depends_build-append path:share/fonts/Vera.ttf:bitstream-vera

      post-destroot {
      xinstall -m 644 ${prefix}/share/doc/bitstream-vera/local.conf ${destroot}${prefix}/etc/fonts
      }
      }

      platform macosx {
      lappend add_fonts /Library/Fonts /Network/Library/Fonts /System/Library/Fonts ${prefix}/share/fonts
      }

      merger_arch_flag no
      merger_arch_compiler yes
      if { ${os.arch}=="i386" } {
      if { ${os.major} >= 10 } {
      set merger_configure_args(ppc) --with-arch=ppc
      set merger_configure_env(ppc) CC_FOR_BUILD=${configure.cc}
      }
      set merger_configure_args(ppc64) --with-arch=ppc64
      set merger_configure_env(ppc64) CC_FOR_BUILD=${configure.cc}
      } else {
      set merger_configure_args(i386) --with-arch=i386
      set merger_configure_args(x86_64) --with-arch=x86_64
      set merger_configure_env(i386) CC_FOR_BUILD=${configure.cc}
      set merger_configure_env(x86_64) CC_FOR_BUILD=${configure.cc}
      }

      livecheck.type regex
      livecheck.url ${homepage}release/?C=M&O=D
      livecheck.regex ${name}-(\\d+(?:\\.\\d+)*\\.(?:\\d|\[0-8\]\\d))\\.tar

    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/fontconfig
      % sudo port install fontconfig
      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 fontconfig
      ---> Verifying checksum for fontconfig
      ---> Extracting fontconfig
      ---> Configuring fontconfig
      ---> Building fontconfig with target all
      ---> Staging fontconfig into destroot
      ---> Installing fontconfig
    - 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 fontconfig with these commands:
      %  man fontconfig
      % apropos fontconfig
      % which fontconfig
      % locate fontconfig

     Where to find more information:

    Darwin Ports



    Lightbox this page.