mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-01 05:45:45 +00:00
- Fix runtime and build with newer compilers, get rid of gcc dependency
PR: 217002 Reported by: jbeich
This commit is contained in:
parent
4cb2ee99e3
commit
ee8deb11d0
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=435166
@ -3,7 +3,7 @@
|
||||
|
||||
PORTNAME= allacrost
|
||||
PORTVERSION= 1.0.2
|
||||
PORTREVISION= 15
|
||||
PORTREVISION= 16
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-demo/${PORTVERSION}
|
||||
DISTNAME= ${PORTNAME}_demo_source_${PORTVERSION}
|
||||
@ -23,7 +23,6 @@ GNU_CONFIGURE= yes
|
||||
USES= gettext gmake iconv jpeg lua:51 openal:al
|
||||
USE_SDL= sdl ttf net
|
||||
USE_GL= yes
|
||||
USE_GCC= any # problems in luabind
|
||||
QT_NONSTANDARD= yes # used when EDITOR enabled
|
||||
|
||||
CONFIGURE_ARGS= --datadir=${DATADIR}
|
||||
@ -63,7 +62,7 @@ post-patch-EDITOR-on:
|
||||
${WRKSRC}/Makefile.in
|
||||
|
||||
post-install-DOCS-on:
|
||||
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/MANUAL ${STAGEDIR}${DOCSDIR}/
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -0,0 +1,35 @@
|
||||
commit 3044a9053ac50977684a75c4af42b2bddb853fad
|
||||
Author: Daniel Wallin <daniel@boostpro.com>
|
||||
Date: Mon Oct 11 14:33:23 2010 +0200
|
||||
|
||||
Proper forward declarations for object wrappers. Now builds on clang!
|
||||
|
||||
diff --git luabind/detail/format_signature.hpp luabind/detail/format_signature.hpp
|
||||
index 56e7963..b447bc9 100644
|
||||
--- src/luabind/luabind/detail/format_signature.hpp
|
||||
+++ src/luabind/luabind/detail/format_signature.hpp
|
||||
@@ -13,12 +13,19 @@
|
||||
# include <boost/mpl/next.hpp>
|
||||
# include <boost/mpl/size.hpp>
|
||||
|
||||
-namespace luabind {
|
||||
+namespace luabind { namespace adl
|
||||
+{
|
||||
|
||||
-class object;
|
||||
-class argument;
|
||||
-template <class Base>
|
||||
-struct table;
|
||||
+ class object;
|
||||
+ class argument;
|
||||
+ template <class Base>
|
||||
+ struct table;
|
||||
+
|
||||
+} // namespace adl
|
||||
+
|
||||
+using adl::object;
|
||||
+using adl::argument;
|
||||
+using adl::table;
|
||||
|
||||
} // namespace luabind
|
||||
|
@ -0,0 +1,11 @@
|
||||
--- src/luabind/luabind/detail/object_rep.hpp.orig 2010-01-03 23:08:15 UTC
|
||||
+++ src/luabind/luabind/detail/object_rep.hpp
|
||||
@@ -29,6 +29,8 @@
|
||||
#include <luabind/detail/instance_holder.hpp>
|
||||
#include <luabind/detail/ref.hpp>
|
||||
|
||||
+#include <cstdlib>
|
||||
+
|
||||
namespace luabind { namespace detail
|
||||
{
|
||||
class class_rep;
|
17
games/allacrost/files/patch-src_main.cpp
Normal file
17
games/allacrost/files/patch-src_main.cpp
Normal file
@ -0,0 +1,17 @@
|
||||
--- src/main.cpp.orig 2010-05-17 22:52:57 UTC
|
||||
+++ src/main.cpp
|
||||
@@ -364,11 +364,9 @@ int main(int argc, char *argv[]) {
|
||||
// Now the program should be in app/Contents
|
||||
path.append ("/Resources/");
|
||||
chdir(path.c_str());
|
||||
- #elif (defined(__linux__) || defined(__FreeBSD__)) && !defined(RELEASE_BUILD)
|
||||
- // Look for data files in DATADIR only if they are not available in the
|
||||
- // current directory.
|
||||
- if (ifstream("dat/config/settings.lua") == NULL)
|
||||
- chdir(DATADIR);
|
||||
+ #elif (defined(__linux__) || defined(__FreeBSD__) || defined(__DragonFly__)) && !defined(RELEASE_BUILD)
|
||||
+ // Always look into datadir
|
||||
+ chdir(DATADIR);
|
||||
#endif
|
||||
|
||||
// Initialize the random number generator (note: 'unsigned int' is a required usage in this case)
|
Loading…
Reference in New Issue
Block a user