Index: Portfile
===================================================================
--- Portfile	(revision 35865)
+++ Portfile	(arbetskopia)
@@ -98,6 +98,16 @@
     depends_build-append    port:cups-headers
 }
 
+platform darwin 9 {
+    pre-fetch {
+        if {[variant_isset x11] && ![file exists /usr/X11/lib/libXrandr.2.0.0.dylib]} {
+        ui_error "Some libs are missing from your X11 installation. Please run this command:"
+        ui_msg "sudo ln -s libXrandr.2.dylib /usr/X11/lib/libXrandr.2.0.0.dylib"
+        error "missing /usr/X11/lib/libXrandr.2.0.0.dylib"
+        }
+    }
+}
+
 variant quartz conflicts x11 description {Enable Quartz rendering} {
     pre-fetch {
         if {![file exists ${prefix}/include/cairo/cairo-quartz.h]} {

