source: trunk/dports/graphics/birdfont/Portfile

Last change on this file was 121269, checked in by jeremyhu@…, 3 years ago

misc: Cleanup configure.cxx_stdlib related logic now that we can assume base 2.3 or newer

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# -*- 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
2# $Id: Portfile 121269 2014-06-21 20:18:42Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                birdfont
7version             0.18
8revision            2
9maintainers         openmaintainer gmail.com:johan.mattsson
10categories          graphics
11description         Font editor
12long_description    ${description}
13homepage            http://birdfont.org
14license             GPL-3
15
16checksums           rmd160  358f540c4fb6d8862ab416e8529e2dde6009c6d5 \
17                    sha256  f1432dba6c19ee9f8d26b6680af7f6601254430d175ce4046176c90a15a29194
18
19platforms           darwin
20
21patchfiles          patch_use_cc_and_ldflags_install_icons_and_translations.diff
22
23depends_build       port:pkgconfig \
24                    port:vala
25
26depends_lib         path:lib/pkgconfig/webkit-1.0.pc:webkit-gtk \
27                    port:gtk2 \
28                    port:libxml2
29
30master_sites        http://birdfont.org/releases/
31
32livecheck.type      regex
33livecheck.url       http://birdfont.org/releases
34livecheck.regex     birdfont-(\\d+.\\d+).tar.gz
35
36# I'm not convinced it wouldn't be possible to build this +universal, just
37# haven't had the time to find out how to pass all necessary flags
38universal_variant   no
39
40# TODO: Fix the actual bug.  This just masks the problem to force a successful build.
41if {[string match *clang* ${configure.compiler}]} {
42    configure.cflags-append -Wno-return-type
43}
44
45configure.cmd       ./scripts/macport_configure.py
46
47build.cmd           ./scripts/macport_build.py
48build.args          --prefix=${prefix} \
49                    --cc=${configure.cc} \
50                    --cflags="${configure.cflags}" \
51                    --ldflags="${configure.ldflags}"
52
53destroot.cmd        ./scripts/macport_install.py
54destroot.args       --prefix=${prefix} --dest=${destroot}
55
56post-destroot {
57    file attributes ${worksrcpath}/build/BirdFont.app/Contents/MacOS/birdfont.sh -permissions 0755
58    file copy ${worksrcpath}/build/BirdFont.app ${destroot}${applications_dir}
59}
60
61platform darwin {
62    if {${configure.cxx_stdlib} eq "libstdc++"} {
63       depends_lib-delete path:lib/pkgconfig/webkit-1.0.pc:webkit-gtk
64       depends_lib-append path:lib/pkgconfig/webkit-1.0.pc:webkit-gtk-2.0
65    }
66}
Note: See TracBrowser for help on using the repository browser.