[95996] trunk/dports/textproc/mmencode

ryandesign at macports.org ryandesign at macports.org
Fri Jul 27 15:34:48 PDT 2012


Revision: 95996
          https://trac.macports.org/changeset/95996
Author:   ryandesign at 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:
--------------
    trunk/dports/textproc/mmencode/Portfile

Added Paths:
-----------
    trunk/dports/textproc/mmencode/files/
    trunk/dports/textproc/mmencode/files/patch-codes.c.diff

Modified: trunk/dports/textproc/mmencode/Portfile
===================================================================
--- 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
===================================================================
--- 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;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120727/a2e9e863/attachment.html>


More information about the macports-changes mailing list