pkgsrc-Changes archive

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

CVS commit: pkgsrc/games



Module Name:    pkgsrc
Committed By:   nia
Date:           Sun May 26 10:29:06 UTC 2024

Modified Files:
        pkgsrc/games: Makefile
Added Files:
        pkgsrc/games/tr1x: DESCR MESSAGE Makefile PLIST distinfo
        pkgsrc/games/tr1x/files: tr1x.desktop tr1x.sh tr1x.sh.in
        pkgsrc/games/tr1x/patches: patch-meson.build
            patch-src_specific_s__filesystem.c patch-tools_shared_versioning.py

Log Message:
Add games/tr1x

Open source re-implementation of Tomb Raider 1 (1996), along with additional
enhancements and bugfixes.

You must have the data files from an original Tomb Raider release or the
GOG/Steam release.


To generate a diff of this commit:
cvs rdiff -u -r1.549 -r1.550 pkgsrc/games/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/games/tr1x/DESCR pkgsrc/games/tr1x/MESSAGE \
    pkgsrc/games/tr1x/Makefile pkgsrc/games/tr1x/PLIST \
    pkgsrc/games/tr1x/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/games/tr1x/files/tr1x.desktop \
    pkgsrc/games/tr1x/files/tr1x.sh pkgsrc/games/tr1x/files/tr1x.sh.in
cvs rdiff -u -r0 -r1.1 pkgsrc/games/tr1x/patches/patch-meson.build \
    pkgsrc/games/tr1x/patches/patch-src_specific_s__filesystem.c \
    pkgsrc/games/tr1x/patches/patch-tools_shared_versioning.py

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

Modified files:

Index: pkgsrc/games/Makefile
diff -u pkgsrc/games/Makefile:1.549 pkgsrc/games/Makefile:1.550
--- pkgsrc/games/Makefile:1.549 Tue May  7 15:13:42 2024
+++ pkgsrc/games/Makefile       Sun May 26 10:29:06 2024
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.549 2024/05/07 15:13:42 nia Exp $
+# $NetBSD: Makefile,v 1.550 2024/05/26 10:29:06 nia Exp $
 #
 
 COMMENT=       Games
@@ -419,6 +419,7 @@ SUBDIR+=    tetris-tui
 SUBDIR+=       thew
 SUBDIR+=       tileworld
 SUBDIR+=       toppler
+SUBDIR+=       tr1x
 SUBDIR+=       trader
 SUBDIR+=       tscp
 SUBDIR+=       tuxmath

Added files:

