diff --git a/aqua/qt5/Portfile b/aqua/qt5/Portfile index cf73db4252c94..1b63837c5fd1a 100644 --- a/aqua/qt5/Portfile +++ b/aqua/qt5/Portfile @@ -1567,6 +1567,11 @@ foreach {module module_info} [array get modules] { # special case if { ${module} eq "qtlocation" } { + PortGroup conflicts_build 1.0 + + # do not allow ${prefix}/include/boost to conflict with bundled boost (in bundled mapbox-gl-native) + conflicts_build boost + # qtlocation uses # Gypsy (https://gypsy.freedesktop.org/wiki/) # if they can be found diff --git a/aqua/qt511/Portfile b/aqua/qt511/Portfile index 56e533d32996d..96dab6f3936c8 100644 --- a/aqua/qt511/Portfile +++ b/aqua/qt511/Portfile @@ -1375,6 +1375,11 @@ foreach {module module_info} [array get modules] { # special case if { ${module} eq "qtlocation" } { + PortGroup conflicts_build 1.0 + + # do not allow ${prefix}/include/boost to conflict with bundled boost (in bundled mapbox-gl-native) + conflicts_build boost + # qtlocation uses # Gypsy (https://gypsy.freedesktop.org/wiki/) # if they can be found diff --git a/aqua/qt513/Portfile b/aqua/qt513/Portfile index 4866a86b45ef9..2cb87ea5264be 100755 --- a/aqua/qt513/Portfile +++ b/aqua/qt513/Portfile @@ -1392,6 +1392,11 @@ foreach {module module_info} [array get modules] { # special case if { ${module} eq "qtlocation" } { + PortGroup conflicts_build 1.0 + + # do not allow ${prefix}/include/boost to conflict with bundled boost (in bundled mapbox-gl-native) + conflicts_build boost + # qtlocation uses # Gypsy (https://gypsy.freedesktop.org/wiki/) # if they can be found diff --git a/aqua/qt59/Portfile b/aqua/qt59/Portfile index 1f9c61a5a0092..fc10c8be9ae44 100644 --- a/aqua/qt59/Portfile +++ b/aqua/qt59/Portfile @@ -1361,6 +1361,12 @@ foreach {module module_info} [array get modules] { # special case if { ${module} eq "qtlocation" } { + PortGroup conflicts_build 1.0 + + # do not allow ${prefix}/include/boost to conflict with bundled boost (in bundled mapbox-gl-native) + # error: expected ';' at end of declaration list + conflicts_build boost + # qtlocation uses # Gypsy (https://gypsy.freedesktop.org/wiki/) # if they can be found diff --git a/aqua/qt6/Portfile b/aqua/qt6/Portfile index cc036e2d4e822..3b93ddc1fc13e 100644 --- a/aqua/qt6/Portfile +++ b/aqua/qt6/Portfile @@ -1023,7 +1023,14 @@ foreach {module module_info} [array get modules] { ############################################################################### # Special Cases ############################################################################### - + + # special case + if { ${module} eq "qtlocation" } { + PortGroup conflicts_build 1.0 + + # do not allow ${prefix}/include/boost to conflict with bundled boost (in bundled mapbox-gl-native) + conflicts_build boost + } } } }