source: trunk/dports/devel/glade3/Portfile

Last change on this file was 148025, checked in by mcalhoun@…, 17 months ago

glade3: allow glade3 to run if gtk2 was installed with quartz variant

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 KB
Line 
1# -*- 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
2# $Id: Portfile 148025 2016-04-25 02:30:23Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           active_variants 1.1
6
7name                glade3
8version             3.8.5
9revision            1
10license             LGPL-2 GPL-2
11set branch          [join [lrange [split ${version} .] 0 1] .]
12description         Glade is a RAD tool to enable quick & easy development of user interfaces \
13                    for the GTK+ 2.* toolkit and the GNOME desktop environment.
14long_description    ${description}
15maintainers         devans openmaintainer
16categories          devel gnome
17platforms           darwin
18homepage            https://wiki.gnome.org/Apps/Glade
19master_sites        gnome:sources/${name}/${branch}/
20
21use_xz              yes
22
23checksums           rmd160  0e4c66e9455b3b5212b3f696103ce5a414147594 \
24                    sha256  58a5f6e4df4028230ddecc74c564808b7ec4471b1925058e29304f778b6b2735
25
26depends_skip_archcheck devhelp
27
28depends_build       port:pkgconfig \
29                    port:intltool \
30                    port:gnome-common \
31                    port:gnome-doc-utils \
32                    port:gtk-doc \
33                    port:autoconf \
34                    port:automake \
35                    port:libtool
36
37depends_lib         port:desktop-file-utils \
38                    port:rarian \
39                    port:gtk2 \
40                    port:libxml2
41
42depends_run         port:devhelp
43
44# reconfigure using upstream autogen.sh for intltool 0.51 compatibility
45
46configure.cmd       ./autogen.sh
47
48configure.cflags-append \
49                    -Wno-format-nonliteral
50
51configure.args      --disable-scrollkeeper \
52                    --disable-gnome \
53                    --disable-python
54
55variant python27 description {Enable support for Python widgets using Python 2.7} {
56    configure.args-replace    --disable-python --enable-python
57    configure.python          ${prefix}/bin/python2.7
58    depends_lib-append        port:py27-pygtk
59    set python_framework      ${frameworks_dir}/Python.framework/Versions/2.7
60    configure.pkg_config_path ${python_framework}/lib/pkgconfig
61}
62
63# currenlty, libbonoboui is broken if gtk2 was installed with +quartz (#48986)
64variant gnome conflicts quartz description {Enable support for GNOME2 UI widgets} {
65    configure.args-replace    --disable-gnome  --enable-gnome
66    depends_lib-append        port:libbonoboui \
67                              port:libgnomeui
68}
69
70variant quartz conflicts gnome {
71    # configure script automatically detects if gtk2 was installed with quartz variant
72    require_active_variants gtk2 quartz
73
74    depends_lib-append port:gtk-osx-application-gtk2
75
76    patchfiles-append \
77        patch-quartz.diff
78}
79
80if {![variant_isset quartz]} {
81    require_active_variants gtk2 x11
82}
83
84default_variants +python27
85if {![variant_isset quartz]} {
86    default_variants-append +gnome
87}
88
89post-activate {
90    system "${prefix}/bin/scrollkeeper-update"
91    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
92    system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor"
93}
94
95livecheck.type      gnome
Note: See TracBrowser for help on using the repository browser.