Revision: 104802 https://trac.macports.org/changeset/104802 Author: jeremyhu@macports.org Date: 2013-04-02 15:33:41 -0700 (Tue, 02 Apr 2013) Log Message: ----------- gtk2: Enable support for gobject-introspection Modified Paths: -------------- trunk/dports/gnome/gtk2/Portfile Modified: trunk/dports/gnome/gtk2/Portfile =================================================================== --- trunk/dports/gnome/gtk2/Portfile 2013-04-02 21:36:52 UTC (rev 104801) +++ trunk/dports/gnome/gtk2/Portfile 2013-04-02 22:33:41 UTC (rev 104802) @@ -8,6 +8,7 @@ name gtk2 version 2.24.17 +revision 1 set branch [join [lrange [split ${version} .] 0 1] .] categories gnome x11 license LGPL-2+ @@ -42,7 +43,9 @@ depends_lib port:atk \ port:libpng \ path:lib/pkgconfig/pango.pc:pango \ - port:gdk-pixbuf2 + port:gdk-pixbuf2 \ + port:gobject-introspection + # gtk2 applications would need librsvg to display SVG icons, however librsvg # indirectly depends on gtk2, so we can not list it as a dependency here. # port:librsvg @@ -52,13 +55,22 @@ configure.args --enable-static \ --disable-glibtest \ - --disable-introspection \ + --enable-introspection \ gio_can_sniff=yes configure.ccache no configure.cppflags-append -DX_LOCALE -D_IPP_PRIVATE_STRUCTURES=1 configure.cflags-append -fstrict-aliasing +# gobject-introspection uses g-ir-scanner, which uses $CC from env +if {[variant_isset universal]} { + foreach arch ${configure.universal_archs} { + lappend merger_build_args(${arch}) CC='${configure.cc} -arch ${arch}' + } +} else { + build.args-append CC="${configure.cc} ${configure.cc_archflags}" +} + post-extract { # gtk2's Makefiles don't have proper dependencies, # so we must delete these to get them remade