Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 Mar 2014 14:41:18 +0000 (UTC)
From:      Danilo Egea Gondolfo <danilo@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r349148 - in head/games: . craft
Message-ID:  <201403251441.s2PEfITG033126@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: danilo
Date: Tue Mar 25 14:41:18 2014
New Revision: 349148
URL: http://svnweb.freebsd.org/changeset/ports/349148
QAT: https://qat.redports.org/buildarchive/r349148/

Log:
  Add new port: games/craft
  
  Craft is a Minecraft clone.
  Just a few thousand lines of C using modern OpenGL (shaders).
  Online multiplayer support is included using a Python-based server.

Added:
  head/games/craft/
  head/games/craft/Makefile   (contents, props changed)
  head/games/craft/distinfo   (contents, props changed)
  head/games/craft/pkg-descr   (contents, props changed)
  head/games/craft/pkg-plist   (contents, props changed)
Modified:
  head/games/Makefile

Modified: head/games/Makefile
==============================================================================
--- head/games/Makefile	Tue Mar 25 14:39:54 2014	(r349147)
+++ head/games/Makefile	Tue Mar 25 14:41:18 2014	(r349148)
@@ -156,6 +156,7 @@
     SUBDIR += cosmosmash
     SUBDIR += cowsay
     SUBDIR += crack-attack
+    SUBDIR += craft
     SUBDIR += crafty
     SUBDIR += crafty-open-enormous
     SUBDIR += crafty-open-large

Added: head/games/craft/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/craft/Makefile	Tue Mar 25 14:41:18 2014	(r349148)
@@ -0,0 +1,45 @@
+# Created by: Danilo Egea Gondolfo <danilo@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	craft
+PORTVERSION=	1.0
+CATEGORIES=	games
+MASTER_SITES=	GH
+
+MAINTAINER=	danilo@FreeBSD.org
+COMMENT=	Simple Minecraft clone written in C using modern OpenGL
+
+LIB_DEPENDS=	libcurl.so:${PORTSDIR}/ftp/curl
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	daniloegea
+GH_PROJECT=	Craft
+GH_TAGNAME=	v1.0fbsd
+
+OPTIONS_DEFINE=		SERVER
+SERVER_DESC=		Install the craft server
+OPTIONS_DEFAULT=	SERVER
+OPTIONS_SUB=		yes
+
+WRKSRC=		${WRKDIR}/${GH_ACCOUNT}-${GH_PROJECT}-fdf801f
+
+USES=		cmake compiler:c11
+USE_XORG=	x11 xi xrandr
+USE_GL=		gl glu
+
+SERVER_USE=		PYTHON=yes
+SERVER_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}requests>=2.2:${PORTSDIR}/www/py-requests \
+			${PYTHON_PKGNAMEPREFIX}sqlite3>=0:${PORTSDIR}/databases/py-sqlite3
+SERVER_CMAKE_ON=	-DSERVER:BOOL=ON
+
+.include <bsd.port.options.mk>
+
+post-install:
+.if ${PORT_OPTIONS:MSERVER}
+	@${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}
+	${INSTALL_DATA} ${WRKSRC}/world.py ${STAGEDIR}${PYTHON_SITELIBDIR}/craft_world.py
+	${INSTALL_SCRIPT} ${WRKSRC}/server.py ${STAGEDIR}${PREFIX}/bin/craft-server
+	${INSTALL_LIB} ${WRKSRC}/libworld.so ${STAGEDIR}${PREFIX}/lib/libcraft-world.so
+.endif
+
+.include <bsd.port.mk>

Added: head/games/craft/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/craft/distinfo	Tue Mar 25 14:41:18 2014	(r349148)
@@ -0,0 +1,2 @@
+SHA256 (craft-1.0.tar.gz) = a98ec03fe94b60beecb5c72a8d4fc9d5f16e525d1ab6614ec0c45f19e4c609ce
+SIZE (craft-1.0.tar.gz) = 2373956

Added: head/games/craft/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/craft/pkg-descr	Tue Mar 25 14:41:18 2014	(r349148)
@@ -0,0 +1,9 @@
+Craft is a Minecraft clone.
+Just a few thousand lines of C using modern OpenGL (shaders).
+Online multiplayer support is included using a Python-based server.
+
+This version is adapted to build, install and run on FreeBSD.
+
+Craft was created by Michael Fogleman.
+
+WWW: http://www.michaelfogleman.com/craft/

Added: head/games/craft/pkg-plist
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/craft/pkg-plist	Tue Mar 25 14:41:18 2014	(r349148)
@@ -0,0 +1,19 @@
+bin/craft
+%%SERVER%%bin/craft-server
+%%SERVER%%lib/libcraft-world.so
+%%SERVER%%%%PYTHON_SITELIBDIR%%/craft_world.py
+%%DATADIR%%/shaders/block_fragment.glsl
+%%DATADIR%%/shaders/block_vertex.glsl
+%%DATADIR%%/shaders/line_fragment.glsl
+%%DATADIR%%/shaders/line_vertex.glsl
+%%DATADIR%%/shaders/sky_fragment.glsl
+%%DATADIR%%/shaders/sky_vertex.glsl
+%%DATADIR%%/shaders/text_fragment.glsl
+%%DATADIR%%/shaders/text_vertex.glsl
+%%DATADIR%%/textures/font.png
+%%DATADIR%%/textures/sign.png
+%%DATADIR%%/textures/sky.png
+%%DATADIR%%/textures/texture.png
+@dirrmtry %%DATADIR%%/textures
+@dirrmtry %%DATADIR%%/shaders
+@dirrmtry %%DATADIR%%



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403251441.s2PEfITG033126>