[91201] trunk/dports/audio/audiofile

jeremyhu at macports.org jeremyhu at macports.org
Sun Mar 25 12:40:08 PDT 2012


Revision: 91201
          https://trac.macports.org/changeset/91201
Author:   jeremyhu at macports.org
Date:     2012-03-25 12:40:04 -0700 (Sun, 25 Mar 2012)
Log Message:
-----------
auiofile: Fix build with clang, #31368

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

Added Paths:
-----------
    trunk/dports/audio/audiofile/files/
    trunk/dports/audio/audiofile/files/search-werror.patch

Modified: trunk/dports/audio/audiofile/Portfile
===================================================================
--- trunk/dports/audio/audiofile/Portfile	2012-03-25 18:58:17 UTC (rev 91200)
+++ trunk/dports/audio/audiofile/Portfile	2012-03-25 19:40:04 UTC (rev 91201)
@@ -5,6 +5,8 @@
 name            audiofile
 epoch           20111023
 version         0.3.3
+revision        1
+
 categories      audio
 platforms       darwin
 maintainers     nomaintainer
@@ -23,12 +25,11 @@
                     sha1    f7b7f007e5c5c478f9bb3fed3534a105cbd1e884 \
                     rmd160  cab2faf6ae42023616de9be4b59c3fb5e3c6eee7
 
+patch.pre_args  -p1
+patchfiles      search-werror.patch
+
 configure.ccache    no
 
-if {${configure.compiler} == "clang"} {
-    configure.compiler llvm-gcc-4.2
-}
-
 test.run        yes
 test.target     check
 

Added: trunk/dports/audio/audiofile/files/search-werror.patch
===================================================================
--- trunk/dports/audio/audiofile/files/search-werror.patch	                        (rev 0)
+++ trunk/dports/audio/audiofile/files/search-werror.patch	2012-03-25 19:40:04 UTC (rev 91201)
@@ -0,0 +1,12 @@
+diff -Naurp audiofile-0.3.3.orig/libaudiofile/g711.c audiofile-0.3.3/libaudiofile/g711.c
+--- audiofile-0.3.3.orig/libaudiofile/g711.c	2012-01-10 23:19:38.000000000 -0800
++++ audiofile-0.3.3/libaudiofile/g711.c	2012-03-25 12:37:40.000000000 -0700
+@@ -83,7 +83,7 @@ static const short seg_end[8] = {0xFF, 0
+ static int
+ search(val, table, size)
+ 	int		val;
+-	short		*table;
++	const short	*table;
+ 	int		size;
+ {
+ 	int		i;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120325/e0784c8c/attachment.html>


More information about the macports-changes mailing list