Index: pkgsrc/games/tr1x/DESCR
diff -u /dev/null pkgsrc/games/tr1x/DESCR:1.1
--- /dev/null   Sun May 26 10:29:07 2024
+++ pkgsrc/games/tr1x/DESCR     Sun May 26 10:29:06 2024
@@ -0,0 +1,5 @@
+Open source re-implementation of Tomb Raider 1 (1996), along with additional
+enhancements and bugfixes.
+
+You must have the data files from an original Tomb Raider release or the
+GOG/Steam release.
Index: pkgsrc/games/tr1x/MESSAGE
diff -u /dev/null pkgsrc/games/tr1x/MESSAGE:1.1
--- /dev/null   Sun May 26 10:29:07 2024
+++ pkgsrc/games/tr1x/MESSAGE   Sun May 26 10:29:06 2024
@@ -0,0 +1,8 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2024/05/26 10:29:06 nia Exp $
+
+You must have the data files from an original Tomb Raider release or the
+GOG/Steam release.  For TombATI users, copy the data, fmv, and music
+directories to $HOME/.share/tr1x.
+
+===========================================================================
Index: pkgsrc/games/tr1x/Makefile
diff -u /dev/null pkgsrc/games/tr1x/Makefile:1.1
--- /dev/null   Sun May 26 10:29:07 2024
+++ pkgsrc/games/tr1x/Makefile  Sun May 26 10:29:06 2024
@@ -0,0 +1,51 @@
+# $NetBSD: Makefile,v 1.1 2024/05/26 10:29:06 nia Exp $
+
+DISTNAME=      TR1X-4.1.2
+PKGNAME=       ${DISTNAME:tl}
+CATEGORIES=    games
+MASTER_SITES=  ${MASTER_SITE_GITHUB:=LostArtefacts/}
+GITHUB_PROJECT=        TR1X
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/LostArtefacts/TR1X
+COMMENT=       Open source re-implementation of Tomb Raider
+LICENSE=       gnu-gpl-v3
+
+USE_TOOLS+=    pkg-config pax
+
+MESON_INSTALL= no
+MESON_ARGS+=   -Dstaticdeps=false
+
+USE_CC_FEATURES+=      c11
+
+INSTALLATION_DIRS+=    bin
+INSTALLATION_DIRS+=    share/applications
+INSTALLATION_DIRS+=    share/pixmaps
+INSTALLATION_DIRS+=    share/tr1x
+INSTALLATION_DIRS+=    libexec
+
+pre-configure:
+       ${SED}  -e 's,@PREFIX@,${PREFIX},g' \
+                < ${FILESDIR}/tr1x.sh.in > \
+                ${WRKDIR}/tr1x
+
+do-install:
+       ${INSTALL_SCRIPT} ${WRKDIR}/tr1x \
+               ${DESTDIR}${PREFIX}/bin/tr1x
+       ${INSTALL_PROGRAM} ${WRKSRC}/output/TR1X \
+               ${DESTDIR}${PREFIX}/libexec/tr1x
+       ${INSTALL_DATA} ${FILESDIR}/tr1x.desktop \
+               ${DESTDIR}${PREFIX}/share/applications/tr1x.desktop
+       ${INSTALL_DATA} ${WRKSRC}/tools/installer/Installer/Resources/TR1X.png \
+               ${DESTDIR}${PREFIX}/share/pixmaps/tr1x.png
+       cd ${WRKSRC}/data/ship && ${PAX} -rw -pp . \
+               ${DESTDIR}${PREFIX}/share/tr1x
+
+.include "../../devel/meson/build.mk"
+.include "../../devel/SDL2/buildlink3.mk"
+.include "../../devel/pcre2/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
+.include "../../multimedia/ffmpeg6/buildlink3.mk"
+.include "../../sysutils/desktop-file-utils/desktopdb.mk"
+.include "../../lang/python/tool.mk"
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/games/tr1x/PLIST
diff -u /dev/null pkgsrc/games/tr1x/PLIST:1.1
--- /dev/null   Sun May 26 10:29:07 2024
+++ pkgsrc/games/tr1x/PLIST     Sun May 26 10:29:06 2024
@@ -0,0 +1,98 @@
+@comment $NetBSD: PLIST,v 1.1 2024/05/26 10:29:06 nia Exp $
+bin/tr1x
+libexec/tr1x
+share/applications/tr1x.desktop
+share/pixmaps/tr1x.png
+share/tr1x/cfg/TR1X_gameflow.json5
+share/tr1x/cfg/TR1X_gameflow_ub.json5
+share/tr1x/data/images/atlantis.webp
+share/tr1x/data/images/credits_1.webp
+share/tr1x/data/images/credits_2.webp
+share/tr1x/data/images/credits_3.webp
+share/tr1x/data/images/credits_3_alt.webp
+share/tr1x/data/images/credits_ps1.webp
+share/tr1x/data/images/credits_ub.webp
+share/tr1x/data/images/egypt.webp
+share/tr1x/data/images/eidos.webp
+share/tr1x/data/images/end.webp
+share/tr1x/data/images/greece.webp
+share/tr1x/data/images/greece_saturn.webp
+share/tr1x/data/images/gym.webp
+share/tr1x/data/images/install.webp
+share/tr1x/data/images/peru.webp
+share/tr1x/data/images/title.webp
+share/tr1x/data/images/title_og_alt.webp
+share/tr1x/data/images/title_ub.webp
+share/tr1x/data/injections/atlantis_fd.bin
+share/tr1x/data/injections/atlantis_textures.bin
+share/tr1x/data/injections/backpack.bin
+share/tr1x/data/injections/backpack_cut.bin
+share/tr1x/data/injections/braid.bin
+share/tr1x/data/injections/braid_cut1.bin
+share/tr1x/data/injections/braid_cut2_cut4.bin
+share/tr1x/data/injections/cat_fd.bin
+share/tr1x/data/injections/cat_itemrots.bin
+share/tr1x/data/injections/cat_textures.bin
+share/tr1x/data/injections/caves_fd.bin
+share/tr1x/data/injections/caves_itemrots.bin
+share/tr1x/data/injections/caves_textures.bin
+share/tr1x/data/injections/cistern_fd.bin
+share/tr1x/data/injections/cistern_itemrots.bin
+share/tr1x/data/injections/cistern_plants.bin
+share/tr1x/data/injections/cistern_textures.bin
+share/tr1x/data/injections/colosseum_door.bin
+share/tr1x/data/injections/colosseum_fd.bin
+share/tr1x/data/injections/colosseum_itemrots.bin
+share/tr1x/data/injections/colosseum_textures.bin
+share/tr1x/data/injections/cowboy_textures.bin
+share/tr1x/data/injections/cut3_textures.bin
+share/tr1x/data/injections/cut4_textures.bin
+share/tr1x/data/injections/egypt_fd.bin
+share/tr1x/data/injections/egypt_textures.bin
+share/tr1x/data/injections/folly_fd.bin
+share/tr1x/data/injections/folly_itemrots.bin
+share/tr1x/data/injections/folly_textures.bin
+share/tr1x/data/injections/gym_textures.bin
+share/tr1x/data/injections/hive_fd.bin
+share/tr1x/data/injections/hive_itemrots.bin
+share/tr1x/data/injections/hive_textures.bin
+share/tr1x/data/injections/khamoon_fd.bin
+share/tr1x/data/injections/khamoon_mummy.bin
+share/tr1x/data/injections/khamoon_textures.bin
+share/tr1x/data/injections/kold_textures.bin
+share/tr1x/data/injections/lara_animations.bin
+share/tr1x/data/injections/lara_gym_guns.bin
+share/tr1x/data/injections/lara_jumping.bin
+share/tr1x/data/injections/larson_textures.bin
+share/tr1x/data/injections/midas_itemrots.bin
+share/tr1x/data/injections/midas_textures.bin
+share/tr1x/data/injections/mines_fd.bin
+share/tr1x/data/injections/mines_itemrots.bin
+share/tr1x/data/injections/mines_textures.bin
+share/tr1x/data/injections/obelisk_fd.bin
+share/tr1x/data/injections/obelisk_itemrots.bin
+share/tr1x/data/injections/obelisk_textures.bin
+share/tr1x/data/injections/pda_model.bin
+share/tr1x/data/injections/pyramid_fd.bin
+share/tr1x/data/injections/pyramid_textures.bin
+share/tr1x/data/injections/qualopec_fd.bin
+share/tr1x/data/injections/qualopec_itemrots.bin
+share/tr1x/data/injections/qualopec_textures.bin
+share/tr1x/data/injections/sanctuary_fd.bin
+share/tr1x/data/injections/sanctuary_itemrots.bin
+share/tr1x/data/injections/sanctuary_textures.bin
+share/tr1x/data/injections/skateboardkid_textures.bin
+share/tr1x/data/injections/stronghold_fd.bin
+share/tr1x/data/injections/stronghold_itemrots.bin
+share/tr1x/data/injections/stronghold_textures.bin
+share/tr1x/data/injections/tihocan_fd.bin
+share/tr1x/data/injections/tihocan_itemrots.bin
+share/tr1x/data/injections/tihocan_textures.bin
+share/tr1x/data/injections/uzi_sfx.bin
+share/tr1x/data/injections/valley_itemrots.bin
+share/tr1x/data/injections/valley_textures.bin
+share/tr1x/data/injections/vilcabamba_itemrots.bin
+share/tr1x/data/injections/vilcabamba_textures.bin
+share/tr1x/shaders/2d.glsl
+share/tr1x/shaders/3d.glsl
+share/tr1x/shaders/fbo.glsl
Index: pkgsrc/games/tr1x/distinfo
diff -u /dev/null pkgsrc/games/tr1x/distinfo:1.1
--- /dev/null   Sun May 26 10:29:07 2024
+++ pkgsrc/games/tr1x/distinfo  Sun May 26 10:29:06 2024
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1 2024/05/26 10:29:06 nia Exp $
+
+BLAKE2s (TR1X-4.1.2.tar.gz) = b91db53189b01c1ddbd4ebed7294b4f7fd12f6893e719cd31ae8c9ff107cf939
+SHA512 (TR1X-4.1.2.tar.gz) = 7eebe9458496cce446604d08c15e133cbdac1ef6b4b50cc26f4fef96967af3cc1e33871e89177750129bb162e75be7683a3126f5394b27dd2dafa5c7062eaecd
+Size (TR1X-4.1.2.tar.gz) = 46366367 bytes
+SHA1 (patch-meson.build) = 596cdf822aeb7e3ed1c2144e64fe3cc4497e9259
+SHA1 (patch-src_specific_s__filesystem.c) = 46c91297f0f4c09b2c3c6d0da2091348988ceb2f
+SHA1 (patch-tools_shared_versioning.py) = e98bb20b90acf1bb2dc8044a539c6474668b32d0

