aboutsummaryrefslogtreecommitdiff
path: root/games/springlobby
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2013-04-29 22:27:05 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2013-04-29 22:27:05 +0000
commit9ff06b3cbf038359059e40e0db31ba0cbe996d0f (patch)
tree8583dfe71adaea6ce266633e1799cd602516b801 /games/springlobby
parent25c4307da135103ea810d65f96f2f1c21e0547b4 (diff)
downloadports-9ff06b3cbf038359059e40e0db31ba0cbe996d0f.tar.gz
ports-9ff06b3cbf038359059e40e0db31ba0cbe996d0f.zip
Notes
Diffstat (limited to 'games/springlobby')
-rw-r--r--games/springlobby/Makefile20
1 files changed, 9 insertions, 11 deletions
diff --git a/games/springlobby/Makefile b/games/springlobby/Makefile
index 4988795755c9..489bca5a7853 100644
--- a/games/springlobby/Makefile
+++ b/games/springlobby/Makefile
@@ -1,9 +1,5 @@
-# New ports collection makefile for: springlobby
-# Date created: 02 Sep 2009
-# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org>
-#
+# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= springlobby
PORTVERSION= 0.143
@@ -28,12 +24,14 @@ MAKE_JOBS_SAFE= yes
PORTDOCS= *
-OPTIONS= TORRENT "Support automatic content downloads via torrent" on \
- SOUND "Enable sound" on
+OPTIONS_DEFINE= TORRENT SOUND DOCS NLS
+OPTIONS_DEFAULT= TORRENT SOUND
+TORRENT_DESC= Support automatic content downloads via torrent
+SOUND_DESC= Enable sound
.include <bsd.port.options.mk>
-.if !defined(WITHOUT_NLS)
+.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
@@ -41,13 +39,13 @@ CMAKE_ARGS+= -DOPTION_TRANSLATION_SUPPORT:BOOL=OFF
PLIST_SUB+= NLS="@comment "
.endif
-.if !defined(WITHOUT_TORRENT)
+.if ${PORT_OPTIONS:MTORRENT}
LIB_DEPENDS+= torrent-rasterbar.6:${PORTSDIR}/net-p2p/libtorrent-rasterbar-15
.else
CMAKE_ARGS+= -DOPTION_TORRENT_SYSTEM:BOOL=OFF
.endif
-.if !defined(WITHOUT_SOUND)
+.if ${PORT_OPTIONS:MSOUND}
USE_OPENAL= al
.else
CMAKE_ARGS+= -DOPTION_SOUND:BOOL=OFF
@@ -57,7 +55,7 @@ post-patch:
@${REINPLACE_CMD} -e '/<curl\/types.h>/d' \
${WRKSRC}/src/utils/curlhelper.h \
${WRKSRC}/src/utils/downloader.cpp
-.if defined(NOPORTDOCS)
+.if ! ${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} -e '/install.*FILES.*share\/doc/ d' \
${WRKSRC}/CMakeLists.txt
.endif