Update to gnukem-1.0.1

This commit is contained in:
bcallah 2020-05-15 19:57:34 +00:00
parent 97ec3e6053
commit cef7980b7d
9 changed files with 9 additions and 68 deletions

View File

@ -1,7 +1,7 @@
# $OpenBSD: Makefile,v 1.2 2019/07/12 20:46:19 sthen Exp $
# $OpenBSD: Makefile,v 1.3 2020/05/15 19:57:34 bcallah Exp $
COMMENT = open source retro-style 2D scrolling platform shooter game
DISTNAME = gnukem-1.0
DISTNAME = gnukem-1.0.1
CATEGORIES = games x11
HOMEPAGE = https://djoffe.com/gnukem/

View File

@ -1,2 +1,2 @@
SHA256 (gnukem-1.0.tar.gz) = KOX8oFvgtUKGmrP9x8J2dNr9VvfPFmzFp+2dFDxMDKs=
SIZE (gnukem-1.0.tar.gz) = 20553539
SHA256 (gnukem-1.0.1.tar.gz) = BwmDKeY852NKhV3Cb74u9lcQQyfzYNpwrR9pZuM7BO4=
SIZE (gnukem-1.0.1.tar.gz) = 20566679

View File

@ -1,16 +0,0 @@
$OpenBSD: patch-src_datadir_h,v 1.1.1.1 2019/05/04 02:00:17 bcallah Exp $
Only define DATA_DIR if you haven't already.
Index: src/datadir.h
--- src/datadir.h.orig
+++ src/datadir.h
@@ -10,6 +10,8 @@ Copyright (C) 1999-2018 David Joffe
#define _DATADIR_H_
//! Data directory [dj2017-08 should this move to config.h?]
+#ifndef DATA_DIR
#define DATA_DIR "data/"
+#endif
#endif

View File

@ -1,4 +1,4 @@
$OpenBSD: patch-src_djimage_cpp,v 1.1.1.1 2019/05/04 02:00:17 bcallah Exp $
$OpenBSD: patch-src_djimage_cpp,v 1.2 2020/05/15 19:57:34 bcallah Exp $
Fix big endian issue
@ -6,7 +6,7 @@ Index: src/djimage.cpp
--- src/djimage.cpp.orig
+++ src/djimage.cpp
@@ -264,8 +264,13 @@ int djImage::LoadTGA( const char * szFilename )
for ( unsigned int j=0; j<nWidth; j++ )
for ( unsigned int j=0; j<nWidth; ++j )
{
// reverse endianness from file
+ #if SDL_BYTEORDER==SDL_BIG_ENDIAN

View File

@ -1,16 +0,0 @@
$OpenBSD: patch-src_game_cpp,v 1.1.1.1 2019/05/04 02:00:17 bcallah Exp $
This needs to be unsigned since we're dealing with numbers >127.
Index: src/game.cpp
--- src/game.cpp.orig
+++ src/game.cpp
@@ -2014,7 +2014,7 @@ bool HeroIsHurting()
void DrawHealth()
{
// Build a string representing health bars (which are in the 8x8 font)
- char szHealth[MAX_HEALTH+1]={0};
+ unsigned char szHealth[MAX_HEALTH+1]={0};
for ( unsigned int i=0; i<MAX_HEALTH; ++i )
{
// 170 = health; 169 = not health

View File

@ -5,7 +5,7 @@ Revert commit/a94bae1f70b9110431f8a21f0118141c25a343d8
Index: src/sdl/djgraph.cpp
--- src/sdl/djgraph.cpp.orig
+++ src/sdl/djgraph.cpp
@@ -600,15 +600,10 @@ bool djCreateImageHWSurface( djImage* pImage/*, djVisu
@@ -747,15 +747,10 @@ bool djCreateImageHWSurface( djImage* pImage/*, djVisu
pImage->Height(),
32,
pImage->Pitch(),

View File

@ -1,14 +0,0 @@
$OpenBSD: patch-src_sdl_djsound_cpp,v 1.1.1.1 2019/05/04 02:00:17 bcallah Exp $
Index: src/sdl/djsound.cpp
--- src/sdl/djsound.cpp.orig
+++ src/sdl/djsound.cpp
@@ -13,7 +13,7 @@ Copyright (C) 1999-2018 David Joffe and Kent Mein
#include <SDL_mixer.h>
#endif
-#ifdef __APPLE__
+#ifdef __OpenBSD__
#include <stdlib.h>//Fixing malloc.h 'not found' error compiling on Mac [dj2016-10]
#else
#include <malloc.h>

View File

@ -1,14 +0,0 @@
$OpenBSD: patch-src_sys_defs_h,v 1.1.1.1 2019/05/04 02:00:17 bcallah Exp $
Index: src/sys_defs.h
--- src/sys_defs.h.orig
+++ src/sys_defs.h
@@ -21,7 +21,7 @@ extern "C"
#include <stdarg.h>
#include <stddef.h>
#include <string.h>
-#ifdef __APPLE__
+#ifdef __OpenBSD__
#include <stdlib.h>//Fixing malloc.h 'not found' error compiling on Mac [dj2016-10]
#else
#include <malloc.h>

View File

@ -1,7 +1,8 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2019/05/04 02:00:17 bcallah Exp $
@comment $OpenBSD: PLIST,v 1.2 2020/05/15 19:57:34 bcallah Exp $
bin/davegnukem
share/gnukem/
share/gnukem/data/
share/gnukem/data/README.md
share/gnukem/data/credits.tga
share/gnukem/data/default.gam
share/gnukem/data/editor/