Index: pkgsrc/games/tr1x/files/tr1x.desktop
diff -u /dev/null pkgsrc/games/tr1x/files/tr1x.desktop:1.1
--- /dev/null   Sun May 26 10:29:07 2024
+++ pkgsrc/games/tr1x/files/tr1x.desktop        Sun May 26 10:29:06 2024
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Type=Application
+Encoding=UTF-8
+Name=TR1X
+Comment=Open source re-implementation of Tomb Raider
+Icon=tr1x
+Exec=tr1x
+Terminal=false
+Categories=Game;ActionGame;
Index: pkgsrc/games/tr1x/files/tr1x.sh
diff -u /dev/null pkgsrc/games/tr1x/files/tr1x.sh:1.1
--- /dev/null   Sun May 26 10:29:07 2024
+++ pkgsrc/games/tr1x/files/tr1x.sh     Sun May 26 10:29:06 2024
@@ -0,0 +1,13 @@
+#!/bin/sh
+if [ -n "${XDG_DATA_HOME}" ]; then
+       DIR="${XDG_DATA_HOME}/tr1x"
+else
+       DIR="${HOME}/.local/share/tr1x"
+fi
+mkdir -p "${DIR}" || exit 1
+if ! [ -e "${DIR}/shaders/3d.glsl" ]; then
+       printf "copying files, please wait...\n"
+       cp -Rp @PREFIX@/share/tr1x/* "${DIR}"
+       printf "done.\n"
+fi
+cd "${DIR}" && exec @PREFIX@/libexec/tr1x
Index: pkgsrc/games/tr1x/files/tr1x.sh.in
diff -u /dev/null pkgsrc/games/tr1x/files/tr1x.sh.in:1.1
--- /dev/null   Sun May 26 10:29:07 2024
+++ pkgsrc/games/tr1x/files/tr1x.sh.in  Sun May 26 10:29:06 2024
@@ -0,0 +1,13 @@
+#!/bin/sh
+if [ -n "${XDG_DATA_HOME}" ]; then
+       DIR="${XDG_DATA_HOME}/tr1x"
+else
+       DIR="${HOME}/.local/share/tr1x"
+fi
+mkdir -p "${DIR}" || exit 1
+if ! [ -e "${DIR}/shaders/3d.glsl" ]; then
+       printf "copying files, please wait...\n"
+       cp -Rp @PREFIX@/share/tr1x/* "${DIR}"
+       printf "done.\n"
+fi
+cd "${DIR}" && exec @PREFIX@/libexec/tr1x

Index: pkgsrc/games/tr1x/patches/patch-meson.build
diff -u /dev/null pkgsrc/games/tr1x/patches/patch-meson.build:1.1
--- /dev/null   Sun May 26 10:29:07 2024
+++ pkgsrc/games/tr1x/patches/patch-meson.build Sun May 26 10:29:06 2024
@@ -0,0 +1,28 @@
+$NetBSD: patch-meson.build,v 1.1 2024/05/26 10:29:06 nia Exp $
+
+Don't require git (this isn't a git clone),
+treat Darwin the same as other Unixes
+
+--- meson.build.orig   2024-05-26 09:05:38.925587800 +0000
++++ meson.build
+@@ -49,7 +49,6 @@ endif
+ # autogenerated files
+ resources = []
+ python3 = find_program('python3', required: true)
+-git = find_program('git', required: true)
+ 
+ init = custom_target(
+   'fake_init',
+@@ -332,12 +331,3 @@ executable(
+   gui_app: true,
+   install: true,
+ )
+-
+-if host_machine.system() == 'darwin'
+-  install_subdir('data/ship/cfg', install_dir : 'Contents/Resources')
+-  install_subdir('data/ship/data', install_dir : 'Contents/Resources')
+-  install_subdir('data/ship/shaders', install_dir : 'Contents/Resources')
+-  install_data('data/mac/icon.icns', install_dir : 'Contents/Resources')
+-  install_data('data/mac/Info.plist', install_dir : 'Contents')
+-  meson.add_install_script('tools/mac/bundle_dylibs')
+-endif
Index: pkgsrc/games/tr1x/patches/patch-src_specific_s__filesystem.c
diff -u /dev/null pkgsrc/games/tr1x/patches/patch-src_specific_s__filesystem.c:1.1
--- /dev/null   Sun May 26 10:29:07 2024
+++ pkgsrc/games/tr1x/patches/patch-src_specific_s__filesystem.c        Sun May 26 10:29:06 2024
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_specific_s__filesystem.c,v 1.1 2024/05/26 10:29:06 nia Exp $
+
+Use the current working directory rather than the "bin" directory to
+store files.
+
+--- src/specific/s_filesystem.c.orig   2024-05-26 09:15:28.331155609 +0000
++++ src/specific/s_filesystem.c
+@@ -52,7 +52,7 @@ static void S_File_PathAppendPart(char *
+ const char *S_File_GetGameDirectory(void)
+ {
+     if (!m_GameDir) {
+-        m_GameDir = SDL_GetBasePath();
++        m_GameDir = "./";
+         if (!m_GameDir) {
+             LOG_ERROR("Can't get module handle");
+             return NULL;
Index: pkgsrc/games/tr1x/patches/patch-tools_shared_versioning.py
diff -u /dev/null pkgsrc/games/tr1x/patches/patch-tools_shared_versioning.py:1.1
--- /dev/null   Sun May 26 10:29:07 2024
+++ pkgsrc/games/tr1x/patches/patch-tools_shared_versioning.py  Sun May 26 10:29:06 2024
@@ -0,0 +1,35 @@
+$NetBSD: patch-tools_shared_versioning.py,v 1.1 2024/05/26 10:29:06 nia Exp $
+
+Don't get version number from git, this isn't a git clone.
+
+--- tools/shared/versioning.py.orig    2024-05-26 09:08:40.876156227 +0000
++++ tools/shared/versioning.py
+@@ -1,27 +1,2 @@
+-from subprocess import run
+-
+-from shared.common import SRC_DIR
+-
+-
+-def get_branch_version(branch: str | None) -> str:
+-    return run(
+-        [
+-            "git",
+-            "describe",
+-            *([branch] if branch else ["--dirty"]),
+-            "--always",
+-            "--abbrev=7",
+-            "--tags",
+-            "--exclude",
+-            "latest",
+-        ],
+-        cwd=SRC_DIR,
+-        text=True,
+-        capture_output=True,
+-        check=False,
+-    ).stdout.strip()
+-
+-
+ def generate_version() -> str:
+-    version = get_branch_version(None)
+-    return version or "?"
++    return "pkgsrc"



Home | Main Index | Thread Index | Old Index