--- Portfile.orig	2008-12-12 03:12:44.000000000 -0500
+++ Portfile	2009-03-31 16:36:49.000000000 -0400
@@ -22,6 +22,24 @@
 depends_run \
 	port:mkfontscale
 
+variant system_x11 description {Install a stub package to use the system X11 libraries rather than MacPorts} {
+	if { [file exists ${x11prefix}/bin/mkfontdir] && ! [string equal ${prefix} ${x11prefix}] } {
+		depends_build
+		depends_lib
+		depends_run
+		fetch           { }
+		checksum        { }
+		extract         { }
+		patch           { }
+		build           { }
+		destroot        {
+			xinstall -d ${destroot}${prefix}/share/doc/${name}
+			system "echo ${long_description} > ${destroot}${prefix}/share/doc/${name}/README.txt"
+		}
+		use_configure no
+	}
+}
+
 livecheck.check regex
 livecheck.url   [lindex ${master_sites} 0]?C=M&O=D
 livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)

