[101524] trunk/dports/audio/id3lib

jeremyhu at macports.org jeremyhu at macports.org
Sat Jan 12 16:28:01 PST 2013


Revision: 101524
          https://trac.macports.org/changeset/101524
Author:   jeremyhu at macports.org
Date:     2013-01-12 16:28:01 -0800 (Sat, 12 Jan 2013)
Log Message:
-----------
id3lib: Fix building with clang++

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

Added Paths:
-----------
    trunk/dports/audio/id3lib/files/boolcheck.patch

Modified: trunk/dports/audio/id3lib/Portfile
===================================================================
--- trunk/dports/audio/id3lib/Portfile	2013-01-13 00:12:22 UTC (rev 101523)
+++ trunk/dports/audio/id3lib/Portfile	2013-01-13 00:28:01 UTC (rev 101524)
@@ -4,7 +4,7 @@
 
 name               id3lib
 version            3.8.3
-revision           3
+revision           4
 categories         audio
 license            LGPL
 platforms          darwin
@@ -28,12 +28,10 @@
 patchfiles         automake.patch \
                    patch_id3lib_3.8.3_UTF16_writing_bug.diff \
                    id3lib-vbr-overflow.patch \
-                   id3lib-main.patch
+                   id3lib-main.patch \
+                   boolcheck.patch
 
 patch.pre_args     -p1
 
 use_autoreconf     yes
 autoreconf.args    -fvi
-
-# TODO: This project has buggy C++
-compiler.blacklist clang macports-clang-2.9 macports-clang-3.0 macports-clang-3.1 macports-clang-3.2

Added: trunk/dports/audio/id3lib/files/boolcheck.patch
===================================================================
--- trunk/dports/audio/id3lib/files/boolcheck.patch	                        (rev 0)
+++ trunk/dports/audio/id3lib/files/boolcheck.patch	2013-01-13 00:28:01 UTC (rev 101524)
@@ -0,0 +1,11 @@
+--- a/m4/id3_cxx.m4.orig	2013-01-12 16:23:24.000000000 -0800
++++ b/m4/id3_cxx.m4	2013-01-12 16:23:52.000000000 -0800
+@@ -81,7 +81,7 @@ AC_DEFUN(ID3_CXX_PORTABILITY,[
+ 
+   dnl Check whether we have bool
+   AC_MSG_CHECKING(whether C++ has bool)
+-  AC_TRY_RUN([main() { bool b1=true; bool b2=false; }],
++  AC_TRY_RUN([int main() { bool b1=true; bool b2=false; return 0; }],
+              [ AC_MSG_RESULT(yes) ],
+              [ AC_MSG_RESULT(no)
+                AC_DEFINE(CXX_HAS_NO_BOOL) ],
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130112/5588bd8d/attachment-0001.html>


More information about the macports-changes mailing list