diff -ur libproxy/cmake.orig/devfiles.cmk libproxy/cmake/devfiles.cmk
--- libproxy/cmake.orig/devfiles.cmk	2011-06-06 14:44:37.000000000 -0700
+++ libproxy/cmake/devfiles.cmk	2011-09-16 16:12:57.000000000 -0700
@@ -1,4 +1,4 @@
-if(NOT WIN32 AND NOT APPLE)
+if(NOT WIN32 AND NOT (APPLE AND MP_QUARTZ))
   # PkgConfig file
   set (PKGCONFIG_PREFIX ${CMAKE_INSTALL_PREFIX})
   
diff -ur libproxy/cmake.orig/modules/config_envvar.cmk libproxy/cmake/modules/config_envvar.cmk
--- libproxy/cmake.orig/modules/config_envvar.cmk	2011-06-06 14:44:37.000000000 -0700
+++ libproxy/cmake/modules/config_envvar.cmk	2011-09-16 16:12:57.000000000 -0700
@@ -1,3 +1,3 @@
-if (NOT WIN32 AND NOT APPLE)
+if (NOT WIN32 AND NOT (APPLE AND MP_QUARTZ))
   set(ENVVAR_FOUND 1)
-endif()
\ No newline at end of file
+endif()
diff -ur libproxy/cmake.orig/modules/config_gnome.cmk libproxy/cmake/modules/config_gnome.cmk
--- libproxy/cmake.orig/modules/config_gnome.cmk	2011-06-06 14:44:37.000000000 -0700
+++ libproxy/cmake/modules/config_gnome.cmk	2011-09-16 16:15:31.000000000 -0700
@@ -1,4 +1,4 @@
-if (NOT WIN32 AND NOT APPLE)
+if (NOT WIN32 AND NOT (APPLE AND MP_QUARTZ))
   option(WITH_GNOME3 "Target a GNOME 3 system (gsettings)" ON)
   if(WITH_GNOME3)
     px_check_modules(GNOME3 gio-2.0>=2.26 gobject-2.0)
diff -ur libproxy/cmake.orig/modules/config_kde4.cmk libproxy/cmake/modules/config_kde4.cmk
--- libproxy/cmake.orig/modules/config_kde4.cmk	2011-06-06 14:44:37.000000000 -0700
+++ libproxy/cmake/modules/config_kde4.cmk	2011-09-16 16:12:57.000000000 -0700
@@ -1,4 +1,4 @@
-if (NOT WIN32 AND NOT APPLE)
+if (NOT WIN32 AND NOT (APPLE AND MP_QUARTZ))
   option(WITH_KDE4 "Search for KDE4 package" ON)
   if (WITH_KDE4)
     find_package(KDE4)
@@ -16,4 +16,4 @@
   else()
     set(KDE4_FOUND 0)
   endif()
-endif()
\ No newline at end of file
+endif()
diff -ur libproxy/cmake.orig/modules/config_macosx.cmk libproxy/cmake/modules/config_macosx.cmk
--- libproxy/cmake.orig/modules/config_macosx.cmk	2011-06-06 14:44:37.000000000 -0700
+++ libproxy/cmake/modules/config_macosx.cmk	2011-09-16 16:12:57.000000000 -0700
@@ -1,4 +1,4 @@
-if(APPLE)
+if(APPLE AND MP_QUARTZ)
   find_library(SC_LIBRARIES SystemConfiguration)
   find_library(CF_LIBRARIES CoreFoundation)
   if(SC_LIBRARIES)
@@ -7,4 +7,4 @@
   if(CF_LIBRARIES)
     set(CF_FOUND 1)
   endif()
-endif()
\ No newline at end of file
+endif()
diff -ur libproxy/cmake.orig/modules/pacrunner_webkit.cmk libproxy/cmake/modules/pacrunner_webkit.cmk
--- libproxy/cmake.orig/modules/pacrunner_webkit.cmk	2011-06-06 14:44:37.000000000 -0700
+++ libproxy/cmake/modules/pacrunner_webkit.cmk	2011-09-16 16:19:47.000000000 -0700
@@ -6,7 +6,7 @@
     link_directories(WEBKIT_LIBRARIES)
     include_directories("${WEBKIT_INCLUDE_DIR}")
   endif()
-elseif(APPLE)
+elseif(APPLE AND MP_QUARTZ)
   find_library(WEBKIT_LIBRARIES JavaScriptCore)
   if(WEBKIT_LIBRARIES)
     set(WEBKIT_FOUND 1)
diff -ur libproxy/cmake.orig/pkgconfig.cmk libproxy/cmake/pkgconfig.cmk
--- libproxy/cmake.orig/pkgconfig.cmk	2011-06-06 14:44:37.000000000 -0700
+++ libproxy/cmake/pkgconfig.cmk	2011-09-16 16:12:57.000000000 -0700
@@ -1,4 +1,4 @@
-if(NOT WIN32 AND NOT APPLE)
+if(NOT WIN32 AND NOT (APPLE AND MP_QUARTZ))
   find_package(PkgConfig)
 
   # Define our magical px_check_modules function
