[96209] trunk/dports/graphics/xfig

and.damore at macports.org and.damore at macports.org
Sat Aug 4 05:37:05 PDT 2012


Revision: 96209
          https://trac.macports.org/changeset/96209
Author:   and.damore at macports.org
Date:     2012-08-04 05:37:01 -0700 (Sat, 04 Aug 2012)
Log Message:
-----------
port xfig: settin main() return type to int, fixes #35406

Modified Paths:
--------------
    trunk/dports/graphics/xfig/Portfile

Added Paths:
-----------
    trunk/dports/graphics/xfig/files/patch-main_c.diff

Modified: trunk/dports/graphics/xfig/Portfile
===================================================================
--- trunk/dports/graphics/xfig/Portfile	2012-08-04 09:52:23 UTC (rev 96208)
+++ trunk/dports/graphics/xfig/Portfile	2012-08-04 12:37:01 UTC (rev 96209)
@@ -31,6 +31,9 @@
 depends_run		port:ghostscript \
 				port:transfig
 use_xmkmf		yes
+#if {${configure.compiler} == "clang"} {  
+#    configure.compiler llvm-gcc-4.2  
+#} 
 xmkmf.args-append	\
 				-DUseSeparateConfDir=NO -DBuildHtmlManPages=NO
 patchfiles		patch-Imakefile \
@@ -40,7 +43,8 @@
                 patch-f_readeps.c \
                 patch-w_export.c \
                 patch-w_print.c \
-                patch-w_util.c
+                patch-w_util.c \
+                patch-main_c.diff
 
 post-extract {
 	foreach d "${worksrcpath}/Doc ${worksrcpath}/Libraries" {

Added: trunk/dports/graphics/xfig/files/patch-main_c.diff
===================================================================
--- trunk/dports/graphics/xfig/files/patch-main_c.diff	                        (rev 0)
+++ trunk/dports/graphics/xfig/files/patch-main_c.diff	2012-08-04 12:37:01 UTC (rev 96209)
@@ -0,0 +1,11 @@
+--- main.c.orig	2012-08-04 14:33:05.000000000 +0200
++++ main.c	2012-08-04 14:33:36.000000000 +0200
+@@ -629,7 +629,7 @@
+ int setup_visual (int *argc_p, char **argv, Arg *args);
+ void get_pointer_mapping (void);
+ 
+-void main(int argc, char **argv)
++int main(int argc, char **argv)
+ {
+     Widget	    children[NCHILDREN];
+     XEvent	    event;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120804/9ce4372d/attachment-0001.html>


More information about the macports-changes mailing list