pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games add games/ecwolf



details:   https://anonhg.NetBSD.org/pkgsrc/rev/de9518df2409
branches:  trunk
changeset: 457875:de9518df2409
user:      nia <nia%pkgsrc.org@localhost>
date:      Sat Sep 04 10:36:29 2021 +0000

description:
add games/ecwolf

ECWolf is an advanced source port of the Wolfenstein 3D engine based upon
Wolf4SDL with some back ports from ZDoom. It provides substantially boosted
capabilities for creating mods without requiring source code edits using
scripting and other tools familiar to users of ZDoom.

For players it offers modern features such as support for modern control
schemes and wide screen. Being based on the Wolfenstein 3D engine and using an
enhanced version of the original software renderer, it provides a relatively
accurate play experience to vanilla while modernizing.

Currently supported games are Wolfenstein 3D, Spear of Destiny, and Super 3-D
Noah's Ark.

The original game data files are required for operation. These are files with
the extensions *.n3d, *.sod, *.sd2, *.sd3, *.wl1, or *.wl6.

diffstat:

 games/Makefile                                      |   3 +-
 games/ecwolf/DESCR                                  |  15 ++++
 games/ecwolf/MESSAGE                                |   8 ++
 games/ecwolf/Makefile                               |  72 +++++++++++++++++++++
 games/ecwolf/PLIST                                  |  10 ++
 games/ecwolf/distinfo                               |   8 ++
 games/ecwolf/files/ecwolf.desktop                   |   8 ++
 games/ecwolf/files/ecwolf.sh.in                     |   2 +
 games/ecwolf/patches/patch-docs_ecwolf.6            |  44 ++++++++++++
 games/ecwolf/patches/patch-src_wl__iwad__picker.cpp |  14 ++++
 10 files changed, 183 insertions(+), 1 deletions(-)

diffs (234 lines):

diff -r c8d1da3fa538 -r de9518df2409 games/Makefile
--- a/games/Makefile    Sat Sep 04 09:22:30 2021 +0000
+++ b/games/Makefile    Sat Sep 04 10:36:29 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.505 2021/05/04 08:21:11 fcambus Exp $
+# $NetBSD: Makefile,v 1.506 2021/09/04 10:36:29 nia Exp $
 #
 
 COMMENT=       Games
@@ -107,6 +107,7 @@
 SUBDIR+=       dungeon
 SUBDIR+=       easyrpg-player
 SUBDIR+=       eboard
+SUBDIR+=       ecwolf
 SUBDIR+=       einstein-puzzle
 SUBDIR+=       endless-sky
 SUBDIR+=       enigma
