diff --git a/games/arx-libertatis/Makefile b/games/arx-libertatis/Makefile index ec4ef67ef0b9..db30258bd51f 100644 --- a/games/arx-libertatis/Makefile +++ b/games/arx-libertatis/Makefile @@ -1,49 +1,57 @@ PORTNAME= arx-libertatis -PORTVERSION= 1.1.2 -PORTREVISION= 18 +PORTVERSION= 1.2 CATEGORIES= games -MASTER_SITES= http://downloads.sourceforge.net/arx/ \ - http://arx-libertatis.org/files/ +MASTER_SITES= https://arx-libertatis.org/files/ \ + https://github.com/arx/ArxLibertatis/releases/download/${PORTVERSION}/ MAINTAINER= amdmi3@FreeBSD.org COMMENT= Cross-platform port of Arx Fatalis LICENSE= GPLv3+ -LICENSE_FILE= ${WRKSRC}/ARX_PUBLIC_LICENSE.txt - -LIB_DEPENDS= libfreetype.so:print/freetype2 -BUILD_DEPENDS= ${LOCALBASE}/include/boost/foreach.hpp:devel/boost-libs - -USES= cmake compiler:c++11-lang gl openal sdl tar:xz -USE_SDL= sdl -USE_GL= gl glew -CMAKE_ARGS= -DDATA_DIR=arx \ - -DSTRICT_USE=ON \ - -DBUILD_CRASHREPORTER=OFF -LDFLAGS_i386= -Wl,-znotext +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libfreetype.so:print/freetype2 \ + libepoxy.so:graphics/libepoxy +BUILD_DEPENDS= ${LOCALBASE}/include/boost/foreach.hpp:devel/boost-libs \ + ${LOCALBASE}/include/glm/glm.hpp:math/glm + +USES= cmake compiler:c++17-lang openal sdl tar:xz +USE_SDL= sdl2 +CMAKE_ON= STRICT_USE +CMAKE_OFF= INSTALL_BLENDER_PLUGIN \ + SET_OPTIMIZATION_FLAGS +CMAKE_ARGS= -DWITH_SDL=2 \ + -DDATA_DIR:STRING=arx \ + -DDATA_DIR_PREFIXES:STRING="\$${XDG_DATA_DIRS:-${PREFIX}/share/}" \ + -DINSTALL_DATADIR:STRING="${DATADIR}" \ + -DIGNORE_EXE_DIR:STRING="${PREFIX}/bin:${LOCABASE}/bin" \ + -DCMAKE_INSTALL_MANDIR="${PREFIX}/share/man" + +LDFLAGS_i386= -Wl,-znotext CONFLICTS_INSTALL= rnv SUB_FILES= pkg-message PORTDOCS= AUTHORS CHANGELOG README.md +PORTDATA= * OPTIONS_DEFINE= DOCS -OPTIONS_SUB= yes .include .if defined(PPC_ABI) && ${PPC_ABI} == ELFv1 CFLAGS+= -mminimal-toc .endif post-patch: - @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' ${WRKSRC}/CMakeLists.txt + @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \ + ${WRKSRC}/CMakeLists.txt ${WRKSRC}/cmake/*.cmake post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} .for f in ${PORTDOCS} ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/ .endfor .include diff --git a/games/arx-libertatis/distinfo b/games/arx-libertatis/distinfo index a5da95812c36..2b55db20905f 100644 --- a/games/arx-libertatis/distinfo +++ b/games/arx-libertatis/distinfo @@ -1,2 +1,3 @@ -SHA256 (arx-libertatis-1.1.2.tar.xz) = 82adb440a9c86673e74b84abd480cae968e1296d625b6d40c69ca35b35ed4e42 -SIZE (arx-libertatis-1.1.2.tar.xz) = 970608 +TIMESTAMP = 1626354922 +SHA256 (arx-libertatis-1.2.tar.xz) = bacf7768c4e21c9166c7ea57083d4f20db0deb8f0ee7d96b5f2829e73a75ad0c +SIZE (arx-libertatis-1.2.tar.xz) = 2478640 diff --git a/games/arx-libertatis/files/patch-CMakeLists.txt b/games/arx-libertatis/files/patch-CMakeLists.txt deleted file mode 100644 index 93096fe5d4d4..000000000000 --- a/games/arx-libertatis/files/patch-CMakeLists.txt +++ /dev/null @@ -1,16 +0,0 @@ ---- CMakeLists.txt.orig 2014-10-08 15:46:26.000000000 +0400 -+++ CMakeLists.txt 2014-10-08 15:48:25.000000000 +0400 -@@ -132,11 +132,11 @@ - set(USER_DIR_PREFIXES "~/Library/Application Support" CACHE STRING "User dir paths") - else() - set(DATA_DIR -- "games/arx:arx" -+ "arx" - CACHE STRING "Data dir names" - ) - set(DATA_DIR_PREFIXES -- "\${XDG_DATA_DIRS:-/usr/local/share/:/usr/share/}:/opt" -+ "\${XDG_DATA_DIRS:-/usr/local/share/}" - CACHE STRING "Data dir paths" - ) - set(USER_DIR diff --git a/games/arx-libertatis/files/patch-src_platform_Dialog.cpp b/games/arx-libertatis/files/patch-src_platform_Dialog.cpp new file mode 100644 index 000000000000..7492c7063743 --- /dev/null +++ b/games/arx-libertatis/files/patch-src_platform_Dialog.cpp @@ -0,0 +1,11 @@ +--- src/platform/Dialog.cpp.orig 2021-07-14 00:04:34 UTC ++++ src/platform/Dialog.cpp +@@ -175,7 +175,7 @@ static std::string formatAsHtml(const std::string & te + oss << "http://"; + i += 6; + } else if(!link && line.compare(i, 8, "https://", 8) == 0) { +- oss << "