[111440] trunk/dports/devel/codeblocks
jeremyhu at macports.org
jeremyhu at macports.org
Sun Sep 22 00:44:20 PDT 2013
Revision: 111440
https://trac.macports.org/changeset/111440
Author: jeremyhu at macports.org
Date: 2013-09-22 00:44:20 -0700 (Sun, 22 Sep 2013)
Log Message:
-----------
codeblocks: Fix check for libc++ and build on Mavericks
Modified Paths:
--------------
trunk/dports/devel/codeblocks/Portfile
trunk/dports/devel/codeblocks/files/patch-src-include-prep.h.diff
Modified: trunk/dports/devel/codeblocks/Portfile
===================================================================
--- trunk/dports/devel/codeblocks/Portfile 2013-09-21 23:14:57 UTC (rev 111439)
+++ trunk/dports/devel/codeblocks/Portfile 2013-09-22 07:44:20 UTC (rev 111440)
@@ -26,17 +26,6 @@
checksums rmd160 669ff13ce89729d869a4002ef56814020aede0c0 \
sha256 af57635b97aa6ea52ba120c5fac2d847c2638d53e6bdb3fdd1561b7fa7ae6ed9
-platform darwin {
- if {${os.major} >= 13} {
- depends_lib
- depends_run
- pre-fetch {
- ui_error "$name does not build on Mavericks or later."
- error "unsupported platform"
- }
- }
-}
-
# TODO: maybe more dependencies are needed in this version, please help complete the list (see also the list below)
depends_build path:bin/pkg-config:pkgconfig
depends_lib port:boost \
Modified: trunk/dports/devel/codeblocks/files/patch-src-include-prep.h.diff
===================================================================
--- trunk/dports/devel/codeblocks/files/patch-src-include-prep.h.diff 2013-09-21 23:14:57 UTC (rev 111439)
+++ trunk/dports/devel/codeblocks/files/patch-src-include-prep.h.diff 2013-09-22 07:44:20 UTC (rev 111440)
@@ -2,11 +2,14 @@
https://developer.berlios.de/bugs/?func=detailbug&bug_id=19125&group_id=5358
--- src/include/prep.h.orig
+++ src/include/prep.h
-@@ -406,14 +406,24 @@ template<typename whatever> inline ID GetID()
+@@ -406,14 +406,27 @@ template<typename whatever> inline ID GetID()
inline ID GetID() { return GetID<void>(); }
inline ID ConstructID(unsigned int i) { return ID(i); }
-+#if __cplusplus >= 201103L
++// Just included to possibly set _LIBCPP_VERSION
++#include <ciso646>
++
++#if __cplusplus >= 201103L || defined(_LIBCPP_VERSION)
+#include <memory>
+#else
#include <tr1/memory>
@@ -15,7 +18,7 @@
// Add std::shared_ptr in a namespace, so different implementations can be used with different compilers
namespace cb
{
-+#if __cplusplus >= 201103L
++#if __cplusplus >= 201103L || defined(_LIBCPP_VERSION)
+ using std::shared_ptr;
+ using std::static_pointer_cast;
+ using std::weak_ptr;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130922/40a480fc/attachment.html>
More information about the macports-changes
mailing list