diff options
author | nia <nia@pkgsrc.org> | 2021-09-04 10:36:29 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2021-09-04 10:36:29 +0000 |
commit | 019c413e008077f035718b3d8eb5ecd45b2470ba (patch) | |
tree | deb4680d3e1c7e5d2808b241f2f5c83a923472ab /games/ecwolf | |
parent | b884e12515858e00e3126387fc0323744651f0bd (diff) | |
download | pkgsrc-019c413e008077f035718b3d8eb5ecd45b2470ba.tar.gz |
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 (limited to 'games/ecwolf')
-rw-r--r-- | games/ecwolf/DESCR | 15 | ||||
-rw-r--r-- | games/ecwolf/MESSAGE | 8 | ||||
-rw-r--r-- | games/ecwolf/Makefile | 72 | ||||
-rw-r--r-- | games/ecwolf/PLIST | 10 | ||||
-rw-r--r-- | games/ecwolf/distinfo | 8 | ||||
-rw-r--r-- | games/ecwolf/files/ecwolf.desktop | 8 | ||||
-rw-r--r-- | games/ecwolf/files/ecwolf.sh.in | 2 | ||||
-rw-r--r-- | games/ecwolf/patches/patch-docs_ecwolf.6 | 44 | ||||
-rw-r--r-- | games/ecwolf/patches/patch-src_wl__iwad__picker.cpp | 14 |
9 files changed, 181 insertions, 0 deletions
diff --git a/games/ecwolf/DESCR b/games/ecwolf/DESCR new file mode 100644 index 00000000000..ad2934730cb --- /dev/null +++ b/games/ecwolf/DESCR @@ -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 --git a/games/ecwolf/MESSAGE b/games/ecwolf/MESSAGE new file mode 100644 index 00000000000..fac111a8733 --- /dev/null +++ b/games/ecwolf/MESSAGE @@ -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 --git a/games/ecwolf/Makefile b/games/ecwolf/Makefile new file mode 100644 index 00000000000..d01dbad6271 --- /dev/null +++ b/games/ecwolf/Makefile @@ -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 +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 --git a/games/ecwolf/PLIST b/games/ecwolf/PLIST new file mode 100644 index 00000000000..312a8dc1d17 --- /dev/null +++ b/games/ecwolf/PLIST @@ -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 --git a/games/ecwolf/distinfo b/games/ecwolf/distinfo new file mode 100644 index 00000000000..7b7b24628cf --- /dev/null +++ b/games/ecwolf/distinfo @@ -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 --git a/games/ecwolf/files/ecwolf.desktop b/games/ecwolf/files/ecwolf.desktop new file mode 100644 index 00000000000..517c2d7230a --- /dev/null +++ b/games/ecwolf/files/ecwolf.desktop @@ -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 --git a/games/ecwolf/files/ecwolf.sh.in b/games/ecwolf/files/ecwolf.sh.in new file mode 100644 index 00000000000..11c198d77a1 --- /dev/null +++ b/games/ecwolf/files/ecwolf.sh.in @@ -0,0 +1,2 @@ +#!/bin/sh +cd "@PREFIX@/share/ecwolf" && exec "@PREFIX@/libexec/ecwolf" "$@" diff --git a/games/ecwolf/patches/patch-docs_ecwolf.6 b/games/ecwolf/patches/patch-docs_ecwolf.6 new file mode 100644 index 00000000000..409073fbc2f --- /dev/null +++ b/games/ecwolf/patches/patch-docs_ecwolf.6 @@ -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 --git a/games/ecwolf/patches/patch-src_wl__iwad__picker.cpp b/games/ecwolf/patches/patch-src_wl__iwad__picker.cpp new file mode 100644 index 00000000000..3ee5a87e9d3 --- /dev/null +++ b/games/ecwolf/patches/patch-src_wl__iwad__picker.cpp @@ -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" + |