diff --git a/games/trx/Makefile b/games/trx/Makefile index 338dca4e5907..9ba1da2b5908 100644 --- a/games/trx/Makefile +++ b/games/trx/Makefile @@ -1,40 +1,44 @@ PORTNAME= TRX DISTVERSIONPREFIX= trx- -DISTVERSION= 1.10.2 +DISTVERSION= 1.11.1 CATEGORIES= games MAINTAINER= eduardo@FreeBSD.org COMMENT= Open source re-implementation of Tomb Raider I, II and III WWW= https://github.com/LostArtefacts/TRX LICENSE= GPLv3 LICENSE_FILE= ${WRKSRC}/../COPYING.md BUILD_DEPENDS= uthash>0:devel/uthash LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg \ libpcre2-8.so:devel/pcre2 USES= gl localbase:ldflags lua meson pkgconfig python:build sdl USE_GITHUB= yes GH_ACCOUNT= LostArtefacts USE_GL= gl glew USE_SDL= sdl2 MESON_ARGS= -Dlua_dep=lua-${LUA_VER} \ -Dstaticdeps=false \ -Dtrx_version=${DISTVERSION} PORTSCOUT= limit:^1\. SUB_FILES= pkg-message trx.sh SUB_LIST= PORTNAME=${PORTNAME} WRKSRC_SUBDIR= src PLIST_FILES= bin/${PORTNAME} \ bin/${PORTNAME}.bin +PORTDATA= cfg games modules scripts do-install: ${INSTALL_PROGRAM} ${WRKSRC}/_build/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}.bin ${INSTALL_SCRIPT} ${WRKDIR}/trx.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME} + @${MKDIR} ${STAGEDIR}${DATADIR} + @cd ${WRKSRC}/../data/trx/ship && \ + ${COPYTREE_SHARE} "${PORTDATA}" ${STAGEDIR}${DATADIR} .include diff --git a/games/trx/distinfo b/games/trx/distinfo index 0ed6c27e4e80..3dc6e5fe1622 100644 --- a/games/trx/distinfo +++ b/games/trx/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1787335555 -SHA256 (LostArtefacts-TRX-trx-1.10.2_GH0.tar.gz) = d4e455dc6862b5ae7fe65c3ce6febb825cddecc0e0488c62cd0b41258ff53565 -SIZE (LostArtefacts-TRX-trx-1.10.2_GH0.tar.gz) = 28860473 +TIMESTAMP = 1790270401 +SHA256 (LostArtefacts-TRX-trx-1.11.1_GH0.tar.gz) = 50eda3ba31de8406883d647a750b5afc7bca4ad2acb9c968472b12657362dee5 +SIZE (LostArtefacts-TRX-trx-1.11.1_GH0.tar.gz) = 29910288 diff --git a/games/trx/files/trx.sh.in b/games/trx/files/trx.sh.in index 5af17f76e9a1..0d0dca6769ae 100644 --- a/games/trx/files/trx.sh.in +++ b/games/trx/files/trx.sh.in @@ -1,10 +1,12 @@ #!/bin/sh : ${TRX_BASE:="${HOME}/.local/share/%%PORTNAME%%"} +export TRX_DIR="%%DATADIR%%" + export TRX_CONFIG_DIR="${TRX_BASE}/cfg" export TRX_CACHE_DIR="${TRX_BASE}/cache" export TRX_GAMES_DIR="${TRX_BASE}/games" export TRX_SCREENSHOTS_DIR="${TRX_BASE}/screenshots" export TRX_SAVES_DIR="${TRX_BASE}/saves" exec %%PREFIX%%/bin/TRX.bin "$@"