Ticket #26537: wesnoth.diff
File wesnoth.diff, 3.3 KB (added by ryandesign (Ryan Carsten Schmidt), 14 years ago) |
---|
-
Portfile
4 4 5 5 name wesnoth 6 6 version 1.8.4 7 revision 1 7 8 categories games 8 9 platforms darwin 9 10 maintainers nodetwo.com:jordan … … 44 45 port:zlib 45 46 46 47 patchfiles patch-configure.ac.diff \ 47 patch-m4-boost.m4.diff 48 patch-m4-boost.m4.diff \ 49 patch-m4-boost.m4.2.diff \ 50 patch-src-gettext.hpp.diff 48 51 49 52 use_autoreconf yes 50 53 … … 58 61 --disable-strict-compilation \ 59 62 --with-boost=${prefix} 60 63 61 configure.cppflags-append -DBOOST_IOSTREAMS_USE_DEPRECATED62 63 64 platform macosx { 64 65 pre-destroot { 65 66 xinstall -d ${destroot}${applications_dir}/Wesnoth.app/Contents/MacOS -
files/patch-src-gettext.hpp.diff
1 https://gna.org/bugs/?16694 2 --- src/gettext.hpp.orig 2010/09/19 12:04:53 46601 3 +++ src/gettext.hpp 2010/09/19 12:04:56 46602 4 @@ -37,6 +37,11 @@ 5 6 #include <libintl.h> 7 8 +#ifdef setlocale 9 +// Someone in libintl world decided it was a good idea to define a "setlocale" macro. 10 +#undef setlocale 11 +#endif 12 + 13 const char* egettext(const char*); 14 const char* sgettext(const char*); 15 const char* dsgettext(const char * domainname, const char *msgid); -
files/patch-configure.ac.diff
1 1 https://gna.org/bugs/?16696 2 --- configure.ac.orig 2010-08-08 10:53:09.000000000 -0500 3 +++ configure.ac 2010-09-14 15:16:43.000000000 -0500 4 @@ -114,14 +114,8 @@ 5 CXXFLAGS="-Werror -Wno-unused-parameter -Wno-strict-aliasing $CXXFLAGS" 2 --- configure.ac.orig 2010/09/19 12:04:49 46600 3 +++ configure.ac 2010/09/19 12:04:53 46601 4 @@ -115,7 +115,7 @@ 6 5 fi 7 6 8 -# Make tests default in svn version7 # Make tests default in svn version 9 8 -svn_in_version=`expr match "$WESNOTH_VERSION" '.*svn'` 10 -test_build=yes 11 -if test $svn_in_version = 0 12 -then 13 #disabling building tests for release version 14 test_build=no 15 -fi 16 17 AC_ARG_ENABLE([tests], 18 AS_HELP_STRING([--enable-tests], [build unit tests]), 9 +svn_in_version=`expr "$WESNOTH_VERSION" : '.*svn'` 10 test_build=yes 11 if test $svn_in_version = 0 12 then -
files/patch-m4-boost.m4.2.diff
1 https://gna.org/bugs/?16693 2 --- m4/boost.m4.orig 2010/09/19 11:59:47 46599 3 +++ m4/boost.m4 2010/09/19 12:04:49 46600 4 @@ -463,7 +463,7 @@ 5 AC_DEFUN([BOOST_IOSTREAMS], 6 [BOOST_FIND_LIB([iostreams], [$1], 7 [boost/iostreams/device/file_descriptor.hpp], 8 - [boost::iostreams::file_descriptor fd(0); fd.close();]) 9 + [boost::iostreams::file_descriptor fd; fd.close();]) 10 ])# BOOST_IOSTREAMS 11 12