Index: Portfile
===================================================================
--- Portfile	(revision 40563)
+++ Portfile	(working copy)
@@ -92,6 +92,9 @@
         --without-x
 }
 
+variant no_quartz {
+}
+
 platform macosx {
     pre-fetch {
         if {${os.major} == 8} {
@@ -102,21 +105,23 @@
             }
         }
     }
-    if {${os.major} > 7} {
-        configure.args-delete \
-            --disable-quartz \
-            --disable-quartz-font \
-            --disable-quartz-image \
-        
-        configure.args-append \
-            --enable-quartz \
-            --enable-quartz-font \
-            --enable-quartz-image \
-        
-        post-destroot {
-            xinstall -m 0644 -W [lindex ${my_worksrcpaths} 0] \
-                src/cairo-quartz-font.pc \
-                ${destroot}${prefix}/lib/pkgconfig
+    if {![variant_isset no_quartz]} {
+        if {${os.major} > 7} {
+            configure.args-delete \
+                --disable-quartz \
+                --disable-quartz-font \
+                --disable-quartz-image \
+            
+            configure.args-append \
+                --enable-quartz \
+                --enable-quartz-font \
+                --enable-quartz-image \
+            
+            post-destroot {
+                xinstall -m 0644 -W [lindex ${my_worksrcpaths} 0] \
+                    src/cairo-quartz-font.pc \
+                    ${destroot}${prefix}/lib/pkgconfig
+            }
         }
     }
 }

