# -*- 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 freetype version 2.5.0 revision 1 categories print graphics maintainers ryandesign license {FreeType GPL-2} homepage http://freetype.sourceforge.net/ use_bzip2 yes platforms darwin use_parallel_build yes description \ A software font engine long_description \ FreeType2 is a software font engine that is designed to \ be small, efficient, highly customizable and portable while \ capable of producing high-quality output (glyph images). \ It can be used in graphics libraries, display servers, font \ conversion tools, text image generation tools, and many \ other products as well. master_sites sourceforge:project/freetype/freetype2/${version}:source \ sourceforge:project/freetype/freetype-docs/${version}:docs \ http://download.savannah.gnu.org/releases/freetype/ set docdistname ${name}-doc-${version} distfiles [suffix ${distname}]:source \ [suffix ${docdistname}]:docs checksums [suffix ${distname}] \ rmd160 0f3d3aeaca0cc7605c3dab39ed417e03b139627a \ sha256 b8c75164f9073809797da19b81fa89d2c0ea507d8913f3b70c744f501880d7de \ [suffix ${docdistname}] \ rmd160 2780aa9937fc34a37d44813101a5b348aa648278 \ sha256 8c1af657e8845830278abd019c49288e6b0f94409a6d4506c73a29f0fc062a4d patchfiles \ patch-src_base_ftrfork.c.diff \ patch-modules.cfg.diff depends_lib port:bzip2 \ port:libpng \ port:zlib # See http://trac.macports.org/ticket/18232 configure.cppflags-delete -I${prefix}/include configure.cppflags-append -isystem${prefix}/include configure.universal_args-delete --disable-dependency-tracking platform macosx { if {${os.major} < 9} { configure.args-append \ --with-old-mac-fonts } } set docdir ${prefix}/share/doc/${name} post-destroot { xinstall -m 0755 -d ${destroot}${docdir} xinstall -m 0644 -W ${worksrcpath} \ ChangeLog \ README \ ${destroot}${docdir} xinstall -m 0644 -W ${worksrcpath}/docs \ CHANGES \ FTL.TXT \ GPLv2.TXT \ LICENSE.TXT \ PROBLEMS \ TODO \ formats.txt \ raster.txt \ ${destroot}${docdir} xinstall -m 0755 -d ${destroot}${docdir}/html xinstall -m 0644 -W ${worksrcpath}/docs ft2faq.html ${destroot}${docdir}/html foreach dir {design glyphs reference tutorial} { copy ${worksrcpath}/docs/${dir} ${destroot}${docdir}/html } } if { ${os.arch}=="i386" } { if { ${os.major}>=10 } { set merger_configure_env(ppc) CC_BUILD=${configure.cc} } set merger_configure_env(ppc64) CC_BUILD=${configure.cc} } else { set merger_configure_env(i386) CC_BUILD=${configure.cc} set merger_configure_env(x86_64) CC_BUILD=${configure.cc} } livecheck.type sourceforge livecheck.regex {/freetype2/([0-9.]+)/}