Freetype version 2.3.9 - How to Download and Install on Mac OS X
Saturday the 21st of November, 2009

    freetype  most recent diff


    version 2.3.9

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


      The freetype Portfile 58379 2009-09-28 00:04:00Z ryandesign macports.org $

      PortSystem 1.0
      PortGroup muniversal 1.0
      PortGroup archcheck 1.0

      Name: freetype
      Version: 2.3.9
      Revision: 1
      Category: print graphics
      Maintainers: ryandesign
      license freetype/GPLv2
      Homepage: http://freetype.sourceforge.net/
      use_bzip2 yes
      Platform: darwin
      use_parallel_build yes

      Description: A software font engine

      Long Description: FreeType2 is a software font engine that is designed to be small, efficient, highly customizable and portable while capable of producing high-quality output (glyph images). It can be used in graphics libraries, display servers, font conversion tools, text image generation tools, and many other products as well.

      Master Sites: http://download.savannah.gnu.org/releases/freetype/ sourceforge

      set docdistfile ${name}-doc-${version}

      distfiles-append [suffix ${docdistfile}]

      Checksums: [suffix ${distname}] md5 d76233108aca9c9606cdbd341562ad9a sha1 db08969cb5053879ff9e973fe6dd2c52c7ea2d4e rmd160 c0351c2a3f43e64d26d2a964b1131a3dbf2fa162 [suffix ${docdistfile}] md5 ddcb766f7c5abab0e7061dcf32a0268f sha1 ced46581a39f449393bc267f24d0aac08c62559c rmd160 4624133b070791ff8dd92cfffb1bb1115393d08d

      Patch Files: patch-detect.mk.diff patch-modules.cfg.diff

      depends_lib port:zlib

      archcheck.files lib/libz.dylib

      # See http://trac.macports.org/ticket/18232
      configure.cppflags-delete -I${prefix}/include
      configure.cppflags-append -isystem${prefix}/include

      # Respect build_arch
      if {![variant_isset universal]} {
      configure.ldflags-append ${configure.cc_archflags}
      }

      platform macosx {
      if {${os.major} < 9} {
      configure.args-append --with-old-mac-fonts
      }
      }

      set docdir ${prefix}/share/doc/${name}-${version}

      post-destroot {
      xinstall -m 0755 -d ${destroot}${docdir}

      xinstall -m 0644 -W ${worksrcpath} ChangeLog README ${destroot}${docdir}
      xinstall -m 0644 -W ${worksrcpath}/docs CHANGES FTL.TXT GPL.TXT LICENSE.TXT PATENTS PROBLEMS TODO formats.txt raster.txt ${destroot}${docdir}

      xinstall -m 0755 -d ${destroot}${docdir}/html
      xinstall -m 0644 -W ${worksrcpath}/docs ft2faq.html ${destroot}${docdir}/html
      foreach dir {design glyphs reference tutorial} {
      copy ${worksrcpath}/docs/${dir} ${destroot}${docdir}/html
      }
      }

      Variant: bytecode description {Include patented TrueType bytecode interpreter} {
      pre-extract {
      ui_warn "The +bytecode variant causes FreeType's TrueType driver to be
      compiled with a bytecode interpreter that produces better-looking output
      than the default auto-hinting method. However, the methods used by the
      bytecode interpreter are patented by Apple Inc. Only use this variant if
      you have purchased a license from Apple or live in a country where Apple's
      patents to this technology do not apply. For more information, please read:
      http://www.freetype.org/patents.html"
      }
      patchfiles-append patch-ftoption.h

      post-destroot {
      xinstall -m 0644 -W ${worksrcpath}/docs TRUETYPE ${destroot}${docdir}
      }
      }

      if { ${os.arch}=="i386" } {
      if { ${os.major}>=10 } {
      set merger_configure_env(ppc) CC_BUILD=${configure.cc}
      }
      set merger_configure_env(ppc64) CC_BUILD=${configure.cc}
      } else {
      set merger_configure_env(i386) CC_BUILD=${configure.cc}
      set merger_configure_env(x86_64) CC_BUILD=${configure.cc}
      }

      livecheck.type sourceforge
      livecheck.distname ${name}[strsed ${version} {s/\..*//}]

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.