diff --git a/games-fps/tyrquake_libretro/additional-files/tyrquake_libretro.info.in b/games-fps/tyrquake_libretro/additional-files/tyrquake_libretro.info.in index f83904cc0..9be3eb4e0 100644 --- a/games-fps/tyrquake_libretro/additional-files/tyrquake_libretro.info.in +++ b/games-fps/tyrquake_libretro/additional-files/tyrquake_libretro.info.in @@ -1,14 +1,32 @@ +# Software Information display_name = "Quake (TyrQuake)" authors = "Kevin Shanahan (Tyrann)" supported_extensions = "pak" corename = "TyrQuake" -manufacturer = "Id Software" -categories = "Game" -systemname = "Quake Game Engine" -systemid = "quake_1" license = "GPLv2" permissions = "" display_version = "@DISPLAY_VERSION@" +categories = "Game" + +# Hardware Information +manufacturer = "Id Software" +systemname = "Quake Game Engine" +systemid = "quake_1" + +# Libretro Features supports_no_game = "false" database = "Quake" +savestate = "false" +cheats = "true" +input_descriptors = "true" +memory_descriptors = "false" +libretro_saves = "true" +core_options = "true" +load_subsystem = "false" +hw_render = "false" +needs_fullpath = "true" +disk_control = "false" +is_experimental = "false" notes = "[i] Make those folders in the same directory:|[i] -id1 for the main game|[i] -hipnotic for the 1st mission pack|[i] -rogue for the 2nd mission pack|[i] -quoth for Quoth addon|[i] Put BGM into a subfolder named music in each of them." + +description = "A port of the tyrquake engine, which is based on iD's open source Quake engine, to libretro. While remaining relatively conservative and true-to-the-original, this core provides the additional features of running at fixed framerates (with interpolated animations applied on the keyframe for smooth animation at greater-than-original framerates), software bilinear filtering, software Half-Life/Quake 2-style colored lighting RGBA and third-person view mode. Check the libretro documentation for an explanation on the directory structure required to load BGM files, etc." diff --git a/games-fps/tyrquake_libretro/patches/tyrquake_libretro-0.62_20210410.patchset b/games-fps/tyrquake_libretro/patches/tyrquake_libretro-0.62_20210410.patchset new file mode 100644 index 000000000..d142c7e81 --- /dev/null +++ b/games-fps/tyrquake_libretro/patches/tyrquake_libretro-0.62_20210410.patchset @@ -0,0 +1,26 @@ +From 4b99fe6d81956c064d9093a276a84decdccca735 Mon Sep 17 00:00:00 2001 +From: Benjamin FRANCOIS +Date: Sat, 8 May 2021 23:04:59 -0700 +Subject: Undefine pre-existing functions + + +diff --git a/common/common.h b/common/common.h +index c987708..79ef688 100644 +--- a/common/common.h ++++ b/common/common.h +@@ -48,6 +48,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + #define MAX_LOCALINFO_STRING 32768 + #endif + ++// these already pre-exist in Haiku and need to be undef ++#ifdef __HAIKU__ ++#undef bswap16 ++#undef bswap32 ++#endif ++ + //============================================================================ + + typedef struct sizebuf_s { +-- +2.30.2 + diff --git a/games-fps/tyrquake_libretro/tyrquake_libretro-0.62_20200417.recipe b/games-fps/tyrquake_libretro/tyrquake_libretro-0.62_20210410.recipe similarity index 86% rename from games-fps/tyrquake_libretro/tyrquake_libretro-0.62_20200417.recipe rename to games-fps/tyrquake_libretro/tyrquake_libretro-0.62_20210410.recipe index be23d9a7c..73648b4e7 100644 --- a/games-fps/tyrquake_libretro/tyrquake_libretro-0.62_20200417.recipe +++ b/games-fps/tyrquake_libretro/tyrquake_libretro-0.62_20210410.recipe @@ -5,14 +5,15 @@ is to allow running Quake on modern systems as accurately as the original game \ but provides smoother model animations, coloured lighting, fullbrights in \ GLQuake, along other improvements." HOMEPAGE="https://disenchant.net/tyrquake/" -COPYRIGHT="2003-2020 Kevin Shanahan, the libretro team" +COPYRIGHT="2003-2021 Kevin Shanahan, the libretro team" LICENSE="GNU GPL v2" REVISION="1" -srcGitRev="7f175ba5c51c65e815a239ff32fb4aae6564c0a7" +srcGitRev="f627174746989eaab940adc623b6a92a051c0c0b" SOURCE_URI="https://github.com/libretro/tyrquake/archive/$srcGitRev.tar.gz" -CHECKSUM_SHA256="5d10f411126ba0bdf2174098500989c7cfffb4632c083cac101e6b71f28d61eb" +CHECKSUM_SHA256="12f8169e2045a0c0c56d7f716b0f6565600b775ac9677dc7bbfb0d81aee28836" SOURCE_FILENAME="libretro-tyrquake-${portVersion/_/-}-$srcGitRev.tar.gz" SOURCE_DIR="tyrquake-$srcGitRev" +PATCHES="tyrquake_libretro-0.62_20210410.patchset" ADDITIONAL_FILES="tyrquake_libretro.info.in" ARCHITECTURES="!x86_gcc2 ?x86 x86_64"