Ticket #26537: wesnoth.diff

File wesnoth.diff, 3.3 KB (added by ryandesign (Ryan Carsten Schmidt), 14 years ago)

proposed patch

  • Portfile

     
    44
    55name                    wesnoth
    66version                 1.8.4
     7revision                1
    78categories              games
    89platforms               darwin
    910maintainers             nodetwo.com:jordan
     
    4445                        port:zlib
    4546
    4647patchfiles              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
    4851
    4952use_autoreconf          yes
    5053
     
    5861                        --disable-strict-compilation \
    5962                        --with-boost=${prefix}
    6063
    61 configure.cppflags-append   -DBOOST_IOSTREAMS_USE_DEPRECATED
    62 
    6364platform macosx {
    6465    pre-destroot {
    6566        xinstall -d ${destroot}${applications_dir}/Wesnoth.app/Contents/MacOS
  • files/patch-src-gettext.hpp.diff

     
     1https://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

     
    11https://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 @@
    65 fi
    76 
    8 -# Make tests default in svn version
     7 # Make tests default in svn version
    98-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

     
     1https://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