freebsd-ports/games/voxelands/Makefile
Tobias C. Berner 707c6bf295 Change cmake default behaviour to outsource.
Ports that build out of source now simply can use "USES=cmake"
instead of "USES=cmake:outsource". Ports that fail to build
out of source now need to specify "USES=cmake:insource".

I tried to only set insource where explictely needed.

PR:		232038
Exp-run by:	antoine
2018-12-25 20:25:39 +00:00

55 lines
1.4 KiB
Makefile

# $FreeBSD$
PORTNAME= voxelands
PORTVERSION= 1604.00
PORTREVISION= 3
CATEGORIES= games
MASTER_SITES= http://voxelands.com/downloads/
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= dcmenche@gmail.com
COMMENT?= Fun-Focused voxel world game
LICENSE= GPLv3+
BROKEN= fails to build
BROKEN_powerpc64= fails to link: sibling call optimization does not allow automatic multiple TOCs
LIB_DEPENDS= libIrrlicht.so:x11-toolkits/irrlicht \
libfreetype.so:print/freetype2
USES= cmake:insource tar:bzip2
LLD_UNSAFE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
OPTIONS_SUB= yes
OPTIONS_DEFINE= NLS SOUND SQLITE3 DOCS
OPTIONS_MULTI= BINARIES
OPTIONS_MULTI_BINARIES= CLIENT SERVER
OPTIONS_DEFAULT= SOUND CLIENT SERVER
OPTIONS_SLAVE?= CLIENT
OPTIONS_EXCLUDE?= SERVER
SOUND_DESC= Enable menu background music and in-game sound effects
SQLITE3_DESC= Use bundled SQLite3 instead of databases/sqlite3
CLIENT_CMAKE_BOOL= BUILD_CLIENT
CLIENT_LIB_DEPENDS= libpng.so:graphics/png
CLIENT_USE= xorg=x11,xxf86vm gl=gl
CLIENT_USES= jpeg
NLS_USES= gettext
NLS_CMAKE_BOOL= GETTEXT_FOUND
SERVER_CMAKE_BOOL= BUILD_SERVER
SQLITE3_CMAKE_ON= -DSQLITE3_INCLUDE_DIR=SQLITE3_INCLUDE_DIR-NOTFOUND \
SQLITE3_LIBRARY=SQLITE3_LIBRARY-NOTFOUND
SQLITE3_LIB_DEPENDS_OFF=libsqlite3.so:databases/sqlite3
SOUND_CMAKE_BOOL= ENABLE_AUDIO
SOUND_LIB_DEPENDS= libvorbis.so:audio/libvorbis \
libogg.so:audio/libogg \
libopenal.so:audio/openal-soft
.include <bsd.port.mk>