--- Portfile.orig	2009-01-19 13:20:20.000000000 -0500
+++ Portfile	2009-01-19 11:10:10.000000000 -0500
@@ -46,6 +46,10 @@
 			system "echo ${long_description} > ${destroot}${prefix}/share/doc/${name}/README.txt"
 		}
 		use_configure no
+	} elseif { [file exists ${x11prefix}/lib/pkgconfig/xf86dgaproto.pc] && ! [string equal ${prefix} ${x11prefix}] } {
+		depends_build  port:pkgconfig
+		depends_lib
+		depends_run
 	} else {
 		if {${os.major} < 9 && ![file exists ${prefix}/lib/pkgconfig/x11.pc]} {
 			configure.env-append \

