pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/games Add games/iortcw.
details: https://anonhg.NetBSD.org/pkgsrc/rev/90090fc4280f
branches: trunk
changeset: 404775:90090fc4280f
user: nia <nia%pkgsrc.org@localhost>
date: Sun Nov 17 17:56:48 2019 +0000
description:
Add games/iortcw.
Return to Castle Wolfenstein is a World War II-based first person shooter
with occult themes, developed by Gray Matter Interactive and released in
2001.
iortcw merges features and fixes from the ioquake3 version of the id Tech
3 game engine into the open source release of Return to Castle Wolfenstein.
A copy of the Return to Castle Wolfenstein data files is required to play
iortcw.
diffstat:
games/Makefile | 3 +-
games/iortcw/DESCR | 9 +
games/iortcw/MESSAGE | 9 +
games/iortcw/Makefile | 108 +++++++++++++++
games/iortcw/PLIST | 20 ++
games/iortcw/distinfo | 10 +
games/iortcw/files/iortcw.sh.in | 2 +
games/iortcw/files/iowolfmp.desktop | 8 +
games/iortcw/files/iowolfsp.desktop | 8 +
games/iortcw/patches/patch-MP_Makefile | 14 +
games/iortcw/patches/patch-MP_code_qcommon_q__platform.h | 15 ++
games/iortcw/patches/patch-SP_Makefile | 14 +
games/iortcw/patches/patch-SP_code_qcommon_q__platform.h | 15 ++
13 files changed, 234 insertions(+), 1 deletions(-)
diffs (297 lines):
diff -r c81a642bba2a -r 90090fc4280f games/Makefile
--- a/games/Makefile Sun Nov 17 17:34:30 2019 +0000
+++ b/games/Makefile Sun Nov 17 17:56:48 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.469 2019/11/17 16:19:57 nia Exp $
+# $NetBSD: Makefile,v 1.470 2019/11/17 17:56:48 nia Exp $
#
COMMENT= Games
@@ -185,6 +185,7 @@
SUBDIR+= ioquake3
SUBDIR+= ioquake3-pk3
SUBDIR+= ioquake3-raspberrypi
+SUBDIR+= iortcw
SUBDIR+= ivan
SUBDIR+= jetpack
SUBDIR+= jin
diff -r c81a642bba2a -r 90090fc4280f games/iortcw/DESCR
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/iortcw/DESCR Sun Nov 17 17:56:48 2019 +0000
@@ -0,0 +1,9 @@
+Return to Castle Wolfenstein is a World War II-based first person shooter
+with occult themes, developed by Gray Matter Interactive and released in
+2001.
+
+iortcw merges features and fixes from the ioquake3 version of the id Tech
+3 game engine into the open source release of Return to Castle Wolfenstein.
+
+A copy of the Return to Castle Wolfenstein data files is required to play
+iortcw.
diff -r c81a642bba2a -r 90090fc4280f games/iortcw/MESSAGE
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/iortcw/MESSAGE Sun Nov 17 17:56:48 2019 +0000
@@ -0,0 +1,9 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2019/11/17 17:56:48 nia Exp $
+
+The .pk3 files from a copy of Return to Castle Wolfenstein are needed
+to play iortcw.
+
+They should be copied to ~/.wolf/main.
+
+===========================================================================
diff -r c81a642bba2a -r 90090fc4280f games/iortcw/Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/iortcw/Makefile Sun Nov 17 17:56:48 2019 +0000
@@ -0,0 +1,108 @@
+# $NetBSD: Makefile,v 1.1 2019/11/17 17:56:48 nia Exp $
+
+DISTNAME= iortcw-1.51c
+CATEGORIES= games
+MASTER_SITES= ${MASTER_SITE_GITHUB:=iortcw/}
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE= https://github.com/iortcw/iortcw
+COMMENT= Game engine for Return to Castle Wolfenstein
+LICENSE= gnu-gpl-v3
+
+USE_TOOLS+= gmake pkg-config
+USE_LANGUAGES= c c++
+
+BUILD_DIRS= SP MP
+BUILD_TARGET= release
+INSTALL_DIRS= SP MP
+INSTALL_TARGET= copyfiles
+
+MAKE_FLAGS+= V=1
+MAKE_FLAGS+= BUILD_SERVER=1
+MAKE_FLAGS+= BUILD_CLIENT=1
+MAKE_FLAGS+= BUILD_GAME_SO=1
+MAKE_FLAGS+= BUILD_GAME_QVM=0
+MAKE_FLAGS+= USE_RENDERER_DLOPEN=0
+MAKE_FLAGS+= CROSS_COMPILING=0
+MAKE_FLAGS+= CC=${CC:Q}
+MAKE_FLAGS+= CXX=${CXX:Q}
+MAKE_FLAGS+= TOOLS_CC=${CC:Q}
+MAKE_FLAGS+= BUILD_BASEGAME=1
+MAKE_FLAGS+= USE_OPENAL=1
+MAKE_FLAGS+= USE_OPENAL_DLOPEN=0
+MAKE_FLAGS+= USE_CURL=1
+MAKE_FLAGS+= USE_CURL_DLOPEN=0
+MAKE_FLAGS+= USE_CODEC_VORBIS=1
+MAKE_FLAGS+= USE_CODEC_OPUS=1
+MAKE_FLAGS+= USE_FREETYPE=1
+MAKE_FLAGS+= USE_INTERNAL_ZLIB=0
+MAKE_FLAGS+= USE_INTERNAL_JPEG=0
+MAKE_FLAGS+= USE_INTERNAL_OGG=0
+MAKE_FLAGS+= USE_INTERNAL_OPUS=0
+MAKE_FLAGS+= USE_LOCAL_HEADERS=0
+MAKE_FLAGS+= OPTIMIZEVM=""
+MAKE_FLAGS+= OPTIMIZE=""
+MAKE_FLAGS+= COPYDIR="${DESTDIR}${PREFIX}/share/iortcw"
+
+.include "../../mk/bsd.prefs.mk"
+
+MAKE_FLAGS+= COMPILE_ARCH=${MACHINE_ARCH}
+
+.if ${MACHINE_ARCH} == "i386"
+IORTCW_ARCH= x86
+.elif ${MACHINE_ARCH} == "x86_64"
+IORTCW_ARCH= x86_64
+.elif ${MACHINE_ARCH} == "powerpc"
+IORTCW_ARCH= ppc
+.elif !empty(MACHINE_ARCH:Mpowerpc64*)
+IORTCW_ARCH= ppc64
+.elif ${MACHINE_ARCH} == "sparc64"
+IORTCW_ARCH= sparc
+.else
+IORTCW_ARCH= ${MACHINE_ARCH}
+.endif
+
+PLIST_SUBST+= IORTCW_ARCH=${IORTCW_ARCH}
+
+INSTALLATION_DIRS+= bin
+INSTALLATION_DIRS+= share/applications
+INSTALLATION_DIRS+= share/icons/hicolor/scalable/apps
+
+CHECK_PORTABILITY_SKIP+= SP/make-macosx_xcode3.sh
+CHECK_PORTABILITY_SKIP+= SP/make-macosx_xcode4.sh
+CHECK_PORTABILITY_SKIP+= SP/make-macosx_xcode5.sh
+CHECK_PORTABILITY_SKIP+= MP/make-macosx_xcode3.sh
+CHECK_PORTABILITY_SKIP+= MP/make-macosx_xcode4.sh
+CHECK_PORTABILITY_SKIP+= MP/make-macosx_xcode5.sh
+
+post-build:
+.for bin in iowolfded iowolfmp iowolfsp
+ ${SED} -e 's,@PREFIX@,${PREFIX},g' \
+ -e 's,@WOLFBIN@,${PREFIX}/share/iortcw/${bin}.${IORTCW_ARCH},g' \
+ ${FILESDIR}/iortcw.sh.in > ${WRKDIR}/${bin}
+.endfor
+
+post-install:
+ ${INSTALL_SCRIPT} ${WRKDIR}/iowolfded ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKDIR}/iowolfmp ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKDIR}/iowolfsp ${DESTDIR}${PREFIX}/bin
+ ${INSTALL_DATA} ${FILESDIR}/iowolfmp.desktop \
+ ${DESTDIR}${PREFIX}/share/applications
+ ${INSTALL_DATA} ${FILESDIR}/iowolfsp.desktop \
+ ${DESTDIR}${PREFIX}/share/applications
+ ${INSTALL_DATA} ${WRKSRC}/MP/misc/iortcw.svg \
+ ${DESTDIR}${PREFIX}/share/icons/hicolor/scalable/apps/wolfmp.svg
+ ${INSTALL_DATA} ${WRKSRC}/SP/misc/iortcw.svg \
+ ${DESTDIR}${PREFIX}/share/icons/hicolor/scalable/apps/wolfsp.svg
+
+.include "../../audio/openal-soft/buildlink3.mk"
+.include "../../audio/opusfile/buildlink3.mk"
+.include "../../audio/libvorbis/buildlink3.mk"
+.include "../../devel/SDL2/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../graphics/freetype2/buildlink3.mk"
+.include "../../graphics/hicolor-icon-theme/buildlink3.mk"
+.include "../../mk/jpeg.buildlink3.mk"
+.include "../../sysutils/desktop-file-utils/desktopdb.mk"
+.include "../../www/curl/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r c81a642bba2a -r 90090fc4280f games/iortcw/PLIST
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/iortcw/PLIST Sun Nov 17 17:56:48 2019 +0000
@@ -0,0 +1,20 @@
+@comment $NetBSD: PLIST,v 1.1 2019/11/17 17:56:48 nia Exp $
+bin/iowolfded
+bin/iowolfmp
+bin/iowolfsp
+share/applications/iowolfmp.desktop
+share/applications/iowolfsp.desktop
+share/icons/hicolor/scalable/apps/wolfmp.svg
+share/icons/hicolor/scalable/apps/wolfsp.svg
+share/iortcw/iowolfded.x86_64
+share/iortcw/iowolfmp.x86_64
+share/iortcw/iowolfmp_rend2.x86_64
+share/iortcw/iowolfsp.x86_64
+share/iortcw/iowolfsp_rend2.x86_64
+share/iortcw/iowolfspded.x86_64
+share/iortcw/main/cgame.mp.x86_64.so
+share/iortcw/main/cgame.sp.x86_64.so
+share/iortcw/main/qagame.mp.x86_64.so
+share/iortcw/main/qagame.sp.x86_64.so
+share/iortcw/main/ui.mp.x86_64.so
+share/iortcw/main/ui.sp.x86_64.so
diff -r c81a642bba2a -r 90090fc4280f games/iortcw/distinfo
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/iortcw/distinfo Sun Nov 17 17:56:48 2019 +0000
@@ -0,0 +1,10 @@
+$NetBSD: distinfo,v 1.1 2019/11/17 17:56:48 nia Exp $
+
+SHA1 (iortcw-1.51c.tar.gz) = a418f9747f3250ad855885368924dead48006909
+RMD160 (iortcw-1.51c.tar.gz) = db33fd67b58b7163864c6b434a86f4cdd58fb308
+SHA512 (iortcw-1.51c.tar.gz) = bed985e00ba117bfe8c5fae20671575af2fa1c2eeaaba9ef69e6b82485d883084138f7f949299cfdad8171b40209d9baf111879acfd01e5eae16859b63ce77c6
+Size (iortcw-1.51c.tar.gz) = 27246236 bytes
+SHA1 (patch-MP_Makefile) = d1e7ab17dac10a923396bfe71c82deac97ffe1af
+SHA1 (patch-MP_code_qcommon_q__platform.h) = 5bd7cb759a1072589401dae7f13517ecf03e111d
+SHA1 (patch-SP_Makefile) = 61da55b573bebc4349cba29aacf31193736e2a9d
+SHA1 (patch-SP_code_qcommon_q__platform.h) = 69308492c4ac5f928ded4359b1a96b09801dabf7
diff -r c81a642bba2a -r 90090fc4280f games/iortcw/files/iortcw.sh.in
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/iortcw/files/iortcw.sh.in Sun Nov 17 17:56:48 2019 +0000
@@ -0,0 +1,2 @@
+#!/bin/sh
+cd @PREFIX@/share/iortcw && exec @WOLFBIN@ $@
diff -r c81a642bba2a -r 90090fc4280f games/iortcw/files/iowolfmp.desktop
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/iortcw/files/iowolfmp.desktop Sun Nov 17 17:56:48 2019 +0000
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=Return to Castle Wolfenstein multiplayer
+Exec=iowolfmp
+Terminal=false
+Icon=wolfmp
+Type=Application
+Categories=Game;ActionGame;
+Keywords=multi-player;online;fps;team;first person shooter;id;gray matter;
diff -r c81a642bba2a -r 90090fc4280f games/iortcw/files/iowolfsp.desktop
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/iortcw/files/iowolfsp.desktop Sun Nov 17 17:56:48 2019 +0000
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=Return to Castle Wolfenstein
+Exec=iowolfsp
+Terminal=false
+Icon=wolfsp
+Type=Application
+Categories=Game;ActionGame;
+Keywords=fps;first person shooter;id;gray matter;
diff -r c81a642bba2a -r 90090fc4280f games/iortcw/patches/patch-MP_Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/iortcw/patches/patch-MP_Makefile Sun Nov 17 17:56:48 2019 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-MP_Makefile,v 1.1 2019/11/17 17:56:48 nia Exp $
+
+Always call it x86_64 regardless of operating system.
+
+--- MP/Makefile.orig 2019-03-16 18:09:48.000000000 +0000
++++ MP/Makefile
+@@ -761,7 +761,6 @@ ifneq (,$(findstring "$(PLATFORM)", "fre
+ ifeq ($(ARCH),x86_64)
+ OPTIMIZEVM = -O3
+ OPTIMIZE = $(OPTIMIZEVM) -ffast-math
+- FILE_ARCH = amd64
+ endif
+ ifeq ($(ARCH),x86)
+ OPTIMIZEVM = -O3 -march=i586
diff -r c81a642bba2a -r 90090fc4280f games/iortcw/patches/patch-MP_code_qcommon_q__platform.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/iortcw/patches/patch-MP_code_qcommon_q__platform.h Sun Nov 17 17:56:48 2019 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-MP_code_qcommon_q__platform.h,v 1.1 2019/11/17 17:56:48 nia Exp $
+
+Always call it x86_64 regardless of operating system.
+
+--- MP/code/qcommon/q_platform.h.orig 2019-03-16 18:09:48.000000000 +0000
++++ MP/code/qcommon/q_platform.h
+@@ -226,7 +226,7 @@ Foundation, Inc., 51 Franklin St, Fifth
+ #elif defined __amd64__
+ #undef idx64
+ #define idx64 1
+-#define ARCH_STRING "amd64"
++#define ARCH_STRING "x86_64"
+ #elif defined __axp__
+ #define ARCH_STRING "alpha"
+ #endif
diff -r c81a642bba2a -r 90090fc4280f games/iortcw/patches/patch-SP_Makefile
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/iortcw/patches/patch-SP_Makefile Sun Nov 17 17:56:48 2019 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-SP_Makefile,v 1.1 2019/11/17 17:56:48 nia Exp $
+
+Always call it x86_64 regardless of operating system.
+
+--- SP/Makefile.orig 2019-03-16 18:09:48.000000000 +0000
++++ SP/Makefile
+@@ -750,7 +750,6 @@ ifneq (,$(findstring "$(PLATFORM)", "fre
+ ifeq ($(ARCH),x86_64)
+ OPTIMIZEVM = -O3
+ OPTIMIZE = $(OPTIMIZEVM) -ffast-math
+- FILE_ARCH = amd64
+ endif
+ ifeq ($(ARCH),x86)
+ OPTIMIZEVM = -O3 -march=i586
diff -r c81a642bba2a -r 90090fc4280f games/iortcw/patches/patch-SP_code_qcommon_q__platform.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/games/iortcw/patches/patch-SP_code_qcommon_q__platform.h Sun Nov 17 17:56:48 2019 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-SP_code_qcommon_q__platform.h,v 1.1 2019/11/17 17:56:48 nia Exp $
+
+Always call it x86_64 regardless of operating system.
+
+--- SP/code/qcommon/q_platform.h.orig 2019-03-16 18:09:48.000000000 +0000
++++ SP/code/qcommon/q_platform.h
+@@ -226,7 +226,7 @@ Foundation, Inc., 51 Franklin St, Fifth
+ #elif defined __amd64__
+ #undef idx64
+ #define idx64 1
+-#define ARCH_STRING "amd64"
++#define ARCH_STRING "x86_64"
+ #elif defined __axp__
+ #define ARCH_STRING "alpha"
+ #endif
Home |
Main Index |
Thread Index |
Old Index