[102130] trunk/dports/audio/mpeg4ip/Portfile

jeremyhu at macports.org jeremyhu at macports.org
Mon Jan 28 00:38:42 PST 2013


Revision: 102130
          https://trac.macports.org/changeset/102130
Author:   jeremyhu at macports.org
Date:     2013-01-28 00:38:42 -0800 (Mon, 28 Jan 2013)
Log Message:
-----------
mpeg4ip: Use compiler.blacklist, and include some of my work towards getting clang to build this abomination (btw, I give up)

Modified Paths:
--------------
    trunk/dports/audio/mpeg4ip/Portfile

Modified: trunk/dports/audio/mpeg4ip/Portfile
===================================================================
--- trunk/dports/audio/mpeg4ip/Portfile	2013-01-28 08:37:10 UTC (rev 102129)
+++ trunk/dports/audio/mpeg4ip/Portfile	2013-01-28 08:38:42 UTC (rev 102130)
@@ -67,16 +67,36 @@
                 --disable-player \
                 --mandir=${prefix}/share/man
 
-if {${configure.compiler} == "clang"} {
-    configure.compiler llvm-gcc-4.2
-}
+use_parallel_build      no
 
-post-configure {
-    if {[variant_isset universal]} {
-        reinplace "s|CC -dynamiclib|CC -dynamiclib ${configure.universal_ldflags}|g" ${worksrcpath}/libtool
+# http://trac.macports.org/ticket/34951
+compiler.blacklist clang
+
+configure.cflags-append -std=gnu89 -Wno-error=return-type
+
+variant universal {
+    post-configure {
+        reinplace "s|CC -dynamiclib|CC -dynamiclib ${configure.universal_ldflags}|g" \
+            ${worksrcpath}/common/video/iso-mpeg4/libtool \
+            ${worksrcpath}/lib/rtp/libtool \
+            ${worksrcpath}/libtool
     }
 }
 
+post-patch {
+    # Code with this many issue should not be shipped with -Werror by default
+    reinplace "s|-Werror||" \
+        ${worksrcpath}/player/lib/audio/faad/Makefile.in \
+        ${worksrcpath}/lib/rtp/Makefile.in \
+        ${worksrcpath}/lib/gnu/Makefile.in \
+        ${worksrcpath}/common/video/iso-mpeg4/src/Makefile.in
+
+    reinplace "s|-Wall -Werror|-Wall|" \
+        ${worksrcpath}/lib/rtp/configure \
+        ${worksrcpath}/common/video/iso-mpeg4/configure \
+        ${worksrcpath}/configure
+}
+
 #
 # delete files from destroot that conflict with port libmp4v2
 #
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130128/7a466fb0/attachment.html>


More information about the macports-changes mailing list