# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 PortGroup muniversal 1.0 name fontconfig version 2.10.93 categories graphics maintainers ryandesign license fontconfig homepage http://fontconfig.org/ platforms 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 http://www.freedesktop.org/software/fontconfig/release/ use_bzip2 yes checksums rmd160 0427185e941f534c3e40dd3ae4abdd2ab72fac20 \ sha256 ea901f278848829ed9937d76fb0ce63ad362d7d5b9e75aa6a6b78bfef42e529c depends_build port:pkgconfig depends_lib port:libiconv \ port:expat \ port:freetype if {${os.platform} eq "darwin" && ${os.major} < 9} { set add_fonts /usr/X11R6/lib/X11/fonts } else { set add_fonts /usr/X11/lib/X11/fonts } lappend add_fonts ${prefix}/share/fonts set docdir ${prefix}/share/doc/${name} patchfiles patch-docbook-4.2.diff configure.args --disable-silent-rules HASDOCBOOK=no # We put this into a pre-configure block so it can be evaluated _after_ platform 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 unavailable, so force success. system "${prefix}/bin/fc-cache -frsv || true" system "${prefix}/bin/fc-cache -frv || true" } platform macosx { lappend add_fonts /Library/Fonts \ /Network/Library/Fonts \ /System/Library/Fonts } merger_arch_flag no merger_arch_compiler yes if {${os.arch} eq "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 [lindex ${master_sites} 0] livecheck.regex ${name}-(\\d+(?:\\.\\d+)*\\.(?:\\d|\[0-8\]\\d))\\.tar # temporary livecheck override while we're on an unusual version number livecheck.regex ${name}-(\\d+(?:\\.\\d+)+)\\.tar