pkgsrc-WIP-changes archive

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

davegnukem: Import Dave Gnukem.



Module Name:	pkgsrc-wip
Committed By:	Simon Howard <fraggle%soulsphere.org@localhost>
Pushed By:	fraggle
Date:		Sun Apr 28 15:30:09 2024 -0400
Changeset:	ad98f3100c2b1d0ef2fe6eba6c5d6399dec207fb

Added Files:
	davegnukem/COMMIT_MSG
	davegnukem/DESCR
	davegnukem/Makefile
	davegnukem/PLIST
	davegnukem/distinfo
	davegnukem/patches/patch-Makefile
	davegnukem/patches/patch-src_sdl_djgraph.cpp

Log Message:
davegnukem: Import Dave Gnukem.

Dave Gnukem is 2D scrolling platform shooter inspired by Duke Nukem 1.

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

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

diffstat:
 davegnukem/COMMIT_MSG                        |  4 ++
 davegnukem/DESCR                             |  2 +
 davegnukem/Makefile                          | 43 +++++++++++++
 davegnukem/PLIST                             | 94 ++++++++++++++++++++++++++++
 davegnukem/distinfo                          | 10 +++
 davegnukem/patches/patch-Makefile            | 15 +++++
 davegnukem/patches/patch-src_sdl_djgraph.cpp | 15 +++++
 7 files changed, 183 insertions(+)

