aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authorcrees <crees@FreeBSD.org>2012-06-06 19:42:58 +0800
committercrees <crees@FreeBSD.org>2012-06-06 19:42:58 +0800
commit74c284e07487fd0fc7bfba6ef596daed6d232d2c (patch)
treec7a03d1b9c959afe6f40ed7eee0321460810d85d /games
parent6841f1041f16b5e48cded58974aec7e9cbcd551d (diff)
downloadfreebsd-ports-gnome-74c284e07487fd0fc7bfba6ef596daed6d232d2c.tar.gz
freebsd-ports-gnome-74c284e07487fd0fc7bfba6ef596daed6d232d2c.tar.zst
freebsd-ports-gnome-74c284e07487fd0fc7bfba6ef596daed6d232d2c.zip
Update to OPTIONSng
PR: ports/168644 Submitted by: crees Approved by: maintainer
Diffstat (limited to 'games')
-rw-r--r--games/minecraft-client/Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/games/minecraft-client/Makefile b/games/minecraft-client/Makefile
index f1fe40c1abef..f2a825097ccb 100644
--- a/games/minecraft-client/Makefile
+++ b/games/minecraft-client/Makefile
@@ -18,7 +18,8 @@ EXTRACT_ONLY=
MAINTAINER= freebsd@rakor-net.de
COMMENT= Client for the block building game
-OPTIONS= NATIVE_LIBS "Enable native libs support" off
+OPTIONS_DEFINE= NATIVE_LIBS
+NATIVE_LIBS_DESC= Enable native libs support
.include <bsd.port.options.mk>
@@ -28,7 +29,7 @@ USE_JAVA= yes
JAVA_VERSION= 1.6
DESKTOP_ENTRIES= "Minecraft" "Block building game" "${DATADIR}/Grass.png" "minecraft-client" "Application;Game;" false
-.if defined(WITH_NATIVE_LIBS)
+.if ${PORT_OPTIONS:MNATIVE_LIBS}
USE_OPENAL= soft
BUILD_DEPENDS+= ${JAVALIBDIR}/lwjgl/lwjgl_util.jar:${PORTSDIR}/games/lwjgl
RUN_DEPENDS+= ${JAVALIBDIR}/lwjgl/lwjgl_util.jar:${PORTSDIR}/games/lwjgl
@@ -42,7 +43,7 @@ JAVA_VENDOR= sun
do-install:
${ECHO_CMD} "#!/bin/sh" > ${WRKDIR}/minecraft-client
${ECHO_CMD} "export JAVA_HOME=${JAVA_HOME}" >> ${WRKDIR}/minecraft-client
-.if defined(WITH_NATIVE_LIBS)
+.if ${PORT_OPTIONS:MNATIVE_LIBS}
${ECHO_CMD} "${ECHO_MSG} \"Note:\"" >> ${WRKDIR}/minecraft-client
${ECHO_CMD} "${ECHO_MSG} \"\"" >> ${WRKDIR}/minecraft-client
${ECHO_CMD} "${ECHO_MSG} \" Please restart this script after inital\"" >> ${WRKDIR}/minecraft-client