mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
Fix build with clang/libc++
This commit is contained in:
parent
ab4355c3cd
commit
74ba0b7dd4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=327479
@ -25,7 +25,7 @@ USE_OPENAL= al
|
||||
USE_LUA= 5.1
|
||||
USE_SDL= sdl ttf net
|
||||
USE_GL= yes
|
||||
USE_GCC= 4.2+
|
||||
USE_GCC= yes # problems in luabind
|
||||
USES= gettext
|
||||
|
||||
CONFIGURE_ARGS= --datadir=${DATADIR}
|
||||
|
@ -0,0 +1,18 @@
|
||||
--- src/luabind/luabind/detail/call_function.hpp.orig 2010-01-04 02:08:15.000000000 +0300
|
||||
+++ src/luabind/luabind/detail/call_function.hpp 2013-09-17 16:37:59.151519546 +0400
|
||||
@@ -323,7 +323,8 @@
|
||||
|
||||
#endif // LUABIND_CALL_FUNCTION_HPP_INCLUDED
|
||||
|
||||
-#elif BOOST_PP_ITERATION_FLAGS() == 1
|
||||
+#else
|
||||
+#if BOOST_PP_ITERATION_FLAGS() == 1
|
||||
|
||||
#define LUABIND_TUPLE_PARAMS(z, n, data) const A##n *
|
||||
#define LUABIND_OPERATOR_PARAMS(z, n, data) const A##n & a##n
|
||||
@@ -440,4 +441,5 @@
|
||||
|
||||
|
||||
#endif
|
||||
+#endif
|
||||
|
@ -0,0 +1,17 @@
|
||||
--- src/luabind/luabind/detail/call_member.hpp.orig 2010-01-04 02:08:15.000000000 +0300
|
||||
+++ src/luabind/luabind/detail/call_member.hpp 2013-09-17 06:10:17.991226170 +0400
|
||||
@@ -316,7 +316,8 @@
|
||||
|
||||
#endif // LUABIND_CALL_MEMBER_HPP_INCLUDED
|
||||
|
||||
-#elif BOOST_PP_ITERATION_FLAGS() == 1
|
||||
+#else
|
||||
+#if BOOST_PP_ITERATION_FLAGS() == 1
|
||||
|
||||
#define LUABIND_TUPLE_PARAMS(z, n, data) const A##n *
|
||||
#define LUABIND_OPERATOR_PARAMS(z, n, data) const A##n & a##n
|
||||
@@ -361,3 +362,4 @@
|
||||
|
||||
#endif
|
||||
|
||||
+#endif
|
@ -0,0 +1,19 @@
|
||||
--- src/luabind/luabind/detail/get_signature.hpp.orig 2010-01-04 02:08:15.000000000 +0300
|
||||
+++ src/luabind/luabind/detail/get_signature.hpp 2013-09-17 16:37:38.311587583 +0400
|
||||
@@ -160,7 +160,8 @@
|
||||
|
||||
#endif // LUABIND_GET_SIGNATURE_HPP_INCLUDED
|
||||
|
||||
-#elif BOOST_PP_ITERATION_FLAGS() == 1
|
||||
+#else
|
||||
+#if BOOST_PP_ITERATION_FLAGS() == 1
|
||||
|
||||
// member functions
|
||||
template<class T, class C BOOST_PP_COMMA_IF(BOOST_PP_ITERATION()) BOOST_PP_ENUM_PARAMS(BOOST_PP_ITERATION(), class A)>
|
||||
@@ -212,5 +213,6 @@
|
||||
}
|
||||
|
||||
#endif
|
||||
+#endif
|
||||
|
||||
#endif // LUABIND_NO_ERROR_CHECKING
|
@ -0,0 +1,17 @@
|
||||
--- ./src/luabind/luabind/wrapper_base.hpp.orig 2010-01-04 02:08:15.000000000 +0300
|
||||
+++ ./src/luabind/luabind/wrapper_base.hpp 2013-09-17 06:29:47.072226158 +0400
|
||||
@@ -89,7 +89,8 @@
|
||||
|
||||
#endif // LUABIND_WRAPPER_BASE_HPP_INCLUDED
|
||||
|
||||
-#elif BOOST_PP_ITERATION_FLAGS() == 1
|
||||
+#else
|
||||
+#if BOOST_PP_ITERATION_FLAGS() == 1
|
||||
|
||||
#define LUABIND_TUPLE_PARAMS(z, n, data) const A##n *
|
||||
#define LUABIND_OPERATOR_PARAMS(z, n, data) const A##n & a##n
|
||||
@@ -188,3 +189,4 @@
|
||||
#undef N
|
||||
|
||||
#endif
|
||||
+#endif
|
@ -1,6 +1,14 @@
|
||||
--- src/utils.cpp.orig 2010-09-02 20:33:23.000000000 +0400
|
||||
+++ src/utils.cpp 2010-09-02 20:34:01.000000000 +0400
|
||||
@@ -337,7 +337,7 @@
|
||||
--- src/utils.cpp.orig 2010-05-17 03:38:35.000000000 +0400
|
||||
+++ src/utils.cpp 2013-09-17 03:18:36.343226027 +0400
|
||||
@@ -21,6 +21,7 @@
|
||||
#else
|
||||
#include <dirent.h>
|
||||
#include <sys/types.h>
|
||||
+ #include <unistd.h>
|
||||
#include <pwd.h>
|
||||
#endif
|
||||
|
||||
@@ -337,7 +338,7 @@
|
||||
}
|
||||
|
||||
const char *source_char = reinterpret_cast<const char *>(source);
|
||||
@ -9,7 +17,7 @@
|
||||
// We are using an iconv API that uses const char*
|
||||
const char *sourceChar = source_char;
|
||||
#else
|
||||
@@ -369,7 +369,7 @@
|
||||
@@ -369,7 +370,7 @@
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -27,7 +27,7 @@ USE_SDL= sdl image ttf
|
||||
USE_GL= gl
|
||||
USE_OPENAL= yes
|
||||
USE_LUA= 5.1
|
||||
USE_GCC= any # problems in luabind; recheck with next update
|
||||
USE_GCC= yes # problems in luabind; recheck with next update
|
||||
LDFLAGS+= -L${LOCALBASE}/lib ${ICONV_LIB} -lintl
|
||||
|
||||
PORTDOCS= *
|
||||
|
Loading…
Reference in New Issue
Block a user