# $Id$ PortSystem 1.0 PortGroup muniversal 1.0 PortGroup archcheck 1.0 name freetype version 2.3.11 revision 1 categories print graphics maintainers ryandesign license freetype/GPLv2 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 \ http://download.savannah.gnu.org/releases/freetype/ \ sourceforge set docdistfile \ ${name}-doc-${version} distfiles-append \ [suffix ${docdistfile}] checksums \ [suffix ${distname}] \ md5 519c7cbf5cbd72ffa822c66844d3114c \ sha1 693e1b4e423557975c2b2aca63559bc592533a0e \ rmd160 ac69ed97aa662bc1dfb25422e64fc2afce1f863d \ [suffix ${docdistfile}] \ md5 c9d75b659382aef80a8f86efcde08629 \ sha1 c0c63423d2316933718d791b5282fc8ba9aa4f58 \ rmd160 c57fa7ba7a9c3744d7825eb7613507f7cf89d07d patchfiles \ patch-detect.mk.diff \ patch-src_base_ftrfork.c.diff \ patch-modules.cfg.diff depends_lib \ port:zlib archcheck.files lib/libz.dylib # See http://trac.macports.org/ticket/18232 configure.cppflags-delete -I${prefix}/include configure.cppflags-append -isystem${prefix}/include # Respect build_arch if {![variant_isset universal]} { configure.ldflags-append ${configure.cc_archflags} } platform macosx { if {${os.major} < 9} { configure.args-append \ --with-old-mac-fonts } } set docdir \ ${prefix}/share/doc/${name}-${version} 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 \ GPL.TXT \ LICENSE.TXT \ PATENTS \ 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 } } variant bytecode description {Include patented TrueType bytecode interpreter} { pre-extract { ui_warn "The +bytecode variant causes FreeType's TrueType driver to be compiled with a bytecode interpreter that produces better-looking output than the default auto-hinting method. However, the methods used by the bytecode interpreter are patented by Apple Inc. Only use this variant if you have purchased a license from Apple or live in a country where Apple's patents to this technology do not apply. For more information, please read: http://www.freetype.org/patents.html" } patchfiles-append \ patch-ftoption.h post-destroot { xinstall -m 0644 -W ${worksrcpath}/docs TRUETYPE ${destroot}${docdir} } } 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 regex livecheck.url ${homepage}index2.html livecheck.regex {FreeType ([0-9.]+) has been released}