# $Id: Portfile 47716 2009-03-04 13:25:16Z ryandesign@macports.org $ PortSystem 1.0 name pango-devel set my_name pango version 1.21.6 revision 3 set branch [join [lrange [split ${version} .] 0 1] .] categories x11 maintainers ryandesign homepage http://www.pango.org/ master_sites gnome:sources/${my_name}/${branch} platforms 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 db7b24c685d488dd9d06b66b42faed50 \ sha1 7efd4bf06a5a1111e4cfc42b8fcb5a668cab2bab \ rmd160 ae62dcd44d0c5374be27f6b5b806dfa8b9abc2c6 depends_build \ port:pkgconfig depends_lib \ path:lib/pkgconfig/glib-2.0.pc:glib2 \ port:Xft2 \ path:lib/pkgconfig/cairo.pc:cairo \ patchfiles \ patch-ltmain.sh.diff configure.ccache no platform macosx {} variant quartz requires macosx description {Add Quartz graphics interface} {} pre-configure { 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} { return -code error "pango ${version} requires glib ${glib_minimum_version} or later but you have glib ${glib_installed_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} { return -code error "pango ${version} requires cairo ${cairo_minimum_version} or later but you have cairo ${cairo_installed_version}." } set cairo_quartz_pc ${prefix}/lib/pkgconfig/cairo-quartz.pc if {[variant_isset quartz]} { if {![file exists ${cairo_quartz_pc}]} { ui_msg "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_msg "To install pango without the quartz variant, cairo must be installed without the quartz variant." return -code error "incompatible cairo installation" } } } configure.cppflags-append \ -no-cpp-precomp configure.ldflags-append \ -no-undefined \ -bind_at_load configure.args \ --enable-static \ --enable-cairo 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.check regex livecheck.url http://ftp.gnome.org/pub/GNOME/sources/${my_name}/${branch}/?C=M&O=D livecheck.regex ${my_name}-(\[0-9.\]+)\\.tar