Revision
70348
Author
ryandesign@macports.org
Date
2010-08-06 17:56:58 -0700 (Fri, 06 Aug 2010)

Log Message

xfig: fix font selection problem with gcc 4.2 (i.e., on Snow Leopard); see #25935

Modified Paths

Diff

Modified: trunk/dports/graphics/xfig/Portfile (70347 => 70348)


--- trunk/dports/graphics/xfig/Portfile	2010-08-07 00:39:22 UTC (rev 70347)
+++ trunk/dports/graphics/xfig/Portfile	2010-08-07 00:56:58 UTC (rev 70348)
@@ -4,6 +4,7 @@
 
 name			xfig
 version			3.2.5b
+revision		1
 categories		graphics x11
 maintainers		nomaintainer
 description		Facility for Interactive Generation of figures under X11
@@ -65,5 +66,12 @@
         ${docdir}
 }
 
+platform darwin 10 {
+	# Fix font selection bug when w_fontpanel.o is compiled with optimization by gcc 4.2 (#25935)
+	pre-build {
+		system "cd ${worksrcpath} && ${build.cmd} CDEBUGFLAGS=-O0 w_fontpanel.o"
+	}
+}
+
 livecheck.type	regex
 livecheck.regex	{>Xfig/Transfig (.*) Download</a>}