diff -r c8d1da3fa538 -r de9518df2409 games/ecwolf/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/ecwolf/DESCR        Sat Sep 04 10:36:29 2021 +0000
@@ -0,0 +1,15 @@
+ECWolf is an advanced source port of the Wolfenstein 3D engine based upon
+Wolf4SDL with some back ports from ZDoom. It provides substantially boosted
+capabilities for creating mods without requiring source code edits using
+scripting and other tools familiar to users of ZDoom.
+
+For players it offers modern features such as support for modern control
+schemes and wide screen. Being based on the Wolfenstein 3D engine and using an
+enhanced version of the original software renderer, it provides a relatively
+accurate play experience to vanilla while modernizing.
+
+Currently supported games are Wolfenstein 3D, Spear of Destiny, and Super 3-D
+Noah's Ark.
+
+The original game data files are required for operation. These are files with
+the extensions *.n3d, *.sod, *.sd2, *.sd3, *.wl1, or *.wl6.
diff -r c8d1da3fa538 -r de9518df2409 games/ecwolf/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/ecwolf/MESSAGE      Sat Sep 04 10:36:29 2021 +0000
@@ -0,0 +1,8 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2021/09/04 10:36:29 nia Exp $
+
+The original game data files are required for operation. These are files
+with the extensions *.n3d, *.sod, *.sd2, *.sd3, *.wl1, or *.wl6. They
+should be placed either in ~/.config/ecwolf or ${PREFIX}/share/ecwolf.
+
+===========================================================================
diff -r c8d1da3fa538 -r de9518df2409 games/ecwolf/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/ecwolf/Makefile     Sat Sep 04 10:36:29 2021 +0000
@@ -0,0 +1,72 @@
+# $NetBSD: Makefile,v 1.1 2021/09/04 10:36:29 nia Exp $
+
+DISTNAME=      1.3.3
+PKGNAME=       ecwolf-${DISTNAME}
+CATEGORIES=    games
+MASTER_SITES=  https://bitbucket.org/ecwolf/ecwolf/get/
+DIST_SUBDIR=   ecwolf
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://bitbucket.org/ecwolf/ecwolf
+COMMENT=       Advanced port of Wolfenstein 3D
+LICENSE=       gnu-gpl-v2
+
+WRKSRC=                ${WRKDIR}/ecwolf-ecwolf-d715e0a2f8d4
+
+USE_CMAKE=     yes
+USE_TOOLS+=    pkg-config
+USE_LANGUAGES= c c++
+
+# malloc_usable_size()...
+LDFLAGS.NetBSD+=       -ljemalloc
+
+SUBST_CLASSES+=                paths
+SUBST_STAGE.paths=     pre-configure
+SUBST_FILES.paths+=    docs/ecwolf.6
+SUBST_FILES.paths+=    src/wl_iwad.cpp
+SUBST_SED.paths=       -e 's,/usr/local/share/games/wolf3d,${PREFIX}/share/ecwolf,g'
+SUBST_VARS.paths=      PREFIX
+
+INSTALLATION_DIRS+=    ${PKGMANDIR}/man6
+INSTALLATION_DIRS+=    libexec
+INSTALLATION_DIRS+=    share/ecwolf
+
+INSTALLATION_DIRS+=    share/applications
+INSTALLATION_DIRS+=    share/icons/hicolor/96x96/apps
+INSTALLATION_DIRS+=    share/icons/hicolor/72x72/apps
+INSTALLATION_DIRS+=    share/icons/hicolor/48x48/apps
+INSTALLATION_DIRS+=    share/icons/hicolor/36x36/apps
+
+pre-configure:
+       ${SED} -e 's,@PREFIX@,${PREFIX},g' < ${FILESDIR}/ecwolf.sh.in > \
+           ${WRKSRC}/ecwolf.sh
+
+post-install:
+       ${MV} ${DESTDIR}${PREFIX}/bin/ecwolf \
+               ${DESTDIR}${PREFIX}/libexec/ecwolf
+       ${INSTALL_SCRIPT} ${WRKSRC}/ecwolf.sh \
+               ${DESTDIR}${PREFIX}/bin/ecwolf
+       ${INSTALL_DATA} ${WRKSRC}/ecwolf.pk3 \
+               ${DESTDIR}${PREFIX}/share/ecwolf/ecwolf.pk3
+       ${INSTALL_MAN} ${WRKSRC}/docs/ecwolf.6 \
+               ${DESTDIR}${PREFIX}/${PKGMANDIR}/man6/ecwolf.6
+       ${INSTALL_DATA} ${FILESDIR}/ecwolf.desktop \
+               ${DESTDIR}${PREFIX}/share/applications/ecwolf.desktop
+       ${INSTALL_DATA} ${WRKSRC}/android-libs/launcher/res/drawable-ldpi/ic_launcher.png \
+               ${DESTDIR}${PREFIX}/share/icons/hicolor/36x36/apps/ecwolf.png
+       ${INSTALL_DATA} ${WRKSRC}/android-libs/launcher/res/drawable-mdpi/ic_launcher.png \
+               ${DESTDIR}${PREFIX}/share/icons/hicolor/48x48/apps/ecwolf.png
+       ${INSTALL_DATA} ${WRKSRC}/android-libs/launcher/res/drawable-hdpi/ic_launcher.png \
+               ${DESTDIR}${PREFIX}/share/icons/hicolor/72x72/apps/ecwolf.png
+       ${INSTALL_DATA} ${WRKSRC}/android-libs/launcher/res/drawable-xhdpi/ic_launcher.png \
+               ${DESTDIR}${PREFIX}/share/icons/hicolor/96x96/apps/ecwolf.png
+
+.include "../../archivers/bzip2/buildlink3.mk"
+.include "../../audio/SDL_mixer/buildlink3.mk"
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
+.include "../../devel/SDL/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../sysutils/desktop-file-utils/desktopdb.mk"
+.include "../../x11/gtk2/buildlink3.mk"
+.include "../../mk/jpeg.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r c8d1da3fa538 -r de9518df2409 games/ecwolf/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/ecwolf/PLIST        Sat Sep 04 10:36:29 2021 +0000
@@ -0,0 +1,10 @@
+@comment $NetBSD: PLIST,v 1.1 2021/09/04 10:36:29 nia Exp $
+bin/ecwolf
+libexec/ecwolf
+man/man6/ecwolf.6
+share/applications/ecwolf.desktop
+share/ecwolf/ecwolf.pk3
+share/icons/hicolor/36x36/apps/ecwolf.png
+share/icons/hicolor/48x48/apps/ecwolf.png
+share/icons/hicolor/72x72/apps/ecwolf.png
+share/icons/hicolor/96x96/apps/ecwolf.png
diff -r c8d1da3fa538 -r de9518df2409 games/ecwolf/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/ecwolf/distinfo     Sat Sep 04 10:36:29 2021 +0000
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2021/09/04 10:36:29 nia Exp $
+
+SHA1 (ecwolf/1.3.3.tar.gz) = 8b56638a7d5a7a0803a4cd5923bc62586598d8cd
+RMD160 (ecwolf/1.3.3.tar.gz) = 6bad3c6359ca7f6b694e0b6b2f6d567bb58225a5
+SHA512 (ecwolf/1.3.3.tar.gz) = bbce936a9ea556ba12a649c4394002d660a1e328861646d558ff7fc088e6ab6f0fab789955321ea0c1122df4043bd16b84bb7a7507e5ccab91cf128778c7608a
+Size (ecwolf/1.3.3.tar.gz) = 9618283 bytes
+SHA1 (patch-docs_ecwolf.6) = 981208f925e285f3e21fdbefd2c5c0e42251069b
+SHA1 (patch-src_wl__iwad__picker.cpp) = 786978d4e5a23154713166af914a55c0b45f60d2
diff -r c8d1da3fa538 -r de9518df2409 games/ecwolf/files/ecwolf.desktop
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/ecwolf/files/ecwolf.desktop Sat Sep 04 10:36:29 2021 +0000
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=ECWolf
+Comment=Advanced Wolfenstein 3D source port
+Exec=ecwolf
+Icon=ecwolf
+Categories=Game
diff -r c8d1da3fa538 -r de9518df2409 games/ecwolf/files/ecwolf.sh.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/ecwolf/files/ecwolf.sh.in   Sat Sep 04 10:36:29 2021 +0000
@@ -0,0 +1,2 @@
+#!/bin/sh
+cd "@PREFIX@/share/ecwolf" && exec "@PREFIX@/libexec/ecwolf" "$@"
diff -r c8d1da3fa538 -r de9518df2409 games/ecwolf/patches/patch-docs_ecwolf.6
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/ecwolf/patches/patch-docs_ecwolf.6  Sat Sep 04 10:36:29 2021 +0000
@@ -0,0 +1,44 @@
+$NetBSD: patch-docs_ecwolf.6,v 1.1 2021/09/04 10:36:29 nia Exp $
+
+Backport man page from git repository.
+
+--- docs/ecwolf.6.orig 2021-09-04 10:14:48.201844947 +0000
++++ docs/ecwolf.6
+@@ -0,0 +1,37 @@
++.TH ecwolf 6
++.SH NAME
++ecwolf - Advanced Wolfenstein 3D source port
++
++.SH SYNOPSIS
++.B ecwolf
++[\fIoptions\fR] [\fIfiles\fR ...]
++
++.SH DESCRIPTION
++.B ecwolf
++is an advanced source port of the Wolfenstein 3D engine based upon Wolf4SDL
++with some back ports from ZDoom. It provides substantially boosted capabilities
++for creating mods without requiring source code edits using scripting and other
++tools familiar to users of ZDoom.
++
++For players it offers modern features such as support for modern control
++schemes and wide screen. Being based on the Wolfenstein 3D engine and using an
++enhanced version of the original software renderer, it provides a relatively
++accurate play experience to vanilla while modernizing.
++
++Currently supported games are Wolfenstein 3D, Spear of Destiny, and Super 3-D
++Noah's Ark.
++
++.SH OPTIONS
++Use the --help option for a complete list of options.
++
++.SH FILES
++The original game data files are required for operation. These are files with
++the extensions *.n3d, *.sod, *.sd2, *.sd3, *.wl1, or *.wl6. They should be
++placed in
++.IR @PREFIX@/share/ecwolf .
++
++If you do not have these files they can be acquired at https://www.gog.com or
++through Steam.
++
++.SH BUGS
++The bug tracker is located at https://bitbucket.org/ecwolf/ecwolf/issues
diff -r c8d1da3fa538 -r de9518df2409 games/ecwolf/patches/patch-src_wl__iwad__picker.cpp
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/ecwolf/patches/patch-src_wl__iwad__picker.cpp       Sat Sep 04 10:36:29 2021 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_wl__iwad__picker.cpp,v 1.1 2021/09/04 10:36:29 nia Exp $
+
+Missing include for WIFEXITED.
+
+--- src/wl_iwad_picker.cpp.orig        2016-10-01 04:13:53.000000000 +0000
++++ src/wl_iwad_picker.cpp
+@@ -1,6 +1,7 @@
+ // From ZDoom!
+ 
+ #include <algorithm>
++#include <sys/wait.h>
+ 
+ #include "zdoomsupport.h"
+ 



Home | Main Index | Thread Index | Old Index