[115801] trunk/dports/graphics/ufraw

jeremyhu at macports.org jeremyhu at macports.org
Sat Jan 11 11:08:12 PST 2014


Revision: 115801
          https://trac.macports.org/changeset/115801
Author:   jeremyhu at macports.org
Date:     2014-01-11 11:08:12 -0800 (Sat, 11 Jan 2014)
Log Message:
-----------
ufraw: Fix C++ error in ufraw.h header (#42096)

Modified Paths:
--------------
    trunk/dports/graphics/ufraw/Portfile

Added Paths:
-----------
    trunk/dports/graphics/ufraw/files/
    trunk/dports/graphics/ufraw/files/cplusplus.patch

Modified: trunk/dports/graphics/ufraw/Portfile
===================================================================
--- trunk/dports/graphics/ufraw/Portfile	2014-01-11 18:51:59 UTC (rev 115800)
+++ trunk/dports/graphics/ufraw/Portfile	2014-01-11 19:08:12 UTC (rev 115801)
@@ -39,6 +39,8 @@
                  port:cfitsio \
                  port:lensfun
 
+patchfiles       cplusplus.patch
+
 configure.args   --enable-contrast
 
 post-destroot {

Added: trunk/dports/graphics/ufraw/files/cplusplus.patch
===================================================================
--- trunk/dports/graphics/ufraw/files/cplusplus.patch	                        (rev 0)
+++ trunk/dports/graphics/ufraw/files/cplusplus.patch	2014-01-11 19:08:12 UTC (rev 115801)
@@ -0,0 +1,24 @@
+--- ufraw.h.orig	2014-01-11 11:04:08.000000000 -0800
++++ ufraw.h	2014-01-11 11:04:54.000000000 -0800
+@@ -41,6 +41,10 @@
+ /* An impossible value for conf float values */
+ #define NULLF -10000.0
+ 
++#ifdef __cplusplus
++extern "C" {
++#endif // __cplusplus
++
+ /* Options, like auto-adjust buttons can be in 3 states. Enabled and disabled
+  * are obvious. Apply means that the option was selected and some function
+  * has to act accourdingly, before changing to one of the first two states */
+@@ -78,10 +82,6 @@ extern UFName ufRawImage;
+ extern UFName ufRawResources;
+ extern UFName ufCommandLine;
+ 
+-#ifdef __cplusplus
+-extern "C" {
+-#endif // __cplusplus
+-
+     UFObject *ufraw_image_new();
+ #ifdef HAVE_LENSFUN
+     UFObject *ufraw_lensfun_new();
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140111/5813412b/attachment.html>


More information about the macports-changes mailing list