[46785] trunk/dports/textproc/doxygen
css at macports.org
css at macports.org
Thu Feb 12 18:16:05 PST 2009
Revision: 46785
http://trac.macports.org/changeset/46785
Author: css at macports.org
Date: 2009-02-12 18:16:04 -0800 (Thu, 12 Feb 2009)
Log Message:
-----------
Fix building doxygen on pre-Leopard systems by patching the iconv() function arguments. Patches courtesy mcalhoun. refs #18258
Modified Paths:
--------------
trunk/dports/textproc/doxygen/Portfile
Added Paths:
-----------
trunk/dports/textproc/doxygen/files/patch-portable.cpp.diff
Modified: trunk/dports/textproc/doxygen/Portfile
===================================================================
--- trunk/dports/textproc/doxygen/Portfile 2009-02-13 02:10:56 UTC (rev 46784)
+++ trunk/dports/textproc/doxygen/Portfile 2009-02-13 02:16:04 UTC (rev 46785)
@@ -93,4 +93,9 @@
global tmake_conf
set tmake_conf ${worksrcpath}/tmake/lib/macosx-c++/tmake.conf
configure.args-append --platform macosx-c++
+
+ # If pre-Leopard, apply this patch for iconv().
+ if { ${os.major} < 9 } {
+ patchfiles-append patch-portable.cpp.diff
+ }
}
Added: trunk/dports/textproc/doxygen/files/patch-portable.cpp.diff
===================================================================
--- trunk/dports/textproc/doxygen/files/patch-portable.cpp.diff (rev 0)
+++ trunk/dports/textproc/doxygen/files/patch-portable.cpp.diff 2009-02-13 02:16:04 UTC (rev 46785)
@@ -0,0 +1,12 @@
+--- src/portable.cpp.orig 2008-06-09 06:43:07.000000000 -0400
++++ src/portable.cpp 2009-02-10 17:57:00.000000000 -0500
+@@ -380,8 +380,7 @@
+ // libiconv is a mess. For some platforms/version the prototype of inbuf is
+ // "const char **", for others it is "char **". C++ requires the proper cast to
+ // avoid a compile error, that is were the CASTNEEDED is for.
+-#if ((defined(_LIBICONV_VERSION) && (_LIBICONV_VERSION>=0x0109) && \
+- !((defined(_OS_MAC_) || defined(Q_OS_MACX) )&& (_LIBICONV_VERSION==0x010B))) \
++#if ((defined(_LIBICONV_VERSION) && (_LIBICONV_VERSION>=0x0109) ) \
+ || defined(_OS_SOLARIS_) \
+ || defined(_OS_NETBSD_) \
+ )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090212/bc2c9ec7/attachment.html>
More information about the macports-changes
mailing list