source: trunk/dports/devel/glade/Portfile @ 115615

Last change on this file since 115615 was 115615, checked in by cal@…, 5 years ago

add gtk3-devel port at the request of devans, rewrite dependencies to be satisfyable using gtk3-devel, closes #42040

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 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 115615 2014-01-07 00:28:17Z cal@macports.org $
3
4PortSystem      1.0
5
6name            glade
7version         3.16.1
8license         LGPL-2+ GPL-2+
9set branch      [join [lrange [split ${version} .] 0 1] .]
10description     Glade is a RAD tool to enable quick & easy development of user interfaces \
11                for the GTK+ 3.* toolkit and the GNOME desktop environment.
12long_description ${description}
13maintainers     devans openmaintainer
14categories      devel gnome
15platforms       darwin
16homepage        https://wiki.gnome.org/Apps/Glade
17master_sites    gnome:sources/${name}/${branch}/
18
19use_xz          yes
20
21checksums       rmd160  80d315f8c749bff750eee5085c93d5a2db0a5e8f \
22                sha256  994ac258bc100d3907ed40a2880c3144f13997b324477253e812d59f2716523f
23
24depends_skip_archcheck devhelp
25
26depends_build   port:pkgconfig \
27                port:intltool \
28                port:itstool \
29                port:gnome-doc-utils
30
31depends_lib     path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \
32                port:gobject-introspection \
33                port:libxml2
34
35depends_run     port:desktop-file-utils \
36                port:devhelp
37
38patchfiles      patch-configure.diff
39
40#
41# disable optimization which (at least with clang)
42# causes glade to segfault on startup
43# after displaying main window
44#
45
46configure.optflags -O0
47
48configure.args  --enable-introspection=yes \
49                --enable-gladeui \
50                --enable-debug
51
52configure.cflags-append \
53                -Wno-format-nonliteral
54
55variant python26 conflicts python27 description {Use python 2.6} {
56    configure.python            ${prefix}/bin/python2.6
57    depends_lib-append          port:py26-gobject3
58    set python_framework        ${frameworks_dir}/Python.framework/Versions/2.6
59    configure.pkg_config_path   ${python_framework}/lib/pkgconfig
60}
61
62variant python27 conflicts python26 description {Use python 2.7} {
63    configure.python            ${prefix}/bin/python2.7
64    depends_lib-append          port:py27-gobject3
65    set python_framework        ${frameworks_dir}/Python.framework/Versions/2.7
66    configure.pkg_config_path   ${python_framework}/lib/pkgconfig
67}
68
69if {![variant_isset python26]} {
70    default_variants +python27
71}
72
73post-activate {
74    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
75    system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/hicolor"
76}
77
78livecheck.type  gnome
Note: See TracBrowser for help on using the repository browser.