2009-09-03 05:38:20 +02:00
|
|
|
# New ports collection makefile for: springlobby
|
|
|
|
# Date created: 02 Sep 2009
|
|
|
|
# Whom: Dmitry Marakasov <amdmi3@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= springlobby
|
2010-04-24 15:20:13 +02:00
|
|
|
PORTVERSION= 0.78
|
2009-09-03 05:38:20 +02:00
|
|
|
CATEGORIES= games net
|
|
|
|
MASTER_SITES= http://www.springlobby.info/tarballs/ \
|
2009-10-20 05:11:14 +02:00
|
|
|
http://mirror.amdmi3.ru/distfiles/
|
2009-09-03 05:38:20 +02:00
|
|
|
|
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
|
|
|
COMMENT= Cross-platform lobby client for the Spring RTS project
|
|
|
|
|
|
|
|
RUN_DEPENDS= spring:${PORTSDIR}/games/spring
|
2010-04-03 12:44:36 +02:00
|
|
|
LIB_DEPENDS= curl.6:${PORTSDIR}/ftp/curl
|
2009-09-03 05:38:20 +02:00
|
|
|
|
|
|
|
USE_BZIP2= yes
|
2010-02-01 15:46:28 +01:00
|
|
|
USE_CMAKE= yes
|
2010-04-15 00:24:36 +02:00
|
|
|
CMAKE_ARGS= -DwxWidgets_CONFIG_EXECUTABLE="${WX_CONFIG}" \
|
|
|
|
-DENABLE_DEBUG_REPORT=FALSE
|
2009-09-03 05:38:20 +02:00
|
|
|
USE_WX= 2.8+
|
|
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
|
|
|
|
PORTDOCS= *
|
|
|
|
|
|
|
|
OPTIONS= TORRENT "Support automatic content downloads via torrent" on \
|
|
|
|
SOUND "Enable sound" on
|
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_NLS)
|
|
|
|
USE_GETTEXT= yes
|
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.else
|
2010-02-01 15:46:28 +01:00
|
|
|
CMAKE_ARGS+= -DOPTION_TRANSLATION_SUPPORT:BOOL=OFF
|
2009-09-03 05:38:20 +02:00
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_TORRENT)
|
2010-02-22 01:53:10 +01:00
|
|
|
LIB_DEPENDS+= torrent-rasterbar.5:${PORTSDIR}/net-p2p/libtorrent-rasterbar-14
|
2009-09-03 05:38:20 +02:00
|
|
|
.else
|
2010-02-01 15:46:28 +01:00
|
|
|
CMAKE_ARGS+= -DOPTION_TORRENT_SYSTEM:BOOL=OFF
|
2009-09-03 05:38:20 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_SOUND)
|
2010-02-01 15:46:28 +01:00
|
|
|
USE_OPENAL= al
|
2009-09-03 05:38:20 +02:00
|
|
|
.else
|
2010-02-01 15:46:28 +01:00
|
|
|
CMAKE_ARGS+= -DOPTION_SOUND:BOOL=OFF
|
2009-09-03 05:38:20 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
post-patch:
|
2010-02-01 15:46:28 +01:00
|
|
|
.if defined(NOPORTDOCS)
|
|
|
|
@${REINPLACE_CMD} -e '/install.*FILES.*share\/doc/ d' \
|
|
|
|
${WRKSRC}/CMakeLists.txt
|
2009-09-03 05:38:20 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|