[Midnightbsd-cvs] mports [20094] trunk/games: add minetest game
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Fri Aug 28 14:28:03 EDT 2015
Revision: 20094
http://svnweb.midnightbsd.org/mports/?rev=20094
Author: laffer1
Date: 2015-08-28 14:28:02 -0400 (Fri, 28 Aug 2015)
Log Message:
-----------
add minetest game
Modified Paths:
--------------
trunk/games/Makefile
Added Paths:
-----------
trunk/games/minetest/
trunk/games/minetest/Makefile
trunk/games/minetest/distinfo
trunk/games/minetest/files/
trunk/games/minetest/files/extra-patch-irrlichtdepend
trunk/games/minetest/files/minetest.in
trunk/games/minetest/files/patch-src_CMakeLists.txt
trunk/games/minetest/pkg-descr
trunk/games/minetest/pkg-plist
trunk/games/minetest_game/
trunk/games/minetest_game/Makefile
trunk/games/minetest_game/distinfo
trunk/games/minetest_game/pkg-descr
Modified: trunk/games/Makefile
===================================================================
--- trunk/games/Makefile 2015-08-28 01:23:17 UTC (rev 20093)
+++ trunk/games/Makefile 2015-08-28 18:28:02 UTC (rev 20094)
@@ -33,6 +33,8 @@
SUBDIR += linux-etqw-server
SUBDIR += linux-quake3
SUBDIR += linux-quake3-demo
+SUBDIR += minetest
+SUBDIR += minetest_game
SUBDIR += moon-buggy
SUBDIR += nextgo
SUBDIR += oolite
Added: trunk/games/minetest/Makefile
===================================================================
--- trunk/games/minetest/Makefile (rev 0)
+++ trunk/games/minetest/Makefile 2015-08-28 18:28:02 UTC (rev 20094)
@@ -0,0 +1,97 @@
+# Created by: Dmitry Marakasov <amdmi3 at FreeBSD.org>
+# $MidnightBSD$
+# $FreeBSD: head/games/minetest/Makefile 390310 2015-06-22 18:33:20Z antoine $
+
+PORTNAME= minetest
+PORTVERSION= 0.4.12
+CATEGORIES= games
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= Infiniminer/Minecraft inspired game
+
+LICENSE= lgpl2.1 # or later
+LICENSE_FILE= ${WRKSRC}/doc/lgpl-2.1.txt
+
+LIB_DEPENDS= libsqlite3.so:${PORTSDIR}/databases/sqlite3
+
+USE_GITHUB= yes
+GH_ACCOUNT= minetest
+
+USES= cmake
+CMAKE_ARGS= -DCUSTOM_MANDIR="${PREFIX}/man" \
+ -DCUSTOM_EXAMPLE_CONF_DIR="${PREFIX}/etc"
+
+PORTDATA= *
+PORTDOCS= *
+
+OPTIONS_DEFINE= CLIENT SERVER CURL NLS SOUND DOCS EXAMPLES FREETYPE LEVELDB REDIS LUAJIT
+OPTIONS_DEFAULT=CLIENT SERVER CURL SOUND
+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
+
+CLIENT_CMAKE_ON= -DBUILD_CLIENT=1
+CLIENT_CMAKE_OFF= -DBUILD_CLIENT=0
+CLIENT_LIB_DEPENDS= libpng.so:${PORTSDIR}/graphics/png \
+ libIrrlicht.so:${PORTSDIR}/x11-toolkits/irrlicht
+CLIENT_USES= jpeg
+CLIENT_USE= GL=gl XORG=x11
+SERVER_CMAKE_ON= -DBUILD_SERVER=1
+SERVER_CMAKE_OFF= -DBUILD_SERVER=0
+CURL_CMAKE_ON= -DENABLE_CURL=1
+CURL_CMAKE_OFF= -DENABLE_CURL=0
+CURL_LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl
+NLS_CMAKE_ON= -DENABLE_GETTEXT=1
+NLS_CMAKE_OFF= -DENABLE_GETTEXT=0
+NLS_USES= gettext
+NLS_LDFLAGS= -L${LOCALBASE}/lib
+SOUND_CMAKE_ON= -DENABLE_SOUND=1
+SOUND_CMAKE_OFF= -DENABLE_SOUND=0
+LEVELDB_CMAKE_ON= -DENABLE_LEVELDB=1
+LEVELDB_CMAKE_OFF= -DENABLE_LEVELDB=0
+LEVELDB_LIB_DEPENDS= libleveldb.so:${PORTSDIR}/databases/leveldb
+REDIS_CMAKE_ON= -DENABLE_REDIS=1
+REDIS_CMAKE_OFF= -DENABLE_REDIS=0
+REDIS_LIB_DEPENDS= libhiredis.so:${PORTSDIR}/databases/hiredis
+FREETYPE_CMAKE_ON= -DENABLE_FREETYPE=1
+FREETYPE_CMAKE_OFF= -DENABLE_FREETYPE=0
+FREETYPE_LIB_DEPENDS= libfreetype.so:${PORTSDIR}/print/freetype2
+LUAJIT_LIB_DEPENDS= libluajit-5.1.so:${PORTSDIR}/lang/luajit
+
+.include <bsd.mport.options.mk>
+
+.if ${PORT_OPTIONS:MCLIENT} && ${PORT_OPTIONS:MSOUND}
+USES+= openal
+LIB_DEPENDS+= libvorbis.so:${PORTSDIR}/audio/libvorbis
+.endif
+
+.if ${PORT_OPTIONS:MSERVER}
+USE_RC_SUBR= ${PORTNAME}
+USERS= ${PORTNAME}
+GROUPS= ${PORTNAME}
+.endif
+
+# hacky way to not bring irrlicht and X11 depends for server only
+.if ! ${PORT_OPTIONS:MCLIENT} && ${PORT_OPTIONS:MSERVER}
+BUILD_DEPENDS+= ${NONEXISTENT}:${PORTSDIR}/x11-toolkits/irrlicht:patch
+IRRLICHT_INCLUDE_DIR= `${MAKE} -C ${PORTSDIR}/x11-toolkits/irrlicht -V WRKSRC`/include
+CMAKE_ARGS+= -DIRRLICHT_INCLUDE_DIR:STRING="${IRRLICHT_INCLUDE_DIR}"
+EXTRA_PATCHES+= ${FILESDIR}/extra-patch-irrlichtdepend
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
+ ${WRKSRC}/cmake/Modules/*.cmake
+.if ! ${PORT_OPTIONS:MLUAJIT}
+ @${REINPLACE_CMD} -e '/find_/ s|LUA_|NO&|g' \
+ ${WRKSRC}/src/CMakeLists.txt
+.endif
+
+.include <bsd.port.mk>
Property changes on: trunk/games/minetest/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/games/minetest/distinfo
===================================================================
--- trunk/games/minetest/distinfo (rev 0)
+++ trunk/games/minetest/distinfo 2015-08-28 18:28:02 UTC (rev 20094)
@@ -0,0 +1,2 @@
+SHA256 (minetest-minetest-0.4.12_GH0.tar.gz) = b37d663785a1ef9e75ec8513913bbd4fcaf761ccb248f4628d9397c71d4417df
+SIZE (minetest-minetest-0.4.12_GH0.tar.gz) = 8184232
Property changes on: trunk/games/minetest/distinfo
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/games/minetest/files/extra-patch-irrlichtdepend
===================================================================
--- trunk/games/minetest/files/extra-patch-irrlichtdepend (rev 0)
+++ trunk/games/minetest/files/extra-patch-irrlichtdepend 2015-08-28 18:28:02 UTC (rev 20094)
@@ -0,0 +1,11 @@
+--- CMakeLists.txt.orig 2014-01-02 01:54:28.000000000 +0400
++++ CMakeLists.txt 2014-02-07 05:16:36.652533717 +0400
+@@ -57,7 +57,7 @@
+ include(${CMAKE_SOURCE_DIR}/cmake/Modules/misc.cmake)
+
+ # This is done here so that relative search paths are more reasnable
+-find_package(Irrlicht)
++set(IRRLICHT_LIBRARY "")
+
+ #
+ # Installation
Property changes on: trunk/games/minetest/files/extra-patch-irrlichtdepend
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/games/minetest/files/minetest.in
===================================================================
--- trunk/games/minetest/files/minetest.in (rev 0)
+++ trunk/games/minetest/files/minetest.in 2015-08-28 18:28:02 UTC (rev 20094)
@@ -0,0 +1,76 @@
+#!/bin/sh
+
+# $FreeBSD$
+#
+# PROVIDE: minetest
+# REQUIRE: LOGIN
+# KEYWORD: shutdown
+#
+# Add the following line to /etc/rc.conf[.local] to enable minetest server
+#
+# minetest_enable (bool): Set to "NO" by default
+# Set it to "YES" to enable minetest server
+# minetest_conffile (str): Path to config file (required).
+# (default: /usr/local/etc/minetest.conf)
+# minetest_rundir (str): Path to directory holding a pidfile.
+# (default: /var/run/minetest)
+# minetest_user (str): User to run as
+# (default: minetest)
+# minetest_group (str): Group to run as
+# (default: minetest)
+# minetest_logdir (str): Path to log directory
+# (default: /var/log/minetest)
+# minetest_dbdir (str): Path to world database directory
+# (default: /var/db/minetest)
+
+. /etc/rc.subr
+
+name=minetest
+rcvar=minetest_enable
+
+load_rc_config ${name}
+
+: ${minetest_enable="NO"}
+: ${minetest_config="/usr/local/etc/minetest.conf"}
+: ${minetest_rundir="/var/run/minetest"}
+: ${minetest_user="minetest"}
+: ${minetest_group="minetest"}
+: ${minetest_logdir="/var/log/minetest"}
+: ${minetest_dbdir="/var/db/minetest"}
+: ${minetest_args:="--logfile ${minetest_logdir}/debug.log --world ${minetest_dbdir}/world ${minetest_flags}"}
+
+pidfile=
+
+case "${minetest_args}" in
+*--config\ *)
+ echo "Warning \$minetest_args includes --config option." \
+ "Please use \$minetest_conffile instead."
+ ;;
+*)
+ minetest_args="--config ${minetest_config} ${minetest_args}"
+ ;;
+esac
+
+command=/usr/sbin/daemon
+procname=/usr/local/bin/minetestserver
+pidfile=${minetest_rundir}/minetest.pid
+command_args="-c -f -p ${pidfile} ${procname} ${minetest_args}"
+required_files=${minetest_config}
+start_precmd=minetest_prestart
+
+minetest_prestart () {
+ if [ ! -d ${minetest_rundir} ]; then
+ mkdir -m 755 -p ${minetest_rundir}
+ chown -R ${minetest_user}:${minetest_group} ${minetest_rundir}
+ fi
+ if [ ! -d ${minetest_logdir} ]; then
+ mkdir -m 755 -p ${minetest_logdir}
+ chown -R ${minetest_user}:${minetest_group} ${minetest_logdir}
+ fi
+ if [ ! -d ${minetest_dbdir} ]; then
+ mkdir -m 755 -p ${minetest_dbdir}/data
+ chown -R ${minetest_user}:${minetest_group} ${minetest_dbdir}
+ fi
+}
+
+run_rc_command "$1"
Property changes on: trunk/games/minetest/files/minetest.in
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/games/minetest/files/patch-src_CMakeLists.txt
===================================================================
--- trunk/games/minetest/files/patch-src_CMakeLists.txt (rev 0)
+++ trunk/games/minetest/files/patch-src_CMakeLists.txt 2015-08-28 18:28:02 UTC (rev 20094)
@@ -0,0 +1,26 @@
+--- src/CMakeLists.txt.orig 2015-02-28 03:52:19.000000000 +0300
++++ src/CMakeLists.txt 2015-02-28 03:53:31.000000000 +0300
+@@ -201,22 +201,7 @@
+ endif(ENABLE_GLES)
+
+ if(USE_FREETYPE)
+- if(UNIX)
+- include(FindPkgConfig)
+- if(PKG_CONFIG_FOUND)
+- pkg_check_modules(FREETYPE QUIET freetype2)
+- if(FREETYPE_FOUND)
+- SET(FREETYPE_PKGCONFIG_FOUND TRUE)
+- SET(FREETYPE_LIBRARY ${FREETYPE_LIBRARIES})
+- # because cmake is idiotic
+- string(REPLACE ";" " " FREETYPE_CFLAGS_STR ${FREETYPE_CFLAGS})
+- string(REPLACE ";" " " FREETYPE_LDFLAGS_STR ${FREETYPE_LDFLAGS})
+- endif(FREETYPE_FOUND)
+- endif(PKG_CONFIG_FOUND)
+- endif(UNIX)
+- if(NOT FREETYPE_FOUND)
+- find_package(Freetype REQUIRED)
+- endif(NOT FREETYPE_FOUND)
++ find_package(Freetype REQUIRED)
+ set(CGUITTFONT_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/cguittfont")
+ set(CGUITTFONT_LIBRARY cguittfont)
+ endif(USE_FREETYPE)
Property changes on: trunk/games/minetest/files/patch-src_CMakeLists.txt
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/games/minetest/pkg-descr
===================================================================
--- trunk/games/minetest/pkg-descr (rev 0)
+++ trunk/games/minetest/pkg-descr 2015-08-28 18:28:02 UTC (rev 20094)
@@ -0,0 +1,4 @@
+Minetest is an infinite-world block sandbox game and a game engine,
+inspired by InfiniMiner, Minecraft and the like.
+
+WWW: http://minetest.net/
Property changes on: trunk/games/minetest/pkg-descr
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/games/minetest/pkg-plist
===================================================================
--- trunk/games/minetest/pkg-plist (rev 0)
+++ trunk/games/minetest/pkg-plist 2015-08-28 18:28:02 UTC (rev 20094)
@@ -0,0 +1,10 @@
+%%CLIENT%%bin/minetest
+%%SERVER%%bin/minetestserver
+ at unexec if cmp -s %D/etc/minetest.conf.example %D/etc/minetest.conf; then rm -f %D/etc/minetest.conf; fi
+etc/minetest.conf.example
+ at exec if [ ! -f %B/minetest.conf ]; then cp -p %D/%F %B/minetest.conf; fi
+man/man6/minetest.6.gz
+man/man6/minetestserver.6.gz
+share/applications/minetest.desktop
+share/appdata/minetest.appdata.xml
+share/icons/hicolor/scalable/apps/minetest-icon.svg
Property changes on: trunk/games/minetest/pkg-plist
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/games/minetest_game/Makefile
===================================================================
--- trunk/games/minetest_game/Makefile (rev 0)
+++ trunk/games/minetest_game/Makefile 2015-08-28 18:28:02 UTC (rev 20094)
@@ -0,0 +1,35 @@
+# Created by: Dmitry Marakasov <amdmi3 at FreeBSD.org>
+# $MidnightBSD$
+# $FreeBSD: head/games/minetest_game/Makefile 392031 2015-07-14 15:58:52Z amdmi3 $
+
+PORTNAME= minetest_game
+PORTVERSION= 0.4.12
+CATEGORIES= games
+
+MAINTAINER= ports at MidnightBSD.org
+COMMENT= The main game for the Minetest game engine
+
+LICENSE= lgpl2.1
+
+RUN_DEPENDS= minetest:${PORTSDIR}/games/minetest
+
+USE_GITHUB= yes
+GH_ACCOUNT= minetest
+
+WRKSRC= ${WRKDIR}/minetest_game-0.4.12
+
+NO_BUILD= yes
+NO_ARCH= yes
+DATADIR= ${PREFIX}/share/minetest/games/${PORTNAME}
+PORTDATA= *
+PORTDOCS= *
+
+OPTIONS_DEFINE= DOCS
+
+do-install:
+ ${MKDIR} ${STAGEDIR}${DATADIR}
+ cd ${WRKSRC} && ${COPYTREE_SHARE} "game.conf menu mods" ${STAGEDIR}${DATADIR}/
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR}/
+
+.include <bsd.port.mk>
Property changes on: trunk/games/minetest_game/Makefile
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:keywords
## -0,0 +1 ##
+MidnightBSD=%H
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/games/minetest_game/distinfo
===================================================================
--- trunk/games/minetest_game/distinfo (rev 0)
+++ trunk/games/minetest_game/distinfo 2015-08-28 18:28:02 UTC (rev 20094)
@@ -0,0 +1,2 @@
+SHA256 (minetest_game-0.4.12_GH0.tar.gz) = 37d59ab79201a0f49aa4b13b227f326d9794fdc6492f6e7e35696b938ddf8218
+SIZE (minetest_game-0.4.12_GH0.tar.gz) = 911924
Property changes on: trunk/games/minetest_game/distinfo
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
Added: trunk/games/minetest_game/pkg-descr
===================================================================
--- trunk/games/minetest_game/pkg-descr (rev 0)
+++ trunk/games/minetest_game/pkg-descr 2015-08-28 18:28:02 UTC (rev 20094)
@@ -0,0 +1,3 @@
+The main game for the Minetest game engine.
+
+WWW: http://minetest.net/
Property changes on: trunk/games/minetest_game/pkg-descr
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list