Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Mar 2019 15:26:00 +0000 (UTC)
From:      Steve Wills <swills@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r496267 - in head/games: . ecwolf ecwolf/files
Message-ID:  <201903191526.x2JFQ0X8088341@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: swills
Date: Tue Mar 19 15:26:00 2019
New Revision: 496267
URL: https://svnweb.freebsd.org/changeset/ports/496267

Log:
  games/ecwolf: create port
  
  ECWolf is an advanced source port for Wolfenstein 3D, Spear of Destiny,
  and Super 3D Noah's Ark based off of the Wolf4SDL code base. ECWolf pulls
  a substantial amount of code from ZDoom and aims to provide a wide array of mod
  editing capabilities without the need to modify the source code.
  Most importantly you will no longer need to replace entire data sets.
  With ECWolf you could for example add a weapon without needing to distribute
  every sprite in the game along with it. Mods will be neatly packaged into
  a single file just like they are for Doom.
  
  WWW: https://maniacsvault.net/ecwolf
  
  PR:		230848
  Submitted by:	Piotr Kubaj <pkubaj@anongoth.pl>

Added:
  head/games/ecwolf/
  head/games/ecwolf/Makefile   (contents, props changed)
  head/games/ecwolf/distinfo   (contents, props changed)
  head/games/ecwolf/files/
  head/games/ecwolf/files/ecwolf.in   (contents, props changed)
  head/games/ecwolf/files/patch-src_CMakeLists.txt   (contents, props changed)
  head/games/ecwolf/files/patch-src_wl__iwad__picker.cpp   (contents, props changed)
  head/games/ecwolf/files/pkg-message.in   (contents, props changed)
  head/games/ecwolf/pkg-descr   (contents, props changed)
Modified:
  head/games/Makefile   (contents, props changed)

Modified: head/games/Makefile
==============================================================================
--- head/games/Makefile	Tue Mar 19 15:14:17 2019	(r496266)
+++ head/games/Makefile	Tue Mar 19 15:26:00 2019	(r496267)
@@ -227,6 +227,7 @@
     SUBDIR += dxx-rebirth
     SUBDIR += easyrpg-player
     SUBDIR += eboard
+    SUBDIR += ecwolf
     SUBDIR += edge
     SUBDIR += editss
     SUBDIR += eduke32

Added: head/games/ecwolf/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/ecwolf/Makefile	Tue Mar 19 15:26:00 2019	(r496267)
@@ -0,0 +1,35 @@
+# $FreeBSD$
+
+PORTNAME=	ecwolf
+PORTVERSION=	1.3.3
+DISTVERSIONSUFFIX=	-src
+CATEGORIES=	games
+MASTER_SITES=	http://maniacsvault.net/ecwolf/files/ecwolf/1.x/
+
+MAINTAINER=	pkubaj@anongoth.pl
+COMMENT=	Source port for Wolfenstein 3D, Spear of Destiny
+
+LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig \
+		libfreetype.so:print/freetype2
+
+USES=		cmake jpeg localbase:ldflags gnome pkgconfig tar:xz
+USE_GNOME=	cairo gdkpixbuf2 gtk20
+USE_SDL=	mixer sdl
+
+SUB_FILES=	ecwolf pkg-message
+SUB_LIST=	PORTNAME=${PORTNAME}
+
+PLIST_FILES=	bin/${PORTNAME} \
+		share/${PORTNAME}/${PORTNAME} \
+		share/${PORTNAME}/${PORTNAME}.pk3
+
+do-install:
+	${MKDIR} ${STAGEDIR}${DATADIR}
+	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${PORTNAME} \
+		${STAGEDIR}${DATADIR}/
+	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} \
+		${STAGEDIR}${PREFIX}/bin/
+	${INSTALL_DATA} ${BUILD_WRKSRC}/${PORTNAME}.pk3 \
+		${STAGEDIR}${DATADIR}
+
+.include <bsd.port.mk>

Added: head/games/ecwolf/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/ecwolf/distinfo	Tue Mar 19 15:26:00 2019	(r496267)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1534522946
+SHA256 (ecwolf-1.3.3-src.tar.xz) = 346b519745f399256463a7cf56d84c1315b1436c95e3a28aa287fc268ed96de9
+SIZE (ecwolf-1.3.3-src.tar.xz) = 7641476

Added: head/games/ecwolf/files/ecwolf.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/ecwolf/files/ecwolf.in	Tue Mar 19 15:26:00 2019	(r496267)
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+cd %%PREFIX%%/share/ecwolf && ./ecwolf

