Pango-devel version 1.25.6 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    pango-devel  most recent diff


    version 1.25.6

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


      The pango-devel Portfile 58519 2009-09-30 06:16:15Z ryandesign macports.org $

      PortSystem 1.0
      PortGroup muniversal 1.0

      Name: pango-devel
      conflicts pango
      set my_name pango
      Version: 1.25.6
      set branch [join [lrange [split ${version} .] 0 1] .]
      Category: x11
      Maintainers: ryandesign
      license LGPLv2
      Homepage: http://www.pango.org/
      Master Sites: gnome:sources/${my_name}/${branch}
      Platform: darwin
      distname ${my_name}-${version}
      dist_subdir ${my_name}
      use_bzip2 yes
      use_parallel_build yes

      Description: Framework for the layout and rendering of i18n text

      Long Description: The goal of the Pango project is to provide an open-source framework for the layout and rendering of internationalized text.

      Checksums: md5 f578a348fbe5f616d104b3a5ecbd2005 sha1 092a4650158bb8e022482f22f26190bb0c3309b8 rmd160 2cdfeb0d13e80f251babfef37e26e3c9203381de

      depends_extract port:pkgconfig

      depends_lib path:lib/pkgconfig/glib-2.0.pc:glib2 port:Xft2 path:lib/pkgconfig/cairo.pc:cairo

      Patch Files: patch-which.diff patch-ltmain.sh.diff

      configure.ccache no

      # Do not call gzip on man files as it interferes with the universal merger process.
      post-patch {
      reinplace "s|\$(MAKE) \$(AM_MAKEFLAGS) install-data-hook||" ${worksrcpath}/pango-view/Makefile.in
      }

      platform macosx {}
      Variant: quartz requires macosx {
      # Although this variant does nothing, pango will automatically build
      # itself differently depending on whether or not cairo is installed with
      # the quartz variant. Therefore this variant is necessary to be able to
      # distinguish whether an installed pango has quartz support or not.

      # pango 1.25.1 and up uses Core Text which is only available on 10.5+.
      pre-extract {
      if {${os.major} < 9} {
      ui_error "${name} ${version} +quartz requires Mac OS X 10.5 or greater."
      ui_error "Either don't use the +quartz variant or upgrade your Mac OS X."
      ui_error "Concerns about this should be addressed to the Pango mailing list:"
      ui_error "http://mail.gnome.org/mailman/listinfo/gtk-i18n-list"
      return -code error "incompatible Mac OS X version"
      }
      }
      }

      pre-extract {
      set glib_minimum_version 2.17.3
      set glib_installed_version [exec pkg-config glib-2.0 --modversion]
      if {[rpm-vercomp ${glib_installed_version} ${glib_minimum_version}] < 0} {
      ui_error "${name} ${version} requires glib2 ${glib_minimum_version} or later but you have glib2 ${glib_installed_version}."
      return -code error "incompatible glib2 version"
      }

      set cairo_minimum_version 1.7.4
      set cairo_installed_version [exec pkg-config cairo --modversion]
      if {[rpm-vercomp ${cairo_installed_version} ${cairo_minimum_version}] < 0} {
      ui_error "${name} ${version} requires cairo ${cairo_minimum_version} or later but you have cairo ${cairo_installed_version}."
      return -code error "incompatible cairo version"
      }

      set cairo_quartz_pc ${prefix}/lib/pkgconfig/cairo-quartz.pc
      if {[variant_isset quartz]} {
      if {![file exists ${cairo_quartz_pc}]} {
      ui_error "To install pango with the quartz variant, cairo must be installed with the quartz variant."
      return -code error "incompatible cairo installation"
      }
      } else {
      if {[file exists ${cairo_quartz_pc}]} {
      ui_error "To install pango without the quartz variant, cairo must be installed without the quartz variant."
      return -code error "incompatible cairo installation"
      }
      }

      set cairo_xlib_pc ${prefix}/lib/pkgconfig/cairo-xlib.pc
      if {[variant_isset no_x11]} {
      if {[file exists ${cairo_xlib_pc}]} {
      ui_error "To install pango with the no_x11 variant, cairo must be installed with the no_x11 variant."
      return -code error "incompatible cairo installation"
      }
      } else {
      if {![file exists ${cairo_xlib_pc}]} {
      ui_error "To install pango without the no_x11 variant, cairo must be installed without the no_x11 variant."
      return -code error "incompatible cairo installation"
      }
      }
      }

      if { ${os.arch}=="i386" } {
      set merger_configure_env(ppc) "NM='/usr/bin/nm -p'"
      set merger_configure_env(ppc64) "NM='/usr/bin/nm -p'"
      } else {
      set merger_configure_env(i386) "NM='/usr/bin/nm -p'"
      set merger_configure_env(x86_64) "NM='/usr/bin/nm -p'"
      }
      lappend merger_configure_env(ppc64) ac_cv_header_Carbon_Carbon_h=no
      lappend merger_configure_env(x86_64) ac_cv_header_Carbon_Carbon_h=no

      configure.cppflags-append -no-cpp-precomp

      configure.ldflags-append -no-undefined -bind_at_load

      configure.args --enable-static --x-include=${prefix}/include --x-lib=${prefix}/lib

      Variant: no_x11 {
      depends_lib-delete port:Xft2
      configure.args-append --without-x
      }

      post-destroot {
      if {[variant_isset no_x11]} {
      xinstall -d ${destroot}${prefix}/etc/pango
      }
      xinstall -m 0644 ${worksrcpath}/modules/pangorc ${destroot}${prefix}/etc/pango
      reinplace "s|\\.\\./modules/|${prefix}/etc/pango/|g" ${destroot}${prefix}/etc/pango/pangorc

      system "env LANG=C DYLD_LIBRARY_PATH=${destroot}${prefix}/lib ${destroot}${prefix}/bin/pango-querymodules ${destroot}${prefix}/lib/pango/1.6.0/modules/*.so >${destroot}${prefix}/etc/pango/pango.modules"
      reinplace s|${destroot}||g ${destroot}${prefix}/etc/pango/pango.modules

      set docdir ${prefix}/share/doc/${name}-${version}
      xinstall -d ${destroot}${docdir}
      xinstall -m 0644 -W ${worksrcpath} AUTHORS ChangeLog COPYING MAINTAINERS NEWS README THANKS ${destroot}${docdir}
      }

      test.run yes
      test.target check

      livecheck.type regex
      livecheck.url http://ftp.gnome.org/pub/GNOME/sources/${my_name}/${branch}/?C=M&O=D
      livecheck.regex ${my_name}-(\[0-9.\]+)\\.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/pango-devel
      % sudo port install pango-devel
      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 pango-devel
      ---> Verifying checksum for pango-devel
      ---> Extracting pango-devel
      ---> Configuring pango-devel
      ---> Building pango-devel with target all
      ---> Staging pango-devel into destroot
      ---> Installing pango-devel
    - 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 pango-devel with these commands:
      %  man pango-devel
      % apropos pango-devel
      % which pango-devel
      % locate pango-devel

     Where to find more information:

    Darwin Ports



    Lightbox this page.