--- Portfile~	2006-11-03 04:32:58.000000000 +0900
+++ Portfile	2007-05-21 18:36:22.000000000 +0900
@@ -26,6 +26,12 @@
         ghostscript-fonts-std-8.11.tar.gz md5 6865682b095f8c4500c54b285ff05ef6 \
         ghostscript-fonts-other-6.0.tar.gz md5 1a643ae62ef166562e4d422b1a601272
 
+configure {
+	# MacPorts 1.4.1 or higher adds -I${prefix}/include and -L${prefix}/lib flags to the configure by default.
+	# This change may break building ghostscript. Here is a workaround to avoid this issue.
+	system "cd $worksrcpath && ./configure --prefix=${prefix}"
+}
+
 build.target
 
 destroot.destdir    prefix=${destroot}/${prefix}