Added: head/games/ecwolf/files/patch-src_CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/ecwolf/files/patch-src_CMakeLists.txt	Tue Mar 19 15:26:00 2019	(r496267)
@@ -0,0 +1,24 @@
+--- src/CMakeLists.txt.orig	2019-01-29 16:31:24 UTC
++++ src/CMakeLists.txt
+@@ -40,9 +40,9 @@ else(GPL)
+ 	set(EXTRA_LIBRARIES)
+ endif(GPL)
+ 
+-find_package(SDL REQUIRED)
+-find_package(SDL_mixer REQUIRED)
+-include_directories(${SDLMIXER_INCLUDE_DIR} ${SDL_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR} ${BZIP2_INCLUDE_DIR} ${JPEG_INCLUDE_DIR})
++pkg_search_module(SDL REQUIRED sdl sdl)
++pkg_search_module(SDLMIXER REQUIRED SDL_mixer)
++include_directories(${SDLMIXER_INCLUDE_DIRS} ${SDL_INCLUDE_DIRS}/SDL ${ZLIB_INCLUDE_DIR} ${BZIP2_INCLUDE_DIR} ${JPEG_INCLUDE_DIR})
+ 
+ check_function_exists(stricmp STRICMP_EXISTS)
+ check_function_exists(strnicmp STRNICMP_EXISTS)
+@@ -320,7 +320,7 @@ else(NOT ANDROID)
+ endif(NOT ANDROID)
+ 
+ add_dependencies(ecwolf lzma gdtoa revision_check)
+-target_link_libraries(ecwolf ${EXTRA_LIBRARIES} ${SDL_LIBRARY} ${SDLMIXER_LIBRARY} ${ZLIB_LIBRARY} ${BZIP2_LIBRARIES} ${JPEG_LIBRARIES} lzma gdtoa)
++target_link_libraries(ecwolf ${EXTRA_LIBRARIES} ${SDL_LIBRARIES} ${SDLMIXER_LIBRARIES} ${ZLIB_LIBRARY} ${BZIP2_LIBRARIES} ${JPEG_LIBRARIES} lzma gdtoa)
+ set_target_properties(ecwolf PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${OUTPUT_DIR})
+ 
+ # Install

Added: head/games/ecwolf/files/patch-src_wl__iwad__picker.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/ecwolf/files/patch-src_wl__iwad__picker.cpp	Tue Mar 19 15:26:00 2019	(r496267)
@@ -0,0 +1,19 @@
+--- src/wl_iwad_picker.cpp.orig	2018-08-17 16:43:51 UTC
++++ src/wl_iwad_picker.cpp
+@@ -1,6 +1,7 @@
+ // From ZDoom!
+ 
+ #include <algorithm>
++#include <sys/wait.h>
+ 
+ #include "zdoomsupport.h"
+ 
+@@ -227,7 +228,7 @@ int I_PickIWad (WadStuff *wads, int numwads, bool show
+ 	const char *str;
+ 	if((str=getenv("KDE_FULL_SESSION")) && strcmp(str, "true") == 0)
+ 	{
+-		FString cmd("kdialog --title \""GAMESIG" "DOTVERSIONSTR": Select an IWAD to use\""
++		FString cmd("kdialog --title \"" GAMESIG " " DOTVERSIONSTR ": Select an IWAD to use\""
+ 		            " --menu \"" GAMENAME " found more than one IWAD\n"
+ 		            "Select from the list below to determine which one to use:\"");
+ 

Added: head/games/ecwolf/files/pkg-message.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/ecwolf/files/pkg-message.in	Tue Mar 19 15:26:00 2019	(r496267)
@@ -0,0 +1,5 @@
+================================================================================
+
+To play this game, unpack original files to %%PREFIX%%/share/%%PORTNAME%%.
+
+================================================================================

Added: head/games/ecwolf/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/ecwolf/pkg-descr	Tue Mar 19 15:26:00 2019	(r496267)
@@ -0,0 +1,10 @@
+ECWolf is an advanced source port for Wolfenstein 3D, Spear of Destiny,
+and Super 3D Noah's Ark based off of the Wolf4SDL code base. ECWolf pulls
+a substantial amount of code from ZDoom and aims to provide a wide array of mod
+editing capabilities without the need to modify the source code.
+Most importantly you will no longer need to replace entire data sets.
+With ECWolf you could for example add a weapon without needing to distribute
+every sprite in the game along with it. Mods will be neatly packaged into
+a single file just like they are for Doom.
+
+WWW: https://maniacsvault.net/ecwolf



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903191526.x2JFQ0X8088341>