Commits
Marcus Calhoun-Lopez authored b07ebe39408
1 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 2 | |
3 3 | PortSystem 1.0 |
4 + | PortGroup active_variants 1.1 |
4 5 | |
5 6 | name gtk-sharp2 |
6 7 | set my_name gtk-sharp |
7 8 | version 2.12.11 |
8 9 | revision 4 |
9 10 | set branch [join [lrange [split ${version} .] 0 1] ""] |
10 11 | categories x11 devel |
11 12 | license LGPL-2 |
12 13 | platforms darwin |
13 14 | maintainers {mcalhoun @MarcusCalhoun-Lopez} openmaintainer |
60 61 | set docdir ${prefix}/share/doc/${my_name}-${version} |
61 62 | xinstall -d ${destroot}${docdir} |
62 63 | xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING README README.generator \ |
63 64 | ${destroot}${docdir} |
64 65 | } |
65 66 | |
66 67 | variant debug description {Enable debug build} { |
67 68 | configure.args-append --enable-debug |
68 69 | } |
69 70 | |
71 + | # gtk-sharp2 builds differently depending on how gtk2 is installed |
72 + | variant x11 conflicts quartz {} |
73 + | variant quartz conflicts x11 {} |
74 + | |
75 + | if {![variant_isset quartz]} { |
76 + | default_variants +x11 |
77 + | } |
78 + | |
79 + | if {[variant_isset quartz]} { |
80 + | require_active_variants gtk2 quartz |
81 + | } else { |
82 + | require_active_variants gtk2 x11 |
83 + | } |
84 + | |
70 85 | livecheck.type regex |
71 86 | livecheck.url ${master_sites} |
72 87 | livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*) |