diffs:
diff --git a/davegnukem/COMMIT_MSG b/davegnukem/COMMIT_MSG
new file mode 100644
index 0000000000..302fdf1fe4
--- /dev/null
+++ b/davegnukem/COMMIT_MSG
@@ -0,0 +1,4 @@
+games/davegnukem: Import Dave Gnukem.
+
+Dave Gnukem is 2D scrolling platform shooter inspired by Duke Nukem 1.
+
diff --git a/davegnukem/DESCR b/davegnukem/DESCR
new file mode 100644
index 0000000000..da89af9ff8
--- /dev/null
+++ b/davegnukem/DESCR
@@ -0,0 +1,2 @@
+Dave Gnukem is a 2D sidescrolling platform shooter game inspired by
+Duke Nukem 1.
diff --git a/davegnukem/Makefile b/davegnukem/Makefile
new file mode 100644
index 0000000000..10b36b7759
--- /dev/null
+++ b/davegnukem/Makefile
@@ -0,0 +1,43 @@
+# $NetBSD$
+
+V=1.0.3
+DISTNAME=	davegnukem-${V}
+CATEGORIES=	games
+MASTER_SITES=	${MASTER_SITE_GITHUB:=davidjoffe/}
+GITHUB_TAG=	${V}
+GITHUB_PROJECT=	dave_gnukem
+EXTRACT_USING=	bsdtar
+
+# The game data is distributed as a separate file.
+SITES.davegnukem-data-${V}.tar.gz= \
+-https://github.com/davidjoffe/gnukem_data/archive/refs/tags/${V}.tar.gz
+DISTFILES=	${DEFAULT_DISTFILES} davegnukem-data-${V}.tar.gz
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://djoffe.com/gnukem/
+COMMENT=	2D sidescrolling platform shooter
+LICENSE=	gnu-gpl-v2
+
+.include "../../mk/bsd.prefs.mk"
+
+MAKE_FLAGS+=	PREFIX=${PREFIX}
+USE_LANGUAGES=	c++
+USE_TOOLS+=	gmake
+PLIST.bsd=	yes
+
+# The Makefile install step expects to find the data files in data/
+pre-configure:
+	cd ${WRKSRC} && mv ../gnukem_data-${V} data
+
+SUBST_CLASSES+=		man
+SUBST_STAGE.man=	pre-configure
+SUBST_MESSAGE.man=	Fixing man path
+SUBST_FILES.man=	Makefile
+SUBST_SED.man+=	-e 's,share/man,${PKGMANDIR},g'
+
+BUILDLINK_API_DEPENDS.SDL2+=		SDL2>=2.0.7
+.include "../../devel/SDL2/buildlink3.mk"
+.include "../../audio/SDL2_mixer/buildlink3.mk"
+.include "../../sysutils/desktop-file-utils/desktopdb.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/davegnukem/PLIST b/davegnukem/PLIST
new file mode 100644
index 0000000000..f72f068ef3
--- /dev/null
+++ b/davegnukem/PLIST
@@ -0,0 +1,94 @@
+games/davegnukem
+share/applications/davegnukem.desktop
+share/doc/davegnukem-data/README.md
+share/doc/davegnukem/HISTORY.txt
+share/doc/davegnukem/README.md
+share/games/davegnukem/credits.tga
+share/games/davegnukem/default.gam
+share/games/davegnukem/editor/macros.txt
+share/games/davegnukem/emh/nextm1.lev
+share/games/davegnukem/emh/nextm2.lev
+share/games/davegnukem/font.tga
+share/games/davegnukem/fonts/simple_6x8.tga
+share/games/davegnukem/fonts/simple_6x8_shadow.tga
+share/games/davegnukem/gameskin.tga
+share/games/davegnukem/hiscores.tga
+share/games/davegnukem/icon.bmp
+share/games/davegnukem/icon/application_icon.ico
+share/games/davegnukem/levels/bg1.tga
+share/games/davegnukem/levels/bg2.tga
+share/games/davegnukem/levels/citybackdrop.tga
+share/games/davegnukem/levels/d_lev1.lev
+share/games/davegnukem/levels/dj0.lev
+share/games/davegnukem/levels/example.lev
+share/games/davegnukem/levels/foo.lev
+share/games/davegnukem/levels/kevin.lev
+share/games/davegnukem/levels/level1.lev
+share/games/davegnukem/levels/level2.lev
+share/games/davegnukem/levels/level3.lev
+share/games/davegnukem/levels/sjm001.lev
+share/games/davegnukem/levels/sjm2.lev
+share/games/davegnukem/levels/template.lev
+share/games/davegnukem/main.tga
+share/games/davegnukem/menucharbackground.tga
+share/games/davegnukem/missions.txt
+share/games/davegnukem/music/eric_matyas/8-Bit-Mayhem.ogg
+share/games/davegnukem/music/eric_matyas/Dystopic-Mayhem.ogg
+share/games/davegnukem/music/eric_matyas/Escape_Looping.ogg
+share/games/davegnukem/music/eric_matyas/Funky-Gameplay_Looping.ogg
+share/games/davegnukem/music/eric_matyas/Insane-Gameplay_Looping.ogg
+share/games/davegnukem/music/eric_matyas/Mad-Scientist_Looping.ogg
+share/games/davegnukem/music/eric_matyas/Monkey-Drama.ogg
+share/games/davegnukem/music/eric_matyas/Monster-Street-Fighters.ogg
+share/games/davegnukem/music/eric_matyas/Monsters-in-Bell-Bottoms_Looping.ogg
+share/games/davegnukem/music/eric_matyas/Retro-Frantic_V001_Looping.ogg
+share/games/davegnukem/music/eric_matyas/Techno-Caper.ogg
+share/games/davegnukem/music/eric_matyas/Techno-Gameplay_Looping.ogg
+share/games/davegnukem/music/eric_matyas/The-Darkness-Below_Looping.ogg
+share/games/davegnukem/sample.gam
+share/games/davegnukem/shadows.tga
+share/games/davegnukem/simplefont.tga
+share/games/davegnukem/sounds/cardflip.wav
+share/games/davegnukem/sounds/exit.ogg
+share/games/davegnukem/sounds/explode.wav
+share/games/davegnukem/sounds/jump.wav
+share/games/davegnukem/sounds/jump_landing.wav
+share/games/davegnukem/sounds/key_pickup.wav
+share/games/davegnukem/sounds/laser.wav
+share/games/davegnukem/sounds/laser2.wav
+share/games/davegnukem/sounds/lightmag.wav
+share/games/davegnukem/sounds/pickup.wav
+share/games/davegnukem/sounds/sfx_weapon_singleshot7.wav
+share/games/davegnukem/sounds/shoot_cg1_modified.wav
+share/games/davegnukem/sounds/soft_explode.wav
+share/games/davegnukem/sounds/wooeep.wav
+share/games/davegnukem/sprites/def0spr.dat
+share/games/davegnukem/sprites/def1spr.dat
+share/games/davegnukem/sprites/def2spr.dat
+share/games/davegnukem/sprites/def3spr.dat
+share/games/davegnukem/sprites/def4spr.dat
+share/games/davegnukem/sprites/def5spr.dat
+share/games/davegnukem/sprites/def6spr.dat
+share/games/davegnukem/sprites/def7spr.dat
+share/games/davegnukem/sprites/sprites00.tga
+share/games/davegnukem/sprites/sprites01.tga
+share/games/davegnukem/sprites/sprites02.tga
+share/games/davegnukem/sprites/sprites03.tga
+share/games/davegnukem/sprites/sprites04.tga
+share/games/davegnukem/sprites/sprites05.tga
+share/games/davegnukem/sprites/sprites06.tga
+share/games/davegnukem/sprites/sprites07.tga
+share/games/davegnukem/sprites/sprites16.tga
+share/games/davegnukem/sprites/sprites16_metadata.dat
+share/games/davegnukem/tog/tog-bg-black.tga
+share/games/davegnukem/tog/tog-lev_0.lev
+share/games/davegnukem/tog/tog-lev_1.lev
+share/games/davegnukem/tog/tog-lev_2.lev
+share/games/davegnukem/tog/tog-lev_3.lev
+share/games/davegnukem/tog/tog-spr_16.bmp
+share/games/davegnukem/tog/tog-spr_16.dat
+share/games/davegnukem/tog/tog-spr_16.tga
+share/games/davegnukem/tog/tog.gam
+share/games/davegnukem/tog/zz-empty.lev
+share/icons/hicolor/32x32/apps/davegnukem.png
+man/man6/davegnukem.6
diff --git a/davegnukem/distinfo b/davegnukem/distinfo
new file mode 100644
index 0000000000..181cb4c5c3
--- /dev/null
+++ b/davegnukem/distinfo
@@ -0,0 +1,10 @@
+$NetBSD$
+
+BLAKE2s (davegnukem-1.0.3.tar.gz) = de361dd18ff3f66938ef9d0741d9fd3599213a4a9ad883e25ea8c084fe89e2cc
+SHA512 (davegnukem-1.0.3.tar.gz) = b1b4ce3212ff3e6e4b0a9bf33c04bfe0df9e096e9faa8cd06cb50ac226e79cb0042b7150c0568172e531f3d90c3fb758365edaa8e25de141a8ba837264a7eadf
+Size (davegnukem-1.0.3.tar.gz) = 342109 bytes
+BLAKE2s (davegnukem-data-1.0.3.tar.gz) = 171d612b4374e578eea6b062ba8ff61fb3d7c3a0b0263b74ed94f9bd30b2903c
+SHA512 (davegnukem-data-1.0.3.tar.gz) = fd628974f09de9e6f0e0416dfd48704766e2351a9e1e086cc0fe7fd3ad908d289ccccc5b67f8f8851a9e4a58f8caab1424e506341d928ba564679d3305061bf5
+Size (davegnukem-data-1.0.3.tar.gz) = 20258150 bytes
+SHA1 (patch-Makefile) = e42b4750fb59472278be81d0ddb3c1d3f76b61a5
+SHA1 (patch-src_sdl_djgraph.cpp) = aecc21d65add372d7928b4114ee641196093784a
diff --git a/davegnukem/patches/patch-Makefile b/davegnukem/patches/patch-Makefile
new file mode 100644
index 0000000000..f8fa5a5d66
--- /dev/null
+++ b/davegnukem/patches/patch-Makefile
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Patches LDFLAGS to set rpath to package dir.
+
+--- Makefile.orig	2024-04-28 15:16:45.341153643 -0400
++++ Makefile	2024-04-28 15:17:57.960908017 -0400
+@@ -25,7 +25,7 @@
+ DATA_DIR = $(PREFIX)/share/games/$(BIN)/# the trailing slash is required for paths in the source
+ 
+ LIBS    = `sdl2-config --libs` -lSDL2_mixer
+-LDFLAGS = $(LIBS)
++LDFLAGS = -Wl,-rpath,$(PREFIX)/lib $(LIBS)
+ 
+ CPPFLAGS = -DDATA_DIR=\"$(DATA_DIR)\" -DVERSION=\"'$(VERSION)'\"
+ 
diff --git a/davegnukem/patches/patch-src_sdl_djgraph.cpp b/davegnukem/patches/patch-src_sdl_djgraph.cpp
new file mode 100644
index 0000000000..a769935a92
--- /dev/null
+++ b/davegnukem/patches/patch-src_sdl_djgraph.cpp
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Fix compile error when compiling on big-endian systems.
+
+--- src/sdl/djgraph.cpp.orig	2024-04-27 19:31:52.959084051 -0400
++++ src/sdl/djgraph.cpp	2024-04-27 19:33:17.530349103 -0400
+@@ -182,7 +182,7 @@
+ 		//fixme this won't work bigendian
+ 		#if SDL_BYTEORDER==SDL_BIG_ENDIAN
+ 		// Not yet supported for big-endian platforms (dj2019-06)
+-		if (false)
++		if (false) {}
+ 		#else
+ 		if (g_nSimulatedGraphics>0) //'Simulate' CGA/EGA
+ 		{


Home | Main Index | Thread Index | Old Index