Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 580030

Summary: x11-libs/gtk+: add USE="win32" to support crossdev-mingw and prefix/windows
Product: Gentoo Linux Reporter: Ian Stakenvicius (RETIRED) <axs>
Component: [OLD] LibraryAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: CONFIRMED ---    
Severity: enhancement Keywords: Inclusion
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: proposed IUSE=win32 to gtk-2.24.30.ebuild

Description Ian Stakenvicius (RETIRED) gentoo-dev 2016-04-15 04:12:46 UTC
Created attachment 430546 [details, diff]
proposed IUSE=win32 to gtk-2.24.30.ebuild

Currently the gtk+:2.0 ebuilds only has support for aqua, or for X (which is effectively not-aqua).  In order for gtk+ to be cross-compiled for windows via mingw, I had to force USE="aqua" and then inject via EXTRA_ECONF the flags to ./configure to disable quartz support and enable win32 support.

This additionally required me to hack x11-libs/cairo in a similar fashion, due to gtk+ depending on cairo[aqua?], despite cairo[-aqua,-X] doing the right thing.

It would be much nicer going forward if the gtk+:2 (and likely :3) ebuilds could have a win32 use flag.

The attached patch is a possible way it could look, note I haven't tested it but the changes are fairly simple.  If the idea is friendly I'll report back with test results.
Comment 1 Pacho Ramos gentoo-dev 2016-04-16 10:49:24 UTC
I have no problems with including this... if tests go ok, please feel free to commit

See you!
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2016-06-30 22:28:46 UTC
You have my go to apply this to everywhere it fits.