# -*- 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.12.1 revision 1 categories graphics maintainers ryandesign license fontconfig 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. homepage https://www.freedesktop.org/wiki/Software/fontconfig/ master_sites https://www.freedesktop.org/software/fontconfig/release/ use_bzip2 yes checksums rmd160 66907dbb317309bcb5013ea45c53dbf5050e6376 \ sha256 b449a3e10c47e1d1c7a6ec6e2016cca73d3bd68fbbd4f0ae5cc6b573f7d6c7f3 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 patchfiles-append patch-src-fcweight.c.diff patchfiles-append patch-src-fccache.c.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 -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