git: 58ae49c36066 - main - games/warzone2100: update to 4.0.0
Dmitry Marakasov
amdmi3 at FreeBSD.org
Fri Apr 9 23:06:28 UTC 2021
The branch main has been updated by amdmi3:
URL: https://cgit.FreeBSD.org/ports/commit/?id=58ae49c3606664c0c6e3714317498c56976c1584
commit 58ae49c3606664c0c6e3714317498c56976c1584
Author: Dmitry Marakasov <amdmi3 at FreeBSD.org>
AuthorDate: 2021-04-08 22:30:47 +0000
Commit: Dmitry Marakasov <amdmi3 at FreeBSD.org>
CommitDate: 2021-04-09 23:03:49 +0000
games/warzone2100: update to 4.0.0
---
games/warzone2100/Makefile | 33 +++++++++++++++++++++++++--------
games/warzone2100/distinfo | 6 +++---
games/warzone2100/pkg-plist | 5 +++++
3 files changed, 33 insertions(+), 11 deletions(-)
diff --git a/games/warzone2100/Makefile b/games/warzone2100/Makefile
index d7d5ac90249b..ed12a7a28d98 100644
--- a/games/warzone2100/Makefile
+++ b/games/warzone2100/Makefile
@@ -1,9 +1,8 @@
PORTNAME= warzone2100
-PORTVERSION= 3.4.1
+PORTVERSION= 4.0.0
CATEGORIES= games
MASTER_SITES= SF/${PORTNAME}/releases/${PORTVERSION}/
DISTNAME= ${PORTNAME}_src
-DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
MAINTAINER= amdmi3 at FreeBSD.org
COMMENT= Innovative 3D real-time strategy game
@@ -21,28 +20,46 @@ LIB_DEPENDS= libphysfs.so:devel/physfs \
libfreetype.so:print/freetype2 \
libharfbuzz.so:print/harfbuzz \
libsodium.so:security/libsodium \
- libcurl.so:ftp/curl
+ libcurl.so:ftp/curl \
+ libsqlite3.so:databases/sqlite3 \
+ libminiupnpc.so:net/miniupnpc
RUN_DEPENDS= ${LOCALBASE}/share/fonts/dejavu/DejaVuSans.ttf:x11-fonts/dejavu
USES= cmake bison compiler:c++11-lib gl openal:al pkgconfig \
- qmake:no_env qt:5 sdl tar:xz
-USE_GL= gl glu glew
+ sdl tar:xz
+USE_GL= gl
USE_SDL= sdl2
-USE_QT= core gui widgets script buildtools_build qmake_build
CMAKE_ARGS= -DWZ_DISTRIBUTOR="FreeBSD ports" \
-DCMAKE_DISABLE_FIND_PACKAGE_Asciidoctor=TRUE \
-DCMAKE_DISABLE_FIND_PACKAGE_Git=TRUE \
- -DWZ_ENABLE_WARNINGS_AS_ERRORS=FALSE
+ -DWZ_ENABLE_WARNINGS_AS_ERRORS=FALSE \
+ -DFETCHCONTENT_FULLY_DISCONNECTED=TRUE
WRKSRC= ${WRKDIR}/${PORTNAME}
PORTDOCS= *
PORTDATA= *
-OPTIONS_DEFINE= DOCS NLS
+OPTIONS_DEFINE= VULKAN DOCS NLS
+OPTIONS_DEFAULT=VULKAN
OPTIONS_SUB= yes
NLS_USES= gettext
NLS_CMAKE_BOOL= ENABLE_NLS
+VULKAN_DESC= Enable Vulkan backend
+VULKAN_LIB_DEPENDS= libvulkan.so:graphics/vulkan-loader
+VULKAN_BUILD_DEPENDS= vulkan-headers>0:graphics/vulkan-headers \
+ ${LOCALBASE}/bin/glslc:graphics/shaderc
+VULKAN_CMAKE_BOOL= WZ_ENABLE_BACKEND_VULKAN
+
+post-patch:
+ @${FIND} ${WRKSRC} -type f -iname "*cmake*" -exec \
+ ${REINPLACE_CMD} -i '' -e '/find_package(Git/d' {} \;
+
+post-extract:
+.for bundled in miniupnp SQLiteCpp/sqlite3
+ @${RM} -rf ${WRKSRC}/3rdparty/${bundled}
+.endfor
+
.include <bsd.port.mk>
diff --git a/games/warzone2100/distinfo b/games/warzone2100/distinfo
index a3580e7b27b6..61d0f40b9fc4 100644
--- a/games/warzone2100/distinfo
+++ b/games/warzone2100/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1595329053
-SHA256 (warzone2100-3.4.1/warzone2100_src.tar.xz) = ea2cd7f016118a89244ebef8ce9424f71c060bcd5895b791d3e1cec02b555b69
-SIZE (warzone2100-3.4.1/warzone2100_src.tar.xz) = 89169752
+TIMESTAMP = 1617823324
+SHA256 (warzone2100_src.tar.xz) = 3368f6653a5ebe5579938f0ebbcfe7907b1f0fc635f0a7aecc5d68ebc50124b5
+SIZE (warzone2100_src.tar.xz) = 330953468
diff --git a/games/warzone2100/pkg-plist b/games/warzone2100/pkg-plist
index 8354e9c59978..281bd7978d5d 100644
--- a/games/warzone2100/pkg-plist
+++ b/games/warzone2100/pkg-plist
@@ -2,6 +2,8 @@ bin/warzone2100
man/man6/warzone2100.6.gz
share/applications/warzone2100.desktop
share/icons/warzone2100.png
+%%NLS%%share/locale/af_ZA/LC_MESSAGES/warzone2100.mo
+%%NLS%%share/locale/bg_BG/LC_MESSAGES/warzone2100.mo
%%NLS%%share/locale/ca_ES/LC_MESSAGES/warzone2100.mo
%%NLS%%share/locale/cs/LC_MESSAGES/warzone2100.mo
%%NLS%%share/locale/da/LC_MESSAGES/warzone2100.mo
@@ -15,9 +17,11 @@ share/icons/warzone2100.png
%%NLS%%share/locale/fr/LC_MESSAGES/warzone2100.mo
%%NLS%%share/locale/fy/LC_MESSAGES/warzone2100.mo
%%NLS%%share/locale/ga/LC_MESSAGES/warzone2100.mo
+%%NLS%%share/locale/he_IL/LC_MESSAGES/warzone2100.mo
%%NLS%%share/locale/hr/LC_MESSAGES/warzone2100.mo
%%NLS%%share/locale/hu/LC_MESSAGES/warzone2100.mo
%%NLS%%share/locale/id/LC_MESSAGES/warzone2100.mo
+%%NLS%%share/locale/id_ID/LC_MESSAGES/warzone2100.mo
%%NLS%%share/locale/it/LC_MESSAGES/warzone2100.mo
%%NLS%%share/locale/ko/LC_MESSAGES/warzone2100.mo
%%NLS%%share/locale/la/LC_MESSAGES/warzone2100.mo
@@ -32,6 +36,7 @@ share/icons/warzone2100.png
%%NLS%%share/locale/sk/LC_MESSAGES/warzone2100.mo
%%NLS%%share/locale/sl/LC_MESSAGES/warzone2100.mo
%%NLS%%share/locale/tr/LC_MESSAGES/warzone2100.mo
+%%NLS%%share/locale/tt_RU/LC_MESSAGES/warzone2100.mo
%%NLS%%share/locale/uk_UA/LC_MESSAGES/warzone2100.mo
%%NLS%%share/locale/zh_CN/LC_MESSAGES/warzone2100.mo
%%NLS%%share/locale/zh_TW/LC_MESSAGES/warzone2100.mo
More information about the dev-commits-ports-all
mailing list