/
Portfile
82 lines (65 loc) · 2.38 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup active_variants 1.1
PortGroup perl5 1.0
name gtkmm
version 2.24.5
revision 2
set branch [join [lrange [split ${version} .] 0 1] .]
description C++ interface to GTK+ version 2.
long_description \
gtkmm is the official C++ interface \
for the popular GUI library GTK+ version 2.
maintainers {devans @dbevans} openmaintainer
categories x11 devel
license LGPL-2.1+
platforms darwin
homepage http://www.gtkmm.org/
master_sites gnome:sources/${name}/${branch}/
use_xz yes
checksums rmd160 dc7d0701d6e7906a80b500e6a42e04e07620cd63 \
sha256 0680a53b7bf90b4e4bf444d1d89e6df41c777e0bacc96e9c09fc4dd2f5fe6b72 \
size 12022024
# set to desired perl version for build
perl5.branches 5.34
set port_ver_major [lindex [split ${version} .] 0]
depends_build port:pkgconfig \
port:mm-common \
port:p${perl5.major}-xml-parser
depends_lib path:lib/pkgconfig/gdk-pixbuf-2.0.pc:gdk-pixbuf2 \
path:lib/pkgconfig/gtk+-2.0.pc:gtk2 \
port:glibmm \
port:atkmm \
path:lib/pkgconfig/cairomm-1.0.pc:cairomm \
port:pangomm
use_autoreconf yes
autoreconf.args -fvi
# dependencies require at least C++11
compiler.cxx_standard 2011
configure.perl ${perl5.bin}
configure.args --disable-silent-rules
#
# dummy variants to ensure that this port gets rebuilt if
# the corresponding variants for gtk2 change
#
variant x11 conflicts quartz {}
variant quartz conflicts x11 {}
if {![variant_isset quartz]} {
default_variants +x11
}
if {[variant_isset quartz]} {
require_active_variants path:lib/pkgconfig/cairomm-1.0.pc:cairomm quartz
require_active_variants pangomm quartz
require_active_variants gtk2 quartz
} else {
require_active_variants gtk2 "" quartz
}
if {[variant_isset x11]} {
require_active_variants path:lib/pkgconfig/cairomm-1.0.pc:cairomm x11
require_active_variants pangomm x11
require_active_variants gtk2 x11
} else {
require_active_variants gtk2 "" x11
}
livecheck.type gnome
livecheck.regex "LATEST-IS-(${port_ver_major}\\.\[0-8\]*\[02468\](?:\\.\\d+)*)"