# -*- 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.11.1 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 9d0a242ec05737f5dba3949ffe095f3c100217c7 \ sha256 dc62447533bca844463a3c3fd4083b57c90f18a70506e7a9f4936b5a1e516a99 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 # *** No scandir function available. # https://bugs.freedesktop.org/show_bug.cgi?id=77034 # Can be removed when ccache 3.2 is released with proper clang compatibility if {[string match *clang* ${configure.compiler}]} { configure.ccache no } 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 -sv || true" system "${prefix}/bin/fc-cache -v || 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