New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Changeset 79862


Ignore:
Timestamp:
06/28/11 10:10:44 (4 years ago)
Author:
jeremyhu@…
Message:

gtk2: build fix for when glib2 is built with clang

When glib2 is built with clang, G_HAVE_GNUC_VISIBILITY gets (correctly) set.
gtk2 uses this macro to check for support for the visibility attribute and
assumes support for aliasing.

Location:
trunk/dports/gnome/gtk2
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/gnome/gtk2/Portfile

    r77596 r79862  
    3535                    rmd160  56a6f731cfdc47686c71f8f6b4253484e08dd230 
    3636 
    37 patchfiles          patch-gtk-builder-convert.diff 
    38  
    39 depends_build       port:pkgconfig 
     37patchfiles          patch-gtk-builder-convert.diff patch-aliases.diff 
     38 
     39depends_build       port:pkgconfig \ 
     40                    port:perl5 
    4041 
    4142depends_lib         port:atk \ 
     
    6061configure.cppflags-append   -DX_LOCALE 
    6162configure.cflags-append     -fstrict-aliasing 
     63 
     64post-extract { 
     65    # gtk2's Makefiles don't have proper dependencies, 
     66    # so we must delete these to get them remade 
     67    file delete ${worksrcpath}/gdk/gdkalias.h 
     68    file delete ${worksrcpath}/gdk/gdkaliasdef.c 
     69    file delete ${worksrcpath}/gtk/gtkalias.h 
     70    file delete ${worksrcpath}/gtk/gtkaliasdef.c 
     71} 
    6272 
    6373pre-configure { 
Note: See TracChangeset for help on using the changeset viewer.