Skip to content
Browse files

glib2-devel: Default to +quartz when -x11 is given

When building pango -x11 in a clean prefix, glib2 will fail to install,
because the -x11 variant is being passed down to glib2, but glib2
requires either +quartz or +x11, and +quartz was not enabled by default
when x11 was disabled.

This caused problems when implementing variant support for the buildbot
in macports/mpbb#5 and initially caused me to
think that I would have to revert
which was added due to macports/mpbb#4 and

This solution should instead work without the revert and still allow the
buildbot to build both wine and +quartz-x11 ports.

  • Loading branch information
ryandesign committed Mar 24, 2018
1 parent db34cfa commit 32fd667ad3d4cb8fe9be7bf2dc5058cc73d8e530
Showing with 3 additions and 1 deletion.
  1. +3 −1 devel/glib2-devel/Portfile
@@ -134,7 +134,9 @@ variant x11 conflicts quartz {
if {![variant_isset quartz]} {
default_variants +x11

if {![variant_isset x11]} {
default_variants +quartz
if {![variant_isset quartz] && ![variant_isset x11]} {
pre-configure {
return -code error "Either +x11 or +quartz is required"

0 comments on commit 32fd667

Please sign in to comment.
You can’t perform that action at this time.