Revision
72025
Author
jeremyhu@macports.org
Date
2010-09-30 10:01:59 -0700 (Thu, 30 Sep 2010)

Log Message

feh: Don't link against system X11 libs. #26666

Modified Paths

Diff

Modified: trunk/dports/graphics/feh/Portfile (72024 => 72025)


--- trunk/dports/graphics/feh/Portfile	2010-09-30 17:00:28 UTC (rev 72024)
+++ trunk/dports/graphics/feh/Portfile	2010-09-30 17:01:59 UTC (rev 72025)
@@ -3,7 +3,7 @@
 PortSystem			1.0
 name				feh
 version				1.3.4
-revision            2
+revision			3
 categories			graphics
 maintainers			cs.dartmouth.edu:tristan
 description			Fast lightweight image viewer
@@ -20,7 +20,15 @@
 
 depends_lib			port:giblib port:imlib2 port:jpeg port:libpng port:zlib
 
-configure.args		--mandir=${prefix}/share/man
+use_autoreconf yes
+autoreconf.args -fvi
 
+patch {
+	reinplace "s:/usr/X11R6:${prefix}:g" ${worksrcpath}/configure.ac
+	reinplace "s:/usr/X11R6:${prefix}:g" ${worksrcpath}/configure.in
+	reinplace "s:/usr/X11R6:${prefix}:g" ${worksrcpath}/Makefile.am
+	reinplace "s:/usr/X11R6:${prefix}:g" ${worksrcpath}/src/Makefile.am
+}
+
 destroot.args		docsdir=${prefix}/share/doc/${name}