1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

- Revert bogus games/springlobby removal

This commit is contained in:
Dmitry Marakasov 2015-05-27 03:20:15 +00:00
parent 7235d89fcd
commit 4342913895
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=387537
11 changed files with 178 additions and 0 deletions

View File

@ -912,6 +912,7 @@
SUBDIR += spicetrade
SUBDIR += spider
SUBDIR += spring
SUBDIR += springlobby
SUBDIR += starfighter
SUBDIR += starlanes
SUBDIR += steelstorm

View File

@ -0,0 +1,55 @@
# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
PORTNAME= springlobby
PORTVERSION= 0.180
PORTREVISION= 3
CATEGORIES= games net
MASTER_SITES= http://www.springlobby.info/tarballs/ \
http://mirror.amdmi3.ru/distfiles/
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Cross-platform lobby client for the Spring RTS project
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= spring:${PORTSDIR}/games/spring
LIB_DEPENDS= libcurl.so:${PORTSDIR}/ftp/curl \
libboost_thread.so:${PORTSDIR}/devel/boost-libs
USES= cmake pkgconfig compiler:c++11-lib tar:bzip2
CMAKE_ARGS= -DwxWidgets_CONFIG_EXECUTABLE="${WX_CONFIG}" \
-DENABLE_DEBUG_REPORT=FALSE
USE_WX= 2.8+
WX_UNICODE= yes
PORTDOCS= *
OPTIONS_DEFINE= SOUND NLS NOTIFY DOCS
OPTIONS_DEFAULT=SOUND NOTIFY
OPTIONS_SUB= yes
SOUND_DESC= Enable sound notifications
NOTIFY_DESC= Enable libnotify support for popup status messages
NLS_CMAKE_ON= -DOPTION_TRANSLATION_SUPPORT:BOOL=ON
NLS_CMAKE_OFF= -DOPTION_TRANSLATION_SUPPORT:BOOL=OFF
NLS_USES= gettext
SOUND_CMAKE_ON= -DOPTION_SOUND:BOOL=ON
SOUND_CMAKE_OFF= -DOPTION_SOUND:BOOL=OFF
SOUND_LIB_DEPENDS= libalure.so:${PORTSDIR}/audio/alure
SOUND_USES= openal:al
NOTIFY_CMAKE_ON= -DOPTION_NOTIFY=ON
NOTIFY_CMAKE_OFF= -DOPTION_NOTIFY=OFF
NOTIFY_LIB_DEPENDS= libnotify.so:${PORTSDIR}/devel/libnotify
.include <bsd.port.options.mk>
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 901000
IGNORE= does not build (no strtoll(3) support)
.endif
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (springlobby-0.180.tar.bz2) = ca9612fd4b8beb940169dfdbca76d15a73daee90ceb35c12f5ef451e79e6576c
SIZE (springlobby-0.180.tar.bz2) = 2543659

View File

@ -0,0 +1,32 @@
diff --git src/CMakeLists.txt src/CMakeLists.txt
index a1d9e3a..d82dac8 100644
--- src/lsl/src/CMakeLists.txt
+++ src/lsl/src/CMakeLists.txt
@@ -11,6 +11,14 @@ ENDIF ( EXISTS ${libSpringLobby_BINARY_DIR}/libSpringLobby_config.h OR EXISTS
INCLUDE_DIRECTORIES(${libSpringLobby_SOURCE_DIR}/lib)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR})
+INCLUDE (CheckFunctionExists)
+
+SET(CMAKE_REQUIRED_INCLUDES stdio.h)
+CHECK_FUNCTION_EXISTS(fmemopen HAVE_FMEMOPEN)
+IF(HAVE_FMEMOPEN)
+ ADD_DEFINITIONS(-DHAVE_FMEMOPEN)
+ENDIF(HAVE_FMEMOPEN)
+
add_subdirectory( lslutils )
if (LSLSERVER)
add_subdirectory( lsl )
diff --git src/lslunitsync/image.cpp src/lslunitsync/image.cpp
index fbc4591..e26215c 100644
--- src/lsl/src/lslunitsync/image.cpp
+++ src/lsl/src/lslunitsync/image.cpp
@@ -14,7 +14,7 @@
#include <lslutils/logging.h>
-#ifdef WIN32
+#if !defined(HAVE_FMEMOPEN)
#include <boost/filesystem.hpp>
//! we need our own fmemopen implementation since its posix only
FILE* fmemopen(void* data, size_t size, const char* mode)

