Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 580030 - x11-libs/gtk+: add USE="win32" to support crossdev-mingw and prefix/windows
Summary: x11-libs/gtk+: add USE="win32" to support crossdev-mingw and prefix/windows
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2016-04-15 04:12 UTC by Ian Stakenvicius (RETIRED)
Modified: 2016-06-30 22:28 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
proposed IUSE=win32 to gtk-2.24.30.ebuild (gtk.patch,2.27 KB, patch)
2016-04-15 04:12 UTC, Ian Stakenvicius (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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 gentoo-dev 2016-06-30 22:28:46 UTC
You have my go to apply this to everywhere it fits.