aboutsummaryrefslogtreecommitdiff
path: root/games/widelands
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2019-06-25 15:35:21 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2019-06-25 15:35:21 +0000
commitbff4c8bc2b12baf8fd770cb3c3256ed04c0aa2fb (patch)
treed5c5ca1306ff34b7c25594778d3f5bcfa35efe7d /games/widelands
parentd21e6b487843a10bf43a0d2916a29885d56c8c04 (diff)
downloadports-bff4c8bc2b12baf8fd770cb3c3256ed04c0aa2fb.tar.gz
ports-bff4c8bc2b12baf8fd770cb3c3256ed04c0aa2fb.zip
- Update to build20
Notes
Notes: svn path=/head/; revision=505093
Diffstat (limited to 'games/widelands')
-rw-r--r--games/widelands/Makefile6
-rw-r--r--games/widelands/distinfo6
-rw-r--r--games/widelands/files/patch-CMakeLists.txt48
-rw-r--r--games/widelands/files/patch-cmake_WlFunctions.cmake4
-rw-r--r--games/widelands/files/patch-src_graphic_text_bidi.h13
-rw-r--r--games/widelands/pkg-plist4
6 files changed, 33 insertions, 48 deletions
diff --git a/games/widelands/Makefile b/games/widelands/Makefile
index 9010afe56c5d..7987f328e104 100644
--- a/games/widelands/Makefile
+++ b/games/widelands/Makefile
@@ -2,12 +2,10 @@
# $FreeBSD$
PORTNAME= widelands
-DISTVERSION= build19
-PORTREVISION= 18
+DISTVERSION= build20
CATEGORIES= games
MASTER_SITES= https://launchpad.net/widelands/${DISTVERSION}/${DISTVERSION}/+download/ \
http://mirror.amdmi3.ru/distfiles/
-DISTNAME= ${PORTNAME}-${DISTVERSION}-src
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Realtime strategy game inspired by Settlers II
@@ -27,7 +25,7 @@ CMAKE_ARGS= -DWL_INSTALL_BASEDIR="${PREFIX}" \
-DWL_VERSION="${DISTVERSION}" \
-DWL_OPTIMIZE_FLAGS=""
USE_GL= gl glew
-USE_SDL= sdl2 mixer2 image2 net2 ttf2
+USE_SDL= sdl2 mixer2 image2 ttf2
PORTDATA= *
PORTDOCS= *
diff --git a/games/widelands/distinfo b/games/widelands/distinfo
index a47d39e52d41..100b3b218a84 100644
--- a/games/widelands/distinfo
+++ b/games/widelands/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1494019260
-SHA256 (widelands-build19-src.tar.bz2) = e511f9d26828a2b71b64cdfc6674e6e847543b2da73961ab882acca36c7c01a6
-SIZE (widelands-build19-src.tar.bz2) = 181609391
+TIMESTAMP = 1557150118
+SHA256 (widelands-build20.tar.bz2) = 38594d98c74f357d4c31dd8ee2b056bfe921f42935935af915d11b792677bcb2
+SIZE (widelands-build20.tar.bz2) = 232364340
diff --git a/games/widelands/files/patch-CMakeLists.txt b/games/widelands/files/patch-CMakeLists.txt
index 38696f592eba..4f5f2ade9ff6 100644
--- a/games/widelands/files/patch-CMakeLists.txt
+++ b/games/widelands/files/patch-CMakeLists.txt
@@ -1,26 +1,23 @@
---- CMakeLists.txt.orig 2016-11-10 07:28:01 UTC
+--- CMakeLists.txt.orig 2019-05-02 05:23:39 UTC
+++ CMakeLists.txt
-@@ -93,7 +93,7 @@ endif (NOT CMAKE_BUILD_TYPE OR CMAKE_BUILD_TYPE STREQU
- if(CMAKE_BUILD_TYPE STREQUAL "Debug")
- set(WL_DEBUG_FLAGS "-g -DDEBUG")
- elseif(CMAKE_BUILD_TYPE STREQUAL "Release")
-- set(WL_OPTIMIZE_FLAGS "-O3")
-+ set(WL_OPTIMIZE_FLAGS "-O3" CACHE STRING "")
+@@ -164,7 +164,6 @@ elseif(CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
set(WL_DEBUG_FLAGS "-DNDEBUG -DNOPARACHUTE")
- elseif(CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo")
- set(WL_OPTIMIZE_FLAGS "-O3")
-@@ -179,8 +179,8 @@ endif()
- # Turn some warnings into errors.
- wl_add_flag(WL_COMPILE_DIAGNOSTICS "-Werror=format-security")
- wl_add_flag(WL_COMPILE_DIAGNOSTICS "-Werror=return-type")
--wl_add_flag(WL_COMPILE_DIAGNOSTICS "-Werror=shadow")
--wl_add_flag(WL_COMPILE_DIAGNOSTICS "-Werror=uninitialized")
-+wl_add_flag(WL_COMPILE_DIAGNOSTICS "-Wshadow")
-+wl_add_flag(WL_COMPILE_DIAGNOSTICS "-Wuninitialized")
+ option(OPTION_ASAN "Build with AddressSanitizer" ON)
+ else()
+- message(FATAL_ERROR "Unknown CMAKE_BUILD_TYPE: ${CMAKE_BUILD_TYPE}")
+ endif()
- IF (WIN32)
- add_definitions(-DMINGW_HAS_SECURE_API)
-@@ -225,7 +225,7 @@ if (NOT DEFINED WL_VERSION)
+ wl_add_flag(WL_GENERIC_CXX_FLAGS "-std=c++11")
+@@ -181,7 +180,7 @@ endif(OPTION_ASAN)
+
+ # This is set to avoid linker errors when using GLVND-libs on Linux
+ if("${OpenGL_GL_PREFERENCE}" STREQUAL "GLVND")
+- set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -lGL")
++ set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${OpenGL_GL_LIBRARY}")
+ add_compile_definitions(WL_USE_GLVND)
+ message(STATUS "Adding linker flags for GLVND.")
+ endif()
+@@ -293,7 +292,7 @@ if (NOT DEFINED WL_VERSION)
else (NOT DEFINED WL_VERSION)
add_custom_target (
InputRevision ALL
@@ -29,7 +26,7 @@
)
endif (NOT DEFINED WL_VERSION)
-@@ -244,7 +244,7 @@ add_custom_target(_run_all_tests ALL
+@@ -312,7 +311,7 @@ add_custom_target(_run_all_tests ALL
install (
FILES ${CMAKE_CURRENT_BINARY_DIR}/VERSION
@@ -38,8 +35,11 @@
CONFIGURATIONS Debug;Release
COMPONENT CoreVersionFile
)
-@@ -294,7 +294,7 @@ install(
- COPYING
+@@ -361,10 +360,9 @@ install(
+
+ install(
+ FILES
+- COPYING
CREDITS
ChangeLog
- DESTINATION ${WL_INSTALL_BASEDIR}
@@ -47,7 +47,7 @@
CONFIGURATIONS Debug;Release
COMPONENT CoreLicenseFiles
)
-@@ -302,7 +302,7 @@ install(
+@@ -372,7 +370,7 @@ install(
install(
DIRECTORY
doc
diff --git a/games/widelands/files/patch-cmake_WlFunctions.cmake b/games/widelands/files/patch-cmake_WlFunctions.cmake
index 44d2c6505f48..2bf3c582ef36 100644
--- a/games/widelands/files/patch-cmake_WlFunctions.cmake
+++ b/games/widelands/files/patch-cmake_WlFunctions.cmake
@@ -1,6 +1,6 @@
---- cmake/WlFunctions.cmake.orig 2016-11-10 07:28:01 UTC
+--- cmake/WlFunctions.cmake.orig 2019-05-02 05:23:39 UTC
+++ cmake/WlFunctions.cmake
-@@ -276,5 +276,5 @@ function(wl_binary NAME)
+@@ -270,5 +270,5 @@ function(wl_binary NAME)
#Quoting the CMake documentation on DESTINATION:
#"If a relative path is given it is interpreted relative to the value of CMAKE_INSTALL_PREFIX"
diff --git a/games/widelands/files/patch-src_graphic_text_bidi.h b/games/widelands/files/patch-src_graphic_text_bidi.h
deleted file mode 100644
index c6774b06377a..000000000000
--- a/games/widelands/files/patch-src_graphic_text_bidi.h
+++ /dev/null
@@ -1,13 +0,0 @@
-https://bazaar.launchpad.net/~widelands-dev/widelands/trunk/revision/8641
-
---- src/graphic/text/bidi.h.orig 2016-11-10 07:28:01 UTC
-+++ src/graphic/text/bidi.h
-@@ -40,7 +40,7 @@ bool has_rtl_character(std::vector<std::string> input)
- // True if a string contains a character from the script's code blocks
- bool has_script_character(const char* input, UI::FontSets::Selector script);
- UI::FontSet const* find_fontset(const char* word, const UI::FontSets& fontsets);
--std::string icustring2string(const UnicodeString& convertme);
-+std::string icustring2string(const icu::UnicodeString& convertme);
- std::string icuchar2string(const UChar& convertme);
- bool cannot_start_line(const UChar& c);
- bool cannot_end_line(const UChar& c);
diff --git a/games/widelands/pkg-plist b/games/widelands/pkg-plist
index 47129ca23123..c1c75bbb50a1 100644
--- a/games/widelands/pkg-plist
+++ b/games/widelands/pkg-plist
@@ -1,14 +1,13 @@
bin/widelands
bin/wl_map_info
bin/wl_map_object_info
-bin/wl_render_richtext
@dir %%DATADIR%%/maps/Archipelago_Sea.wmf/scripting
@dir %%DATADIR%%/maps/Atoll.wmf/scripting
@dir %%DATADIR%%/maps/Calvisson.wmf/scripting
@dir %%DATADIR%%/maps/Checkmate.wmf/scripting
@dir %%DATADIR%%/maps/Comet_Island_v2.wmf/scripting
@dir %%DATADIR%%/maps/Crater.wmf/scripting
-@dir %%DATADIR%%/maps/Crossing_the_Horizon.wmf/scripting
+@dir %%DATADIR%%/maps/Crossing_the_Horizon_v2.wmf/scripting
@dir %%DATADIR%%/maps/Desert_Tournament.wmf/scripting
@dir %%DATADIR%%/maps/Dolomites_v2.wmf/scripting
@dir %%DATADIR%%/maps/Elven_Forests.wmf/scripting
@@ -49,3 +48,4 @@ bin/wl_render_richtext
@dir %%DATADIR%%/maps/Volcanic_Winter.wmf/scripting
@dir %%DATADIR%%/maps/Wideworld.wmf/scripting
@dir %%DATADIR%%/maps/Wisent_Valley.wmf/scripting
+@dir %%DATADIR%%/tribes/buildings/markets/barbarians