[95451] trunk/dports/mail/ripmime

ryandesign at macports.org ryandesign at macports.org
Thu Jul 12 18:23:53 PDT 2012


Revision: 95451
          https://trac.macports.org/changeset/95451
Author:   ryandesign at macports.org
Date:     2012-07-12 18:23:51 -0700 (Thu, 12 Jul 2012)
Log Message:
-----------
ripmime: fix build with clang by turning off -Werror; fix build with old clang by including our ldflags (i.e. -L${prefix}/lib)

Modified Paths:
--------------
    trunk/dports/mail/ripmime/Portfile

Added Paths:
-----------
    trunk/dports/mail/ripmime/files/
    trunk/dports/mail/ripmime/files/patch-no-Werror.diff

Modified: trunk/dports/mail/ripmime/Portfile
===================================================================
--- trunk/dports/mail/ripmime/Portfile	2012-07-13 01:03:31 UTC (rev 95450)
+++ trunk/dports/mail/ripmime/Portfile	2012-07-13 01:23:51 UTC (rev 95451)
@@ -22,12 +22,14 @@
 
 depends_lib         port:libiconv
 
+patchfiles          patch-no-Werror.diff
+
 use_configure       no
 
 variant universal {}
 
 build.args          CC="${configure.cc} [get_canonical_archflags cc]" \
-                    LIBS="-liconv"
+                    LIBS="${configure.ldflags} -liconv"
 
 destroot {
     xinstall -s -m 755 ${worksrcpath}/ripmime ${destroot}${prefix}/bin

Added: trunk/dports/mail/ripmime/files/patch-no-Werror.diff
===================================================================
--- trunk/dports/mail/ripmime/files/patch-no-Werror.diff	                        (rev 0)
+++ trunk/dports/mail/ripmime/files/patch-no-Werror.diff	2012-07-13 01:23:51 UTC (rev 95451)
@@ -0,0 +1,23 @@
+Fixes "equality comparison with extraneous parentheses" and
+"comparison of unsigned expression < 0 is always false" seen with clang.
+--- Makefile.orig	2012-07-12 20:15:35.000000000 -0500
++++ Makefile	2012-07-12 20:15:46.000000000 -0500
+@@ -15,7 +15,7 @@
+ #	use our recommended settings.
+ #CFLAGS ?= -Wall -g -O2 -Werror $(CPU_OPTS)
+ #CFLAGS=-Wall -g -O2 -Wundef -Wshadow -Wsign-compare -I.
+-CFLAGS=-Wall -g -I. -O2 -Werror
++CFLAGS=-Wall -g -I. -O2
+ 
+ # OLE decoding is still considered to be 'beta' mode - so it 
+ #	disabled in the stable release of ripMIME for now
+--- ripOLE/Makefile.orig	2011-12-05 02:45:17.000000000 -0600
++++ ripOLE/Makefile	2012-07-12 20:17:56.000000000 -0500
+@@ -1,6 +1,6 @@
+ 
+ OBJS= ole.o olestream-unwrap.o bytedecoders.o logger.o pldstr.o bt-int.o
+-CFLAGS=-Wall -g -O2 -I. -Werror
++CFLAGS=-Wall -g -O2 -I.
+ 
+ 
+ .c.o:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120712/3c985bbb/attachment-0001.html>


More information about the macports-changes mailing list