diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2019-07-31 22:50:15 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2019-07-31 22:50:15 +0000 |
commit | 3b7ec549cd4c363c05ae51bf94f95b87c1d14603 (patch) | |
tree | e0b056b4bd3501bccb5ed5fe8c006d32c7e29df6 /games/minetest | |
parent | a82110fbc3efb56a18338f59e86048fc5fdbb825 (diff) | |
download | ports-3b7ec549cd4c363c05ae51bf94f95b87c1d14603.tar.gz ports-3b7ec549cd4c363c05ae51bf94f95b87c1d14603.zip |
Notes
Diffstat (limited to 'games/minetest')
-rw-r--r-- | games/minetest/Makefile | 80 | ||||
-rw-r--r-- | games/minetest/distinfo | 6 | ||||
-rw-r--r-- | games/minetest/files/minetest.in | 2 | ||||
-rw-r--r-- | games/minetest/files/patch-src_CMakeLists.txt | 10 | ||||
-rw-r--r-- | games/minetest/pkg-descr | 2 |
5 files changed, 63 insertions, 37 deletions
diff --git a/games/minetest/Makefile b/games/minetest/Makefile index 449c207f13aa..d52d5ef60b23 100644 --- a/games/minetest/Makefile +++ b/games/minetest/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= minetest -PORTVERSION= 0.4.17.1 +PORTVERSION= 5.0.1 CATEGORIES= games MAINTAINER= amdmi3@FreeBSD.org @@ -25,45 +25,62 @@ CMAKE_ARGS= -DCUSTOM_MANDIR="${PREFIX}/man" \ PORTDATA= * PORTDOCS= * -OPTIONS_DEFINE= CLIENT SERVER CURL NLS SOUND DOCS EXAMPLES FREETYPE LEVELDB REDIS LUAJIT SPATIAL PGSQL -OPTIONS_DEFAULT=CLIENT SERVER CURL SOUND FREETYPE LUAJIT -OPTIONS_SUB= yes - -CLIENT_DESC= Build client -SERVER_DESC= Build server -CURL_DESC= Enable cURL support for fetching media -SOUND_DESC= Enable sound -LEVELDB_DESC= Enable LevelDB backend -REDIS_DESC= Enable Redis backend -FREETYPE_DESC= Support for TrueType fonts with unicode -LUAJIT_DESC= LuaJIT support -SPATIAL_DESC= Enable SpatialIndex AreaStore backend - -CLIENT_CMAKE_ON= -DBUILD_CLIENT=1 -CLIENT_CMAKE_OFF= -DBUILD_CLIENT=0 +OPTIONS_DEFINE= CURL SOUND FREETYPE NCURSES LUAJIT \ + DOCS EXAMPLES NLS +OPTIONS_MULTI= COMP +OPTIONS_GROUP= DATABASE + +COMP_DESC= Software components +OPTIONS_MULTI_COMP= CLIENT SERVER + +DATABASE_DESC= Database support +OPTIONS_GROUP_DATABASE= PGSQL LEVELDB REDIS SPATIAL + +OPTIONS_DEFAULT= CLIENT SERVER \ + CURL SOUND FREETYPE NCURSES LUAJIT +OPTIONS_EXCLUDE_powerpc64= LUAJIT +OPTIONS_SUB= yes + +CLIENT_DESC= Build client +CLIENT_CMAKE_BOOL= BUILD_CLIENT CLIENT_LIB_DEPENDS= libpng.so:graphics/png \ libIrrlicht.so:x11-toolkits/irrlicht -CLIENT_USES= jpeg -CLIENT_USE= GL=gl XORG=x11,xext +CLIENT_USES= gl jpeg +CLIENT_USE= GL=gl XORG=x11,xext,xxf86vm +SERVER_DESC= Build server SERVER_CMAKE_BOOL= BUILD_SERVER + +CURL_DESC= Enable cURL support for fetching media CURL_CMAKE_BOOL= ENABLE_CURL CURL_LIB_DEPENDS= libcurl.so:ftp/curl -NLS_CMAKE_BOOL= ENABLE_GETTEXT -NLS_USES= gettext -NLS_LDFLAGS= -L${LOCALBASE}/lib +SOUND_DESC= Enable sound SOUND_CMAKE_BOOL= ENABLE_SOUND -LEVELDB_CMAKE_BOOL= ENABLE_LEVELDB -LEVELDB_LIB_DEPENDS= libleveldb.so:databases/leveldb -REDIS_CMAKE_BOOL= ENABLE_REDIS -REDIS_LIB_DEPENDS= libhiredis.so:databases/hiredis +FREETYPE_DESC= Support for TrueType fonts with unicode FREETYPE_CMAKE_BOOL= ENABLE_FREETYPE FREETYPE_LIB_DEPENDS= libfreetype.so:print/freetype2 +NCURSES_DESC= Enable ncurses console +NCURSES_CMAKE_BOOL= ENABLE_CURSES +NCURSES_USES= ncurses + +LUAJIT_DESC= LuaJIT support LUAJIT_CMAKE_BOOL= ENABLE_LUAJIT REQUIRE_LUAJIT LUAJIT_LIB_DEPENDS= libluajit-5.1.so:lang/luajit -SPATIAL_LIB_DEPENDS= libspatialindex.so:devel/spatialindex -SPATIAL_CMAKE_BOOL= ENABLE_SPATIAL + PGSQL_USES= pgsql PGSQL_CMAKE_BOOL= ENABLE_POSTGRESQL +LEVELDB_DESC= Enable LevelDB backend +LEVELDB_CMAKE_BOOL= ENABLE_LEVELDB +LEVELDB_LIB_DEPENDS= libleveldb.so:databases/leveldb +REDIS_DESC= Enable Redis backend +REDIS_CMAKE_BOOL= ENABLE_REDIS +REDIS_LIB_DEPENDS= libhiredis.so:databases/hiredis +SPATIAL_DESC= Enable SpatialIndex AreaStore backend +SPATIAL_LIB_DEPENDS= libspatialindex.so:devel/spatialindex +SPATIAL_CMAKE_BOOL= ENABLE_SPATIAL + +NLS_CMAKE_BOOL= ENABLE_GETTEXT +NLS_USES= gettext +NLS_LDFLAGS= -L${LOCALBASE}/lib .include <bsd.port.options.mk> @@ -87,6 +104,13 @@ CMAKE_ARGS+= -DIRRLICHT_INCLUDE_DIR:STRING="${IRRLICHT_INCLUDE_DIR}" EXTRA_PATCHES+= ${FILESDIR}/extra-patch-irrlichtdepend .endif +post-extract: +# make sure no bundled gmp is used + @${RM} -rf ${WRKSRC}/lib/gmp +# bundled jsoncpp is OK, see comment in cmake/Modules/FindJson.cmake +# (not sure if it affects FreeBSD, but too lazy to investigate) +# bundled lua is OK, there's no option to use system one + post-patch: @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \ ${WRKSRC}/cmake/Modules/*.cmake diff --git a/games/minetest/distinfo b/games/minetest/distinfo index c7d7cfdc3b0e..f4d4df9b23ac 100644 --- a/games/minetest/distinfo +++ b/games/minetest/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1528743956 -SHA256 (minetest-minetest-0.4.17.1_GH0.tar.gz) = cd25d40c53f492325edabd2f6397250f40a61cb9fe4a1d4dd6eb030e0d1ceb59 -SIZE (minetest-minetest-0.4.17.1_GH0.tar.gz) = 7758675 +TIMESTAMP = 1554132616 +SHA256 (minetest-minetest-5.0.1_GH0.tar.gz) = aa771cf178ad1b436d5723e5d6dd24e42b5d56f1cfe9c930f6426b7f24bb1635 +SIZE (minetest-minetest-5.0.1_GH0.tar.gz) = 8761122 diff --git a/games/minetest/files/minetest.in b/games/minetest/files/minetest.in index cee509a83010..4427191a803d 100644 --- a/games/minetest/files/minetest.in +++ b/games/minetest/files/minetest.in @@ -54,7 +54,7 @@ esac command=/usr/sbin/daemon procname=/usr/local/bin/minetestserver pidfile=${minetest_rundir}/minetest.pid -command_args="-c -f -p ${pidfile} ${procname} ${minetest_args}" +command_args="-c -f -p ${pidfile} /usr/bin/env HOME='${minetest_dbdir}' ${procname} ${minetest_args}" required_files=${minetest_config} start_precmd=minetest_prestart diff --git a/games/minetest/files/patch-src_CMakeLists.txt b/games/minetest/files/patch-src_CMakeLists.txt index 7eb0e91e47f0..7cc00e9423c9 100644 --- a/games/minetest/files/patch-src_CMakeLists.txt +++ b/games/minetest/files/patch-src_CMakeLists.txt @@ -1,10 +1,12 @@ ---- src/CMakeLists.txt.orig 2018-06-03 15:35:20 UTC +Fixes random crashes (especially reproducible when moving in dense +forests), still relevant for 5.0.1 +--- src/CMakeLists.txt.orig 2019-03-31 20:57:45 UTC +++ src/CMakeLists.txt -@@ -758,7 +758,6 @@ else() +@@ -729,7 +729,6 @@ else() set(CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG ${RELEASE_WARNING_FLAGS} ${WARNING_FLAGS} ${OTHER_FLAGS} -Wall -pipe -funroll-loops") - if(CMAKE_SYSTEM_NAME MATCHES "(Darwin|FreeBSD)") + if(CMAKE_SYSTEM_NAME MATCHES "(Darwin|BSD|DragonFly)") - set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -Os") else() set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -ffast-math -fomit-frame-pointer") - endif(CMAKE_SYSTEM_NAME MATCHES "(Darwin|FreeBSD)") + endif(CMAKE_SYSTEM_NAME MATCHES "(Darwin|BSD|DragonFly)") diff --git a/games/minetest/pkg-descr b/games/minetest/pkg-descr index e8a17546a969..c20555bb6be2 100644 --- a/games/minetest/pkg-descr +++ b/games/minetest/pkg-descr @@ -1,4 +1,4 @@ Minetest is a near-infinite-world block sandbox game and a game engine, inspired by InfiniMiner, Minecraft, and the like. -WWW: http://www.minetest.net/ +WWW: https://www.minetest.net/ |