update to 1.22; from Daniel Dickman

This commit is contained in:
robert 2021-07-20 07:48:58 +00:00
parent b000a1de2a
commit ddd81643dc
4 changed files with 13 additions and 40 deletions

View File

@ -1,14 +1,15 @@
# $OpenBSD: Makefile,v 1.7 2021/02/28 17:41:20 daniel Exp $
# $OpenBSD: Makefile,v 1.8 2021/07/20 07:48:58 robert Exp $
NOT_FOR_ARCHS= ${BE_ARCHS}
COMMENT= open-source port of Prince of Persia
# XXX: switching to a tagged release will require bumping EPOCH
DISTNAME= sdlpop-20210227
V= 1.22
GH_ACCOUNT= NagyD
GH_PROJECT= SDLPoP
GH_COMMIT= b91c1d4e8171440b9f47c1b246400509fde76d8c
GH_TAGNAME= v${V}
DISTNAME= ${GH_PROJECT:L}-${V}
EPOCH= 0
CATEGORIES= games

View File

@ -1,2 +1,2 @@
SHA256 (sdlpop-20210227-b91c1d4e.tar.gz) = Qau9DV2I5F9WB7QxofQGjTOvxfgxf9VNPZ6gPQdiCvs=
SIZE (sdlpop-20210227-b91c1d4e.tar.gz) = 639436
SHA256 (sdlpop-1.22.tar.gz) = GvFw9/be9hsqucOpIn/sozVGHSJPqpnzV4/AkRWsUFw=
SIZE (sdlpop-1.22.tar.gz) = 633128

View File

@ -1,8 +1,8 @@
$OpenBSD: patch-src_seg009_c,v 1.2 2021/02/28 17:41:20 daniel Exp $
$OpenBSD: patch-src_seg009_c,v 1.3 2021/07/20 07:48:58 robert Exp $
Index: src/seg009.c
--- src/seg009.c.orig
+++ src/seg009.c
@@ -334,7 +334,7 @@ static FILE* open_dat_from_root_or_data_dir(const char
@@ -343,7 +343,7 @@ static FILE* open_dat_from_root_or_data_dir(const char
// if failed, try if the DAT file can be opened in the data/ directory, instead of the main folder
if (fp == NULL) {
char data_path[POP_MAX_PATH];
@ -11,7 +11,7 @@ Index: src/seg009.c
if (!file_exists(data_path)) {
find_exe_dir();
@@ -2069,7 +2069,7 @@ const int sound_channel = 0;
@@ -2078,7 +2078,7 @@ const int sound_channel = 0;
const int max_sound_id = 58;
void load_sound_names() {
@ -20,7 +20,7 @@ Index: src/seg009.c
if (sound_names != NULL) return;
FILE* fp = fopen(names_path,"rt");
if (fp==NULL) return;
@@ -2119,7 +2119,7 @@ sound_buffer_type* load_sound(int index) {
@@ -2128,7 +2128,7 @@ sound_buffer_type* load_sound(int index) {
fp = fopen(filename, "rb");
}
if (fp == NULL && !skip_normal_data_files) {
@ -29,7 +29,7 @@ Index: src/seg009.c
fp = fopen(locate_file(filename), "rb");
}
if (fp == NULL) {
@@ -2723,7 +2723,7 @@ void load_from_opendats_metadata(int resource_id, cons
@@ -2754,7 +2754,7 @@ void load_from_opendats_metadata(int resource_id, cons
if (len >= 5 && filename_no_ext[len-4] == '.') {
filename_no_ext[len-4] = '\0'; // terminate, so ".DAT" is deleted from the filename
}

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST,v 1.3 2021/02/28 17:41:20 daniel Exp $
@comment $OpenBSD: PLIST,v 1.4 2021/07/20 07:48:58 robert Exp $
@bin bin/sdlpop
share/doc/sdlpop/
share/doc/sdlpop/Readme.txt
@ -1045,34 +1045,6 @@ share/sdlpop/data/font/res1129.png
share/sdlpop/data/font/res1130.png
share/sdlpop/data/font/res1131.png
share/sdlpop/data/icon.png
share/sdlpop/data/levels-original/
share/sdlpop/data/levels-original/res2000.bin
share/sdlpop/data/levels-original/res2001.bin
share/sdlpop/data/levels-original/res2002.bin
share/sdlpop/data/levels-original/res2003.bin
share/sdlpop/data/levels-original/res2004.bin
share/sdlpop/data/levels-original/res2005.bin
share/sdlpop/data/levels-original/res2006.bin
share/sdlpop/data/levels-original/res2007.bin
share/sdlpop/data/levels-original/res2008.bin
share/sdlpop/data/levels-original/res2009.bin
share/sdlpop/data/levels-original/res2010.bin
share/sdlpop/data/levels-original/res2011.bin
share/sdlpop/data/levels-original/res2012.bin
share/sdlpop/data/levels-original/res2013.bin
share/sdlpop/data/levels-original/res2014.bin
share/sdlpop/data/levels-original/res2015.bin
share/sdlpop/data/levels-test/
share/sdlpop/data/levels-test/01-micro-room-change
share/sdlpop/data/levels-test/01-weird-room-change
share/sdlpop/data/levels-test/02-bigpillar-climb
share/sdlpop/data/levels-test/02-guard-following
share/sdlpop/data/levels-test/02-random-broken
share/sdlpop/data/levels-test/02-walls
share/sdlpop/data/levels-test/04-through-tapestry
share/sdlpop/data/levels-test/05-stacked-gates
share/sdlpop/data/levels-test/07-jump
share/sdlpop/data/levels-test/12-shadow
share/sdlpop/data/light.png
share/sdlpop/data/music/
share/sdlpop/data/music/names.txt