View File

@ -0,0 +1,11 @@
--- src/downloader/lib/src/lib/xmlrpc++/src/base64.h.orig 2013-02-10 22:02:43.000000000 +0400
+++ src/downloader/lib/src/lib/xmlrpc++/src/base64.h 2013-12-10 04:19:12.257112752 +0400
@@ -13,6 +13,8 @@
# include <iterator>
#endif
+#include <iostream>
+
static
int _base64Chars[]= {'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z',
'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z',

View File

@ -0,0 +1,17 @@
--- src/lsl/src/lslunitsync/unitsync.cpp.orig 2013-11-23 01:34:07.000000000 +0400
+++ src/lsl/src/lslunitsync/unitsync.cpp 2013-12-10 04:23:40.875093997 +0400
@@ -55,13 +55,7 @@
{
static std::locale l("C");
static boost::is_iless il(l);
- try {
- //this fails on certain names
- return il(first,second);
- }
- catch(...) {
- return first < second;
- }
+ return first < second;
}
bool Unitsync::LoadUnitSyncLib( const std::string& unitsyncloc )

View File

@ -0,0 +1,10 @@
--- src/lsl/src/lslutils/misc.cpp.orig 2013-08-31 14:17:00.000000000 +0400
+++ src/lsl/src/lslutils/misc.cpp 2013-12-10 04:20:26.887107289 +0400
@@ -3,6 +3,7 @@
#include <boost/filesystem.hpp>
#include <fstream>
+#include <cmath>
namespace LSL {
namespace Util {

View File

@ -0,0 +1,10 @@
--- src/spring.cpp.orig 2013-11-23 01:34:04.000000000 +0400
+++ src/spring.cpp 2013-12-10 04:26:29.352082590 +0400
@@ -28,6 +28,7 @@
#include <wx/filename.h>
#include <stdexcept>
#include <vector>
+#include <clocale>
#include <fstream>
#include "spring.h"

View File

@ -0,0 +1,16 @@
--- tools/regen_config_header.sh.orig 2011-04-25 01:48:12.000000000 +0400
+++ tools/regen_config_header.sh 2011-05-05 12:03:25.000000000 +0400
@@ -1,4 +1,4 @@
-#!/usr/bin/env bash
+#!/bin/sh
#regen on bbot releases would screw with version
if [ "x${BUILDBOT_RELEASE}" != "x" ] ; then
@@ -14,6 +14,7 @@
REV_TEMPLATE="@SPRINGLOBBY_REV@"
#don't fail if no .git
+exit 0
git branch &> /dev/null || exit 0
REV="$(git describe --tags)"

View File

@ -0,0 +1,4 @@
SpringLobby is a free cross-platform lobby client for the
Spring RTS project.
WWW: http://springlobby.info/

View File

@ -0,0 +1,20 @@
bin/springlobby
bin/springsettings
share/applications/springlobby.desktop
share/icons/hicolor/scalable/apps/springlobby.svg
%%NLS%%share/locale/ar/LC_MESSAGES/springlobby.mo
%%NLS%%share/locale/cs/LC_MESSAGES/springlobby.mo
%%NLS%%share/locale/da/LC_MESSAGES/springlobby.mo
%%NLS%%share/locale/de/LC_MESSAGES/springlobby.mo
%%NLS%%share/locale/el/LC_MESSAGES/springlobby.mo
%%NLS%%share/locale/es/LC_MESSAGES/springlobby.mo
%%NLS%%share/locale/fi/LC_MESSAGES/springlobby.mo
%%NLS%%share/locale/fr/LC_MESSAGES/springlobby.mo
%%NLS%%share/locale/it/LC_MESSAGES/springlobby.mo
%%NLS%%share/locale/pl/LC_MESSAGES/springlobby.mo
%%NLS%%share/locale/pt/LC_MESSAGES/springlobby.mo
%%NLS%%share/locale/ro/LC_MESSAGES/springlobby.mo
%%NLS%%share/locale/ru/LC_MESSAGES/springlobby.mo
%%NLS%%share/locale/sv/LC_MESSAGES/springlobby.mo
%%NLS%%share/locale/uk/LC_MESSAGES/springlobby.mo
%%NLS%%share/locale/zh_CN/LC_MESSAGES/springlobby.mo