diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2013-11-29 03:21:06 +0000 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2013-11-29 03:21:06 +0000 |
commit | 73a8d902ba88950db8c0d3e0fed810f3d22379ce (patch) | |
tree | 92c0d1541ad9ceb8db025a35702f2168e5793cf8 /games/minetest | |
parent | - Stagify (diff) |
Add more options
Diffstat (limited to 'games/minetest')
-rw-r--r-- | games/minetest/Makefile | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/games/minetest/Makefile b/games/minetest/Makefile index dc90051d1321..0ceff69d4ac4 100644 --- a/games/minetest/Makefile +++ b/games/minetest/Makefile @@ -24,7 +24,7 @@ CMAKE_ARGS= -DCUSTOM_MANDIR="${PREFIX}/man" \ PORTDATA= * PORTDOCS= * -OPTIONS_DEFINE= CLIENT SERVER CURL NLS SOUND DOCS EXAMPLES +OPTIONS_DEFINE= CLIENT SERVER CURL NLS SOUND DOCS EXAMPLES FREETYPE LEVELDB LUAJIT OPTIONS_DEFAULT=CLIENT SERVER CURL SOUND OPTIONS_SUB= yes @@ -32,6 +32,9 @@ 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 +FREETYPE_DESC= Support for TrueType fonts with unicode +LUAJIT_DESC= LuaJIT support CLIENT_CMAKE_ON= -DBUILD_CLIENT=1 CLIENT_CMAKE_OFF= -DBUILD_CLIENT=0 @@ -49,6 +52,13 @@ 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 +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.port.options.mk> @@ -66,7 +76,11 @@ GROUPS= ${PORTNAME} post-patch: @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \ ${WRKSRC}/cmake/Modules/*.cmake - @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|; /find_/ s|LUA_|NO&|g' \ + @${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|' \ ${WRKSRC}/src/CMakeLists.txt +.if ! ${PORT_OPTIONS:MLUAJIT} + @${REINPLACE_CMD} -e '/find_/ s|LUA_|NO&|g' \ + ${WRKSRC}/src/CMakeLists.txt +.endif .include <bsd.port.mk> |