source: trunk/dports/devel/glade/Portfile

Last change on this file was 154194, checked in by devans@…, 9 months ago

glade: temporarily disable +quartz dependency on devhelp (#52688).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.7 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 154194 2016-10-24 00:56:56Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           gobject_introspection 1.0
6PortGroup           active_variants 1.1
7
8name                glade
9version             3.20.0
10revision            1
11license             LGPL-2+ GPL-2+
12set branch          [join [lrange [split ${version} .] 0 1] .]
13description         Glade is a RAD tool to enable quick & easy development of user interfaces \
14                    for the GTK+ 3.* toolkit and the GNOME desktop environment.
15long_description    ${description}
16maintainers         devans openmaintainer
17categories          devel gnome
18platforms           darwin
19homepage            https://wiki.gnome.org/Apps/Glade
20master_sites        gnome:sources/${name}/${branch}/
21
22use_xz              yes
23
24checksums           rmd160  41f49e78492e52f9a5f51c3a8d0aecadb147796d \
25                    sha256  82d96dca5dec40ee34e2f41d49c13b4ea50da8f32a3a49ca2da802ff14dc18fe
26
27depends_skip_archcheck devhelp
28
29depends_build       port:pkgconfig \
30                    port:intltool \
31                    port:itstool \
32                    port:gnome-common \
33                    port:yelp-tools \
34                    port:gtk-doc \
35                    port:autoconf \
36                    port:automake \
37                    port:libtool
38
39depends_lib         port:gtk3 \
40                    port:libxml2
41
42depends_run         port:desktop-file-utils \
43                    port:devhelp
44
45gobject_introspection yes
46
47# reconfigure using upstream autogen.sh for intltool 0.51 compatibility
48
49configure.cmd       ./autogen.sh
50
51#
52# disable optimization which (at least with clang)
53# causes glade to segfault on startup
54# after displaying main window
55#
56
57configure.optflags  -O0
58
59configure.args      --enable-gladeui \
60                    --enable-debug \
61                    --disable-python \
62                    --disable-silent-rules
63
64configure.cflags-append \
65                    -Wno-format-nonliteral
66
67variant python27 conflicts python34 python35 description {Build Python 2.7 widgets support} {
68    configure.args-replace      --disable-python --enable-python
69    configure.python            ${prefix}/bin/python2.7
70    set python_framework        ${frameworks_dir}/Python.framework/Versions/2.7
71    configure.env-append        PYTHON_LIBS=-lpython2.7 \
72                                PYTHON_LIB_LOC=${prefix}/lib
73    depends_lib-append          port:py27-gobject3
74    configure.pkg_config_path   ${python_framework}/lib/pkgconfig
75}
76
77variant python34 conflicts python27 python35 description {Build Python 3.4 widgets support} {
78    configure.args-replace      --disable-python --enable-python
79    configure.python            ${prefix}/bin/python3.4
80    set python_framework        ${frameworks_dir}/Python.framework/Versions/3.4
81    configure.env-append        PYTHON_LIBS="-L${python_framework}/lib -lpython3.4" \
82                                PYTHON_LIB_LOC=${python_framework}/lib
83    depends_lib-append          port:py34-gobject3
84    configure.pkg_config_path   ${python_framework}/lib/pkgconfig
85}
86
87variant python35 conflicts python27 python34 description {Build Python 3.5 widgets support} {
88    configure.args-replace      --disable-python --enable-python
89    configure.python            ${prefix}/bin/python3.5
90    set python_framework        ${frameworks_dir}/Python.framework/Versions/3.5
91    configure.env-append        PYTHON_LIBS="-L${python_framework}/lib -lpython3.5" \
92                                PYTHON_LIB_LOC=${python_framework}/lib
93    depends_lib-append          port:py35-gobject3
94    configure.pkg_config_path   ${python_framework}/lib/pkgconfig
95}
96
97if {![variant_isset python27] && ![variant_isset python35]} {
98    default_variants +python34
99}
100
101post-activate {
102    system "${prefix}/bin/update-desktop-database ${prefix}/share/applications"
103    system "${prefix}/bin/gtk-update-icon-cache-3.0 -f -t ${prefix}/share/icons/hicolor"
104}
105
106variant x11 conflicts quartz {
107    require_active_variants gtk3 x11 quartz
108}
109
110variant quartz conflicts x11 {
111    require_active_variants gtk3 quartz x11
112    depends_lib-append port:gtk-osx-application-gtk3
113# disable dependency on devhelp at runtime
114# until +quartz problem solved for webkit2-gtk (#52688)
115    depends_run-delete port:devhelp
116
117    # compile glade-registration.c as Objective-C file since it includes
118    #    /System/Library/Frameworks/AppKit.framework/Headers/AppKit.h
119    post-configure {
120        reinplace \
121            "s|-o glade-glade-registration.o|-xobjective-c -o glade-glade-registration.o|g" \
122            ${worksrcpath}/src/Makefile
123    }
124}
125
126if {![variant_isset quartz]} {
127    default_variants +x11
128}
129
130livecheck.type      gnome
Note: See TracBrowser for help on using the repository browser.