1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-25 09:34:11 +00:00
freebsd-ports/games/craft/Makefile
Gerald Pfeifer 09f9633cb6 Bump PORTREVISION for ports depending on the canonical version of GCC
in the ports tree (via Mk/bsd.default-versions.mk and lang/gcc) which
has now moved from GCC 6 to GCC 7 by default.

This includes ports
 - featuring USE_GCC=yes or USE_GCC=any,
 - featuring USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and those
 - with USES=compiler specifying one of openmp, nestedfct, c11, c++0x,
   c++11-lib, c++11-lang, c++14-lang, c++17-lang, or gcc-c++11-lib.

PR:		222542
2018-07-29 22:18:44 +00:00

45 lines
1.1 KiB
Makefile

# Created by: Danilo Egea Gondolfo <danilo@FreeBSD.org>
# $FreeBSD$
PORTNAME= craft
PORTVERSION= 1.0
DISTVERSIONPREFIX= v
DISTVERSIONSUFFIX= fbsd
PORTREVISION= 6
CATEGORIES= games
MAINTAINER= danilo@FreeBSD.org
COMMENT= Simple Minecraft clone written in C using modern OpenGL
LIB_DEPENDS= libcurl.so:ftp/curl
USE_GITHUB= yes
GH_ACCOUNT= daniloegea
GH_PROJECT= Craft
OPTIONS_DEFINE= SERVER
SERVER_DESC= Install the craft server
OPTIONS_DEFAULT= SERVER
OPTIONS_SUB= yes
USES= cmake compiler:c11
USE_XORG= x11 xi xrandr
USE_GL= gl glu
SERVER_USES= python:2.7
SERVER_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>=2.2:www/py-requests@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}sqlite3>=0:databases/py-sqlite3@${PY_FLAVOR}
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>