# -*- 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: Portfile 152634 2016-09-14 01:02:26Z ryandesign@macports.org $ PortSystem 1.0 PortGroup muniversal 1.0 name freetype version 2.7 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 ${distname}${extract.suffix}:source \ ${docdistname}${extract.suffix}:docs checksums ${distname}${extract.suffix} \ rmd160 5a175dceeb4454f87d79fcbd5719f3fed837abeb \ sha256 d6a451f5b754857d2aa3964fd4473f8bc5c64e879b24516d780fb26bec7f7d48 \ ${docdistname}${extract.suffix} \ rmd160 bc08e29fcaf78126b6d497630e365063427ecf00 \ sha256 8440b7e576ccbe840051c162419a39083627a4de0c7d15fd20220736c03aac66 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-replace -I${prefix}/include -isystem${prefix}/include configure.args --with-bzip2 \ --with-png \ --with-zlib \ --without-harfbuzz \ ac_cv_prog_AWK=/usr/bin/awk 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} eq "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.]+)/}