# -*- 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
PortGroup compiler_blacklist_versions 1.0
github.setup fontforge fontforge 20190801
github.tarball_from releases
categories graphics fonts
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 \
homepage http://fontforge.github.io/
checksums rmd160 1b8e8ba52dc35034e250c0b2cd9c4acef01794f2 \
sha256 d92075ca783c97dc68433b1ed629b9054a4b4c74ac64c54ced7f691540f70852 \
depends_build port:pkgconfig
depends_lib path:lib/pkgconfig/cairo.pc:cairo \
path:lib/pkgconfig/pango.pc:pango \
#compiler.c_standard 2011
compiler.blacklist {clang < 500} *gcc-4.2 gcc-4.0 gcc-3.3
configure.cflags-append -std=gnu11
# fix 32bit builds by masking an old Carbon call to GetTime
patchfiles-append patch-fontforge-carbon-gettime-namecollision.diff
# use older noerr macros, and replace missing SRefCon definition
if {${os.platform} eq "darwin" && ${os.major} <= 9} {
patch-fontforge-startui-require-noerr-and-SRefCon-fix.diff \
# the date command on Tiger is too old for this port, use gnu coreutils dates instead