pkgsrc-WIP-changes archive

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

Added a new game package NBlood - reverse-engineered port of Build games using EDuke32 engine



Module Name:	pkgsrc-wip
Committed By:	astr0b4by <astr0b4by%gmail.com@localhost>
Pushed By:	astr0b4by
Date:		Mon May 25 22:37:08 2020 +0000
Changeset:	0646ced8186d14b240f725c3e51ef801ebaa0639

Added Files:
	nblood/DESCR
	nblood/MESSAGE
	nblood/Makefile
	nblood/PLIST
	nblood/distinfo
	nblood/patches/patch-gnumakefile
	nblood/patches/patch-mmulti.cpp

Log Message:
Added a new game package NBlood - reverse-engineered port of Build
games using EDuke32 engine

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=0646ced8186d14b240f725c3e51ef801ebaa0639

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 nblood/DESCR                     | 23 ++++++++++++++++++++
 nblood/MESSAGE                   | 14 ++++++++++++
 nblood/Makefile                  | 47 ++++++++++++++++++++++++++++++++++++++++
 nblood/PLIST                     |  4 ++++
 nblood/distinfo                  |  8 +++++++
 nblood/patches/patch-gnumakefile | 16 ++++++++++++++
 nblood/patches/patch-mmulti.cpp  | 24 ++++++++++++++++++++
 7 files changed, 136 insertions(+)

