Revision
95996
Author
ryandesign@macports.org
Date
2012-07-27 15:34:45 -0700 (Fri, 27 Jul 2012)

Log Message

mmencode: declare void functions as void to fix build errors with clang (#35375); ensure we're UsingTheRightCompiler and -arch flags; add universal variant

Modified Paths

Added Paths

Diff

Modified: trunk/dports/textproc/mmencode/Portfile (95995 => 95996)


--- trunk/dports/textproc/mmencode/Portfile	2012-07-27 22:01:59 UTC (rev 95995)
+++ trunk/dports/textproc/mmencode/Portfile	2012-07-27 22:34:45 UTC (rev 95996)
@@ -28,8 +28,14 @@
 extract.suffix      .tar.Z
 worksrcdir          ${distname}/src/metamail
 
+patchfiles          patch-codes.c.diff
+
 use_configure       no
 
+variant universal {}
+
+build.args          CC="${configure.cc} [get_canonical_archflags cc]"
+
 build.target        mmencode
 
 destroot {

Added: trunk/dports/textproc/mmencode/files/patch-codes.c.diff (0 => 95996)


--- trunk/dports/textproc/mmencode/files/patch-codes.c.diff	                        (rev 0)
+++ trunk/dports/textproc/mmencode/files/patch-codes.c.diff	2012-07-27 22:34:45 UTC (rev 95996)
@@ -0,0 +1,18 @@
+--- codes.c.orig	1993-09-20 08:13:22.000000000 -0500
++++ codes.c	2012-07-27 17:33:43.000000000 -0500
+@@ -174,6 +174,7 @@
+ }
+ #endif
+ 
++void
+ from64(infile, outfile, boundaries, boundaryct, PortableNewlines) 
+ FILE *infile, *outfile;
+ char **boundaries;
+@@ -350,6 +351,7 @@
+     }
+ }
+ 
++void
+ fromqp(infile, outfile, boundaries, boundaryct) 
+ FILE *infile, *outfile;
+ char **boundaries;