--- aqua/qt59/Portfile
+++ aqua/qt59/Portfile
@@ -677,6 +677,11 @@ array set modules {
     }
 }
 
+platform darwin 13 {
+    # Modules which fail to build on Mavericks.
+    array unset modules qtlocation
+}
+
 ############################################################################### SQL Plugin Format
 #
 # {
@@ -772,12 +777,11 @@ build.env-append \
     PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 \
     PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
 
-# Qt 5.9 requires LSCopyDefaultApplicationURLForURL, which was introduced in macOS 10.10
-# see https://developer.apple.com/library/content/documentation/General/Reference/APIDiffsMacOSX10_10SeedDiff/frameworks/CoreServices.html
-if { ${os.major} < 14 } {
+
+if { ${os.major} < 13 } {
     known_fail  yes
     pre-fetch {
-        ui_error "${subport} requires OS X 10.10 or later"
+        ui_error "${subport} requires OS X 10.9 or later"
         return -code error "incompatible OS version"
     }
 }
@@ -888,6 +892,11 @@ foreach {module module_info} [array get modules] {
                 use_xcode yes
             }
 
+            # Mavericks compatibility
+            platform darwin 13 {
+                patchfiles-append patch-mavericks-compatibility.diff patch-mavericks-aesthetics.diff
+            }
+
             #-----------------------------------------------------------------------------
             # qtbase is used for:
             #    1) building qtbase