# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 name fontforge version 20090923 revision 1 set docversion 20090914 set ftversion 2.3.11 categories graphics fonts platforms darwin maintainers nomaintainer description Outline and bitmap font editor/converter for many formats long_description \ FontForge allows you to edit outline and bitmap fonts. You may create \ new ones or modify old ones. It is also a format converter and can \ interconvert between PostScript (ascii & binary Type1, some Type3, \ some Type0), TrueType, OpenType (Type2), CID, SVG. Previously known as \ pfaedit. homepage http://fontforge.sourceforge.net/ master_sites sourceforge \ ${homepage}:cidmaps \ http://download.savannah.gnu.org/releases/freetype/:freetype \ sourceforge:freetype:freetype distname ${name}_full-${version} dist_subdir ${name}/${version}_0 use_bzip2 yes set docdistname ${name}_htdocs-${docversion} distfiles-append \ cidmaps.tgz:cidmaps \ [suffix ${docdistname}] patchfiles patch-Makefile.dynamic.in.diff \ patch-fontforge_start.c.diff \ patch-gutils_dynamic.c.diff \ patch-configure.in.diff \ patch-inc_utype.h.diff checksums [suffix ${distname}] \ md5 ea9d8dc38de79235fbe6add725b38ffe \ sha1 cccf78ddf074ea5ddc3ce13a988dc17d383eabdd \ rmd160 704a623f506500c839f378393f11ef14b5dec367 \ cidmaps.tgz \ md5 063691163e592515b31514515bb3ce8c \ sha1 efbc7c9d3e95159f5600dc71f9cccb370e46bb94 \ rmd160 d194355e61813d31fe4813bdf10a62d66a9f6d04 \ [suffix ${docdistname}] \ md5 8979b8b38e3653c452dbe310f17a996d \ sha1 fc4b7dde7ba318691934b53cd72aa683bcd5e48f \ rmd160 74322d2d38f8321465b6fb9d7951f6be9503b46f \ [suffix freetype-${ftversion}] \ md5 519c7cbf5cbd72ffa822c66844d3114c \ sha1 693e1b4e423557975c2b2aca63559bc592533a0e \ rmd160 ac69ed97aa662bc1dfb25422e64fc2afce1f863d \ worksrcdir ${name}-${version} extract.only [suffix ${distname}] post-extract { xinstall -d \ ${worksrcpath}/cidmap \ ${worksrcpath}/htdocs system "tar xzf ${distpath}/cidmaps.tgz -C ${worksrcpath}/cidmap" system "tar xjf ${distpath}/[suffix ${docdistname}] -C ${worksrcpath}/htdocs" } post-patch { reinplace "s|@PREFIX@|${prefix}|g" \ ${worksrcpath}/gutils/dynamic.c reinplace "/^applicationsdir/s|/Applications|${applications_dir}|" \ ${worksrcpath}/Makefile.dynamic.in } depends_lib \ port:xorg-libXi \ port:xorg-libxkbui \ port:xorg-libXt \ port:freetype \ port:gettext \ port:giflib \ port:jpeg \ port:libiconv \ port:libpng \ port:libuninameslist \ port:libxml2 \ port:tiff \ port:zlib use_autoconf yes configure.args --mandir=${prefix}/share/man \ --enable-type3 \ --enable-devicetables \ --enable-gb12345 \ --without-python \ --without-freetype-bytecode \ --without-pango \ --without-cairo \ --x-includes=${prefix}/include \ --x-libraries=${prefix}/lib use_parallel_build yes set docdir ${prefix}/share/doc/${name}-${version} destroot.args docdir=${docdir} post-destroot { xinstall -d ${destroot}${docdir} xinstall -m 644 -W ${worksrcpath} \ AUTHORS INSTALL LICENSE README-Mac.html README-Unix.html README-unix \ ${destroot}${docdir} } variant with_freetype_bytecode description {Enable support for bytecode interpreter} { distfiles-append freetype-${ftversion}${extract.suffix}:freetype extract.only-append freetype-${ftversion}${extract.suffix} configure.args-delete --without-freetype-bytecode configure.args-append --with-freetype-src=${workpath}/freetype-${ftversion} } livecheck.distname ${name}-source universal_variant no