# -*- 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
maintainers openmaintainer gmail.com:johan.mattsson
long_description ${description}
homepage http://birdfont.org
checksums rmd160 358f540c4fb6d8862ab416e8529e2dde6009c6d5 \
sha256 f1432dba6c19ee9f8d26b6680af7f6601254430d175ce4046176c90a15a29194
patchfiles patch_use_cc_and_ldflags_install_icons_and_translations.diff
depends_build port:pkgconfig \
depends_lib path:lib/pkgconfig/webkit-1.0.pc:webkit-gtk \
master_sites http://birdfont.org/releases/
livecheck.url http://birdfont.org/releases
livecheck.regex birdfont-(\\d+.\\d+).tar.gz
# I'm not convinced it wouldn't be possible to build this +universal, just
# haven't had the time to find out how to pass all necessary flags
# TODO: Fix the actual bug. This just masks the problem to force a successful build.
if {[string match *clang* ${configure.compiler}]} {
configure.cflags-append -Wno-return-type
configure.cmd ./scripts/macport_configure.py
build.cmd ./scripts/macport_build.py
build.args --prefix=${prefix} \
--cflags="${configure.cflags}" \
--ldflags="${configure.ldflags}"
destroot.cmd ./scripts/macport_install.py
destroot.args --prefix=${prefix} --dest=${destroot}
file attributes ${worksrcpath}/build/BirdFont.app/Contents/MacOS/birdfont.sh -permissions 0755
file copy ${worksrcpath}/build/BirdFont.app ${destroot}${applications_dir}
if {${configure.cxx_stdlib} eq "libstdc++"} {
depends_lib-delete path:lib/pkgconfig/webkit-1.0.pc:webkit-gtk
depends_lib-append path:lib/pkgconfig/webkit-1.0.pc:webkit-gtk-2.0