forked from macports/macports-ports
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Portfile
66 lines (50 loc) · 2.06 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
# -*- 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
PortSystem 1.0
name birdfont
version 2.25.0
maintainers openmaintainer {gmail.com:johan.mattsson.m @johanmattssonm}
categories graphics
description Font editor
long_description ${description}
homepage http://birdfont.org
license GPL-3
platforms darwin
depends_build port:pkgconfig \
port:python37
depends_lib path:lib/pkgconfig/webkit2gtk-4.0.pc:webkit2-gtk \
path:lib/pkgconfig/glib-2.0.pc:glib2 \
path:lib/pkgconfig/cairo.pc:cairo \
port:gdk-pixbuf2 \
port:gtk3 \
port:libgee \
port:libsoup \
port:libnotify \
port:vala \
port:xmlbird
master_sites http://birdfont.org/releases/
use_xz yes
checksums rmd160 0559c52a7faab864ab9beb75a6cf7b2956b48554 \
sha256 4274934ba6ac1532372113473c0d19f7dfbbd301017d4cd14abaab98ea34283a \
size 2605312
patchfiles fix-install-name.patch
post-patch {
reinplace "s|/usr/bin/python3|${prefix}/bin/python3.7|" \
configure \
build.py \
install.py
}
# 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
universal_variant no
configure.cflags-append \
-DMAC
configure.args --cc=${configure.cc} \
--cflags="${configure.cflags}" \
--ldflags="${configure.ldflags}" \
--dest="${destroot}"
build.cmd ./build.py
destroot.cmd ./install.py
destroot.target
destroot.args --dest="${destroot}" \
--manpages-directory=/share/man/man1
livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"