diff --git a/games/tome4/Makefile b/games/tome4/Makefile index de3f7a3c1ef2..47d98a3e3c47 100644 --- a/games/tome4/Makefile +++ b/games/tome4/Makefile @@ -1,63 +1,62 @@ PORTNAME= tome4 -DISTVERSION?= 1.7.3 -PORTREVISION?= 1 +DISTVERSION?= 1.7.4 CATEGORIES= games MASTER_SITES= https://te4.org/dl/t-engine/ \ SF/lifanov-ports-distfiles/${PORTNAME}/:icons DISTFILES= t-engine4-src-${DISTVERSION}${EXTRACT_SUFX} \ ${PORTNAME}.png:icons EXTRACT_ONLY= t-engine4-src-${DISTVERSION}${EXTRACT_SUFX} MAINTAINER= pkubaj@FreeBSD.org COMMENT= Epic tactical turn-based roguelike adventure LICENSE= GPLv3+ LICENSE_FILE= ${WRKSRC}/COPYING BUILD_DEPENDS= premake4:devel/premake4 LIB_DEPENDS= libvorbisfile.so:audio/libvorbis \ libpng.so:graphics/png USES= gl gmake openal:al sdl tar:bzip2 xorg USE_SDL= image2 sdl2 ttf2 USE_GL= gl glu SUB_FILES= tome4 MAKE_JOBS_UNSAFE= yes DESKTOP_ENTRIES="ToME 4" "" "${PORTNAME}" \ "${PORTNAME}" "Game;RolePlaying;" "" PLIST_SUB= PORTVERSION=${PORTVERSION} WRKSRC= ${WRKDIR}/t-engine4-src-${DISTVERSION} MAKE_ARGS+= config=release verbose=yes ARCH="" CC=${CC} CXX=${CXX} LDFLAGS_i386= -Wl,-znotext .include .if ${ARCH} == powerpc USES+= compiler:gcc-c++11-lib .else USES+= compiler:c++11-lang .endif pre-build: @${REINPLACE_CMD} 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/premake4.lua .if ${ARCH} == aarch64 || ${ARCH:Mpowerpc64*} || ${ARCH} == riscv64 (cd ${WRKSRC} && premake4 --lua=default gmake) .else (cd ${WRKSRC} && premake4 gmake) @${ECHO} '.NOTPARALLEL:' >> ${WRKSRC}/build/buildvm.make @${ECHO} '.NOTPARALLEL:' >> ${WRKSRC}/build/luajit2.make .endif @${REINPLACE_CMD} 's|-lpthread|-pthread|' ${WRKSRC}/build/TEngine.make do-install: @${MKDIR} ${STAGEDIR}${DATADIR} ${INSTALL_PROGRAM} ${WRKSRC}/t-engine ${STAGEDIR}${DATADIR} ${INSTALL_SCRIPT} ${WRKDIR}/tome4 ${STAGEDIR}${PREFIX}/bin (cd ${WRKSRC}; ${COPYTREE_SHARE} "bootstrap game" ${STAGEDIR}${DATADIR}) ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png \ ${STAGEDIR}${PREFIX}/share/pixmaps .include diff --git a/games/tome4/distinfo b/games/tome4/distinfo index 4550bc37508d..6bf14bf5e7a8 100644 --- a/games/tome4/distinfo +++ b/games/tome4/distinfo @@ -1,5 +1,5 @@ -TIMESTAMP = 1621597802 -SHA256 (t-engine4-src-1.7.3.tar.bz2) = df45376225956a2160e6c49429277ef776e0643760354d481a98be00f20933e6 -SIZE (t-engine4-src-1.7.3.tar.bz2) = 476031824 +TIMESTAMP = 1624824084 +SHA256 (t-engine4-src-1.7.4.tar.bz2) = c3534f33f48c9cf027025eb3f44e97b23de612a66d5f315ed4830f9a52abf2a4 +SIZE (t-engine4-src-1.7.4.tar.bz2) = 486263402 SHA256 (tome4.png) = b5223208ca6f0a51f8bbe3b96055f38f94336dbeca6704db6684fec00fad1a36 SIZE (tome4.png) = 37143 diff --git a/games/tome4/files/patch-build__te4core.lua b/games/tome4/files/patch-build__te4core.lua index 81a9914c4dcb..5fbb44101076 100644 --- a/games/tome4/files/patch-build__te4core.lua +++ b/games/tome4/files/patch-build__te4core.lua @@ -1,28 +1,20 @@ --- ./build/te4core.lua.orig 2014-05-19 04:42:12.000000000 -0400 +++ ./build/te4core.lua 2014-06-04 12:45:57.973283399 -0400 -@@ -40,7 +40,6 @@ - links { "physfs", "lua".._OPTIONS.lua, "fov", "luasocket", "luaprofiler", "lpeg", "tcodimport", "lxp", "expatstatic", "luamd5", "luazlib", "luabitop", "te4-bzip" } - defines { "_DEFAULT_VIDEOMODE_FLAGS_='SDL_HWSURFACE|SDL_DOUBLEBUF'" } - defines { [[TENGINE_HOME_PATH='".t-engine"']], "TE4CORE_VERSION="..TE4CORE_VERSION } -- buildoptions { "-O3" } - - if _OPTIONS.relpath=="32" then linkoptions{"-Wl,-rpath -Wl,\\\$\$ORIGIN/lib "} end - if _OPTIONS.relpath=="64" then linkoptions{"-Wl,-rpath -Wl,\\\$\$ORIGIN/lib64 "} end @@ -194,7 +193,7 @@ if _OPTIONS.wincross then arch_test = os.capture("i686-pc-mingw32-gcc -E ../src/luajit2/src/lj_arch.h -dM", true) else - arch_test = os.capture("gcc -E ../src/luajit2/src/lj_arch.h -dM", true) + arch_test = os.capture("cc -E ../src/luajit2/src/lj_arch.h -dM", true) end if string.find(arch_test, "LJ_TARGET_X64") then @@ -253,7 +252,7 @@ if _OPTIONS.wincross then arch_test = os.capture("i686-pc-mingw32-gcc -E ../src/luajit2/src/lj_arch.h -dM", true) else - arch_test = os.capture("gcc -E ../src/luajit2/src/lj_arch.h -dM", true) + arch_test = os.capture("cc -E ../src/luajit2/src/lj_arch.h -dM", true) end if string.find(arch_test, "LJ_TARGET_X64") then diff --git a/games/tome4/files/patch-src__web.c b/games/tome4/files/patch-src__web.c deleted file mode 100644 index b5e22b5b426a..000000000000 --- a/games/tome4/files/patch-src__web.c +++ /dev/null @@ -1,11 +0,0 @@ ---- ./src/web.c.orig 2014-05-19 04:42:14.000000000 -0400 -+++ ./src/web.c 2014-06-04 12:40:26.927305671 -0400 -@@ -517,7 +517,7 @@ - char *spawnname = NULL; - char *libname = NULL; - const char *self = get_self_executable(g_argc, g_argv); --#if defined(SELFEXE_LINUX) || defined(SELFEXE_BSD) -+#if defined(SELFEXE_LINUX) - #if defined(TE4_RELPATH64) - const char *spawnbname = "cef3spawn64"; - spawnname = malloc(strlen(self) + strlen(spawnbname) + 1);