View | Details | Raw Unified | Return to bug 230848
Collapse All | Expand All

(-)games/ecwolf/Makefile (+35 lines)
Added Link Here
1
# $FreeBSD$
2
3
PORTNAME=	ecwolf
4
PORTVERSION=	1.3.3
5
DISTVERSIONSUFFIX=	-src
6
CATEGORIES=	games
7
MASTER_SITES=	http://maniacsvault.net/ecwolf/files/ecwolf/1.x/
8
9
MAINTAINER=	pkubaj@anongoth.pl
10
COMMENT=	Source port for Wolfenstein 3D, Spear of Destiny
11
12
LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig \
13
		libfreetype.so:print/freetype2
14
15
USES=		cmake jpeg localbase:ldflags gnome pkgconfig tar:xz
16
USE_GNOME=	cairo gdkpixbuf2 gtk20
17
USE_SDL=	mixer sdl
18
19
SUB_FILES=	ecwolf pkg-message
20
SUB_LIST=	PORTNAME=${PORTNAME}
21
22
PLIST_FILES=	bin/${PORTNAME} \
23
		share/${PORTNAME}/${PORTNAME} \
24
		share/${PORTNAME}/${PORTNAME}.pk3
25
26
do-install:
27
	${MKDIR} ${STAGEDIR}${DATADIR}
28
	${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${PORTNAME} \
29
		${STAGEDIR}${DATADIR}/
30
	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} \
31
		${STAGEDIR}${PREFIX}/bin/
32
	${INSTALL_DATA} ${BUILD_WRKSRC}/${PORTNAME}.pk3 \
33
		${STAGEDIR}${DATADIR}
34
35
.include <bsd.port.mk>
(-)games/ecwolf/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1534522946
2
SHA256 (ecwolf-1.3.3-src.tar.xz) = 346b519745f399256463a7cf56d84c1315b1436c95e3a28aa287fc268ed96de9
3
SIZE (ecwolf-1.3.3-src.tar.xz) = 7641476
(-)games/ecwolf/files/ecwolf.in (+3 lines)
Added Link Here
1
#!/bin/sh
2
3
cd %%PREFIX%%/share/ecwolf && ./ecwolf
(-)games/ecwolf/files/patch-src_CMakeLists.txt (+24 lines)
Added Link Here
1
--- src/CMakeLists.txt.orig	2019-01-29 16:31:24 UTC
2
+++ src/CMakeLists.txt
3
@@ -40,9 +40,9 @@ else(GPL)
4
 	set(EXTRA_LIBRARIES)
5
 endif(GPL)
6
 
7
-find_package(SDL REQUIRED)
8
-find_package(SDL_mixer REQUIRED)
9
-include_directories(${SDLMIXER_INCLUDE_DIR} ${SDL_INCLUDE_DIR} ${ZLIB_INCLUDE_DIR} ${BZIP2_INCLUDE_DIR} ${JPEG_INCLUDE_DIR})
10
+pkg_search_module(SDL REQUIRED sdl sdl)
11
+pkg_search_module(SDLMIXER REQUIRED SDL_mixer)
12
+include_directories(${SDLMIXER_INCLUDE_DIRS} ${SDL_INCLUDE_DIRS}/SDL ${ZLIB_INCLUDE_DIR} ${BZIP2_INCLUDE_DIR} ${JPEG_INCLUDE_DIR})
13
 
14
 check_function_exists(stricmp STRICMP_EXISTS)
15
 check_function_exists(strnicmp STRNICMP_EXISTS)
16
@@ -320,7 +320,7 @@ else(NOT ANDROID)
17
 endif(NOT ANDROID)
18
 
19
 add_dependencies(ecwolf lzma gdtoa revision_check)
20
-target_link_libraries(ecwolf ${EXTRA_LIBRARIES} ${SDL_LIBRARY} ${SDLMIXER_LIBRARY} ${ZLIB_LIBRARY} ${BZIP2_LIBRARIES} ${JPEG_LIBRARIES} lzma gdtoa)
21
+target_link_libraries(ecwolf ${EXTRA_LIBRARIES} ${SDL_LIBRARIES} ${SDLMIXER_LIBRARIES} ${ZLIB_LIBRARY} ${BZIP2_LIBRARIES} ${JPEG_LIBRARIES} lzma gdtoa)
22
 set_target_properties(ecwolf PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${OUTPUT_DIR})
23
 
24
 # Install
(-)games/ecwolf/files/patch-src_wl__iwad__picker.cpp (+19 lines)
Added Link Here
1
--- src/wl_iwad_picker.cpp.orig	2018-08-17 16:43:51 UTC
2
+++ src/wl_iwad_picker.cpp
3
@@ -1,6 +1,7 @@
4
 // From ZDoom!
5
 
6
 #include <algorithm>
7
+#include <sys/wait.h>
8
 
9
 #include "zdoomsupport.h"
10
 
11
@@ -227,7 +228,7 @@ int I_PickIWad (WadStuff *wads, int numwads, bool show
12
 	const char *str;
13
 	if((str=getenv("KDE_FULL_SESSION")) && strcmp(str, "true") == 0)
14
 	{
15
-		FString cmd("kdialog --title \""GAMESIG" "DOTVERSIONSTR": Select an IWAD to use\""
16
+		FString cmd("kdialog --title \"" GAMESIG " " DOTVERSIONSTR ": Select an IWAD to use\""
17
 		            " --menu \"" GAMENAME " found more than one IWAD\n"
18
 		            "Select from the list below to determine which one to use:\"");
19
 
(-)games/ecwolf/files/pkg-message.in (+5 lines)
Added Link Here
1
================================================================================
2
3
To play this game, unpack original files to %%PREFIX%%/share/%%PORTNAME%%.
4
5
================================================================================
(-)games/ecwolf/pkg-descr (+10 lines)
Added Link Here
1
ECWolf is an advanced source port for Wolfenstein 3D, Spear of Destiny,
2
and Super 3D Noah's Ark based off of the Wolf4SDL code base. ECWolf pulls
3
a substantial amount of code from ZDoom and aims to provide a wide array of mod
4
editing capabilities without the need to modify the source code.
5
Most importantly you will no longer need to replace entire data sets.
6
With ECWolf you could for example add a weapon without needing to distribute
7
every sprite in the game along with it. Mods will be neatly packaged into
8
a single file just like they are for Doom.
9
10
WWW: https://maniacsvault.net/ecwolf

Return to bug 230848