diffs:
diff --git a/nblood/DESCR b/nblood/DESCR
new file mode 100644
index 0000000000..313c474c80
--- /dev/null
+++ b/nblood/DESCR
@@ -0,0 +1,23 @@
+TODO: Adjust the following lines from README.md
+
+# NBlood / Rednukem / PCExhumed
+Reverse-engineered ports of Build games using EDuke32 engine technology and development principles
+
+## NBlood
+Blood port based on EDuke32
+
+### Installing
+1. Extract NBlood to a new directory
+2. Copy the following files from Blood 1.21 to NBlood folder:
+
+   BLOOD.INI
+   BLOOD.RFF
+   BLOOD000.DEM-BLOOD003.DEM (optional)
+   CP01.MAP-CP09.MAP (optional, Cryptic Passage)
+   CPART07.AR_ (optional, Cryptic Passage)
+   CPART15.AR_ (optional, Cryptic Passage)
+   CPBB01.MAP-CPBB04.MAP (optional, Cryptic Passage)
+   CPSL.MAP (optional, Cryptic Passage)
+   CRYPTIC.INI (optional, Cryptic Passage)
+   CRYPTIC.SMK (optional, Cryptic Passage)
+...
diff --git a/nblood/MESSAGE b/nblood/MESSAGE
new file mode 100644
index 0000000000..935b15f76e
--- /dev/null
+++ b/nblood/MESSAGE
@@ -0,0 +1,14 @@
+===========================================================================
+$NetBSD$
+The data seg size is too low and needs to be raised above 2GB !
+Please run the following command (under the user that executed nblood)
+for nblood to work on NetBSD
+
+$ ulimit -d 2097152
+
+To run the game, copy the original Blood datapack files and from
+that directory execute nblood
+
+To play Cryptic Passage execute nblood -ini CRYPTIC.INI from the game
+datadir
+===========================================================================
diff --git a/nblood/Makefile b/nblood/Makefile
new file mode 100644
index 0000000000..a072f95dd4
--- /dev/null
+++ b/nblood/Makefile
@@ -0,0 +1,47 @@
+# $NetBSD$
+
+GITHUB_PROJECT=	NBlood
+GITHUB_TAG=	197c38fe2a6a05cfd35c1c9bb039dcbee6e9c095
+DISTNAME=	NBlood-current
+PKGNAME=	NBlood-current
+CATEGORIES=	games
+MASTER_SITES=	${MASTER_SITE_GITHUB:=nukeykt/}
+EXTRACT_SUFX=	.zip
+DIST_SUBDIR=	${GITHUB_PROJECT}
+
+MAINTAINER=	astr0b4by%gmail.com@localhost
+HOMEPAGE=	https://github.com/nukeykt/NBlood/
+COMMENT=	Reverse-engineered Blood
+LICENSE=	gnu-gpl-v2
+
+WRKSRC=		${WRKDIR}/NBlood-197c38fe2a6a05cfd35c1c9bb039dcbee6e9c095
+USE_LANGUAGES=	c c++
+
+USE_TOOLS+=	gmake pkg-config
+NO_CONFIGURE=	yes
+MAKE_ENV+=	prefix=${PREFIX}
+MAKE_FILE=	GNUmakefile
+
+
+BUILD_DEPENDS=	nasm-[0-9]*:../../devel/nasm
+
+BUILD_MAKE_FLAGS+=	LTO=0 RELEASE=1 USE_LIBVPX=0
+
+INSTALLATION_DIRS+=	bin
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/nblood ${DESTDIR}${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/rednukem ${DESTDIR}${PREFIX}/bin
+	${INSTALL_PROGRAM} ${WRKSRC}/pcexhumed ${DESTDIR}${PREFIX}/bin
+
+.include "../../audio/SDL2_mixer/buildlink3.mk"
+.include "../../graphics/glu/buildlink3.mk"
+.include "../../audio/flac/buildlink3.mk"
+.include "../../audio/libvorbis/buildlink3.mk"
+.include "../../devel/SDL2/buildlink3.mk"
+.include "../../devel/libexecinfo/buildlink3.mk"
+.include "../../graphics/MesaLib/buildlink3.mk"
+.include "../../graphics/png/buildlink3.mk"
+.include "../../multimedia/libogg/buildlink3.mk"
+.include "../../mk/dlopen.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/nblood/PLIST b/nblood/PLIST
new file mode 100644
index 0000000000..82a3641063
--- /dev/null
+++ b/nblood/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD$
+bin/nblood
+bin/pcexhumed
+bin/rednukem
diff --git a/nblood/distinfo b/nblood/distinfo
new file mode 100644
index 0000000000..86c2934858
--- /dev/null
+++ b/nblood/distinfo
@@ -0,0 +1,8 @@
+$NetBSD$
+
+SHA1 (NBlood/NBlood-current-197c38fe2a6a05cfd35c1c9bb039dcbee6e9c095.zip) = c017f299945f98c0ddd91fe465a97eb0a0d49230
+RMD160 (NBlood/NBlood-current-197c38fe2a6a05cfd35c1c9bb039dcbee6e9c095.zip) = c7b6c4ec9b842599835e42f82e5752548c490349
+SHA512 (NBlood/NBlood-current-197c38fe2a6a05cfd35c1c9bb039dcbee6e9c095.zip) = aca2b31786dedbf207e8392d74055c8c3f097e432892217f66c0bda0b6e3613e23ab8a25fb5e5ceb57be3b36198f47089e1169da0ee681562f89d3493973e01d
+Size (NBlood/NBlood-current-197c38fe2a6a05cfd35c1c9bb039dcbee6e9c095.zip) = 35988447 bytes
+SHA1 (patch-gnumakefile) = 5d596dffcb906a14d6329ed7753f85aeab7599c5
+SHA1 (patch-mmulti.cpp) = faa77608cb3a60f5bada13351a34ae9f6b06fc9e
diff --git a/nblood/patches/patch-gnumakefile b/nblood/patches/patch-gnumakefile
new file mode 100644
index 0000000000..edccd9c39c
--- /dev/null
+++ b/nblood/patches/patch-gnumakefile
@@ -0,0 +1,16 @@
+$NetBSD$
+
+Was failing without this with GNUMakefile Error 1
+
+--- GNUmakefile.orig	2020-05-21 14:39:30.000000000 +0000
++++ GNUmakefile
+@@ -1442,8 +1442,7 @@ all: \
+     rr \
+     exhumed \
+ 
+-start:
+-	$(BUILD_STARTED)
++start: blood
+ 
+ tools: $(addsuffix $(EXESUFFIX),$(tools_targets)) | start
+ 	@$(call LL,$^)
diff --git a/nblood/patches/patch-mmulti.cpp b/nblood/patches/patch-mmulti.cpp
new file mode 100644
index 0000000000..733cb08a66
--- /dev/null
+++ b/nblood/patches/patch-mmulti.cpp
@@ -0,0 +1,24 @@
+$NetBSD$
+
+Add undeclared AI_* for NetBSD 
+
+--- source/build/src/mmulti.cpp.orig	2020-03-10 00:00:02.000000000 +0000
++++ source/build/src/mmulti.cpp
+@@ -68,6 +68,17 @@ LPFN_WSARECVMSG WSARecvMsgPtr;
+ #endif
+ #endif
+ 
++#ifndef AI_ALL 
++# define AI_ALL 0 
++#endif 
++#ifndef AI_V4MAPPED 
++# define AI_V4MAPPED 0 
++#endif 
++#ifndef AI_ADDRCONFIG 
++# define AI_ADDRCONFIG 0 
++#endif
++
++
+ #include <unistd.h>
+ #include <netinet/in.h>
+ #include <arpa/inet.h>


Home | Main Index | Thread Index | Old Index