[80399] trunk/dports/net/linphone

jmr at macports.org jmr at macports.org
Tue Jul 12 00:31:16 PDT 2011


Revision: 80399
          http://trac.macports.org/changeset/80399
Author:   jmr at macports.org
Date:     2011-07-12 00:31:15 -0700 (Tue, 12 Jul 2011)
Log Message:
-----------
linphone: fix ortp_logv macro (#25752)

Modified Paths:
--------------
    trunk/dports/net/linphone/Portfile

Added Paths:
-----------
    trunk/dports/net/linphone/files/
    trunk/dports/net/linphone/files/ortp.h.patch

Modified: trunk/dports/net/linphone/Portfile
===================================================================
--- trunk/dports/net/linphone/Portfile	2011-07-12 07:22:00 UTC (rev 80398)
+++ trunk/dports/net/linphone/Portfile	2011-07-12 07:31:15 UTC (rev 80399)
@@ -5,6 +5,7 @@
 
 name                  linphone
 version               3.2.1
+revision              1
 categories            net
 maintainers           linphone.org:jehan.monnier
 description           voice over IP sip phone
@@ -21,4 +22,6 @@
                       port:speex-devel \
                       port:libeXosip2 
 
+patchfiles            ortp.h.patch
+
 configure.args-append --disable-video --with-readline=none

Added: trunk/dports/net/linphone/files/ortp.h.patch
===================================================================
--- trunk/dports/net/linphone/files/ortp.h.patch	                        (rev 0)
+++ trunk/dports/net/linphone/files/ortp.h.patch	2011-07-12 07:31:15 UTC (rev 80399)
@@ -0,0 +1,22 @@
+--- oRTP/include/ortp/ortp.h	2010-07-19 11:50:16.000000000 +0200
++++ oRTP/include/ortp/ortp.h	2010-07-20 12:55:20.000000000 +0200
+@@ -103,12 +103,13 @@
+ #define ortp_log_level_enabled(level)	(__ortp_log_mask & (level))
+ 
+ #if !defined(WIN32) && !defined(_WIN32_WCE)
+-#define ortp_logv(level,fmt,args) \
+-{\
+-	if (ortp_logv_out!=NULL && ortp_log_level_enabled(level)) \
+-		ortp_logv_out(level,fmt,args);\
+-	if ((level)==ORTP_FATAL) abort();\
+-}while(0)
++#define ortp_logv(level,fmt,args)                                 \
++  do {                                                            \
++    if (ortp_logv_out!=NULL && ortp_log_level_enabled(level))     \
++      ortp_logv_out(level,fmt,args);                              \
++    if ((level)==ORTP_FATAL)                                      \
++      abort();                                                    \
++  } while(0)
+ #else
+ void ortp_logv(int level, const char *fmt, va_list args);
+ #endif
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110712/27d8677f/attachment.html>


More information about the macports-changes mailing list