mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
parent
0ad26a2870
commit
e943a340a6
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=490011
@ -2,12 +2,11 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= openspades
|
||||
PORTVERSION= 0.0.12
|
||||
PORTVERSION= 0.1.2
|
||||
DISTVERSIONPREFIX= v
|
||||
PORTREVISION= 8
|
||||
CATEGORIES= games
|
||||
MASTER_SITES= http://yvt.jp/files/programs/osppaks/:data
|
||||
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} DevPaks27.zip:data
|
||||
MASTER_SITES= https://github.com/yvt/openspades-paks/releases/download/r33/:data
|
||||
DISTFILES= OpenSpadesDevPackage-r33.zip:data
|
||||
|
||||
MAINTAINER= amdmi3@FreeBSD.org
|
||||
COMMENT= Compatible client of Ace of Spades
|
||||
@ -15,16 +14,17 @@ COMMENT= Compatible client of Ace of Spades
|
||||
LICENSE= GPLv3
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
BUILD_DEPENDS= convert:graphics/ImageMagick6 # for building icons
|
||||
LIB_DEPENDS= libcurl.so:ftp/curl
|
||||
ONLY_FOR_ARCHS= amd64
|
||||
ONLY_FOR_ARCHS_REASON= bundles non-portable AngelScript
|
||||
|
||||
BROKEN_aarch64= fails to compile: uses x86 assembly
|
||||
BROKEN_powerpc64= fails to compile: uses x86 assembly
|
||||
BUILD_DEPENDS= convert:graphics/ImageMagick6 # for building icons
|
||||
LIB_DEPENDS= libcurl.so:ftp/curl \
|
||||
libopusfile.so:audio/opusfile
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= yvt
|
||||
|
||||
USES= cmake:insource compiler:c++11-lib desktop-file-utils
|
||||
USES= cmake:insource compiler:c++11-lib desktop-file-utils gl gnome openal
|
||||
CMAKE_ARGS= -DOPENSPADES_RESOURCES=OFF \
|
||||
-DOPENSPADES_INSTALL_MAN="man/man6" \
|
||||
-DOPENSPADES_INSTALL_BINARY="bin" \
|
||||
@ -39,10 +39,13 @@ PORTDATA= *
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
post-extract:
|
||||
@${MKDIR} ${WRKSRC}/Resources/DevPak
|
||||
@${MV} ${WRKDIR}/*.pak ${WRKSRC}/Resources/DevPak/
|
||||
@${MV} ${WRKDIR}/Nonfree/*.pak ${WRKDIR}/OfficialMods/*.pak \
|
||||
${WRKSRC}/Resources/
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|Xext|${LOCALBASE}/lib/lib&.so|' ${WRKSRC}/Sources/CMakeLists.txt
|
||||
|
||||
post-install:
|
||||
cd ${WRKSRC}/Resources/ && ${COPYTREE_SHARE} "Gfx Locales Maps Models PackageInfo.json Scripts Shaders Sounds Textures *.pak" ${STAGEDIR}${DATADIR}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,4 +1,5 @@
|
||||
SHA256 (yvt-openspades-v0.0.12_GH0.tar.gz) = f5778f12cf42c46b14ed8decb0a312998839ea9f7927058fb919a3c9182248a9
|
||||
SIZE (yvt-openspades-v0.0.12_GH0.tar.gz) = 1984521
|
||||
SHA256 (DevPaks27.zip) = 668b62d3770f407447e6f45df28928f66a7fe3440c541788f66583f31ae5c717
|
||||
SIZE (DevPaks27.zip) = 19597524
|
||||
TIMESTAMP = 1521997974
|
||||
SHA256 (yvt-openspades-v0.1.2_GH0.tar.gz) = f4947232eded073469d07935783786efd70e7d73e615326dbb66676c4e8724a8
|
||||
SIZE (yvt-openspades-v0.1.2_GH0.tar.gz) = 7474808
|
||||
SHA256 (OpenSpadesDevPackage-r33.zip) = 0927dc323a0b3aba0ee8d1d68d6b544b00fe654740fead6d1faad37aac77a2ad
|
||||
SIZE (OpenSpadesDevPackage-r33.zip) = 4036321
|
||||
|
@ -1,8 +0,0 @@
|
||||
--- CMakeLists.txt.orig 2014-06-23 11:55:03 UTC
|
||||
+++ CMakeLists.txt
|
||||
@@ -1,5 +1,4 @@
|
||||
cmake_minimum_required(VERSION 2.8)
|
||||
-set(CMAKE_INSTALL_PREFIX "/usr/local")
|
||||
project(OpenSpades)
|
||||
|
||||
set(OpenSpades_VERSION_MAJOR 0)
|
@ -1,15 +0,0 @@
|
||||
--- Sources/CMakeLists.txt.orig 2014-06-23 11:55:03 UTC
|
||||
+++ Sources/CMakeLists.txt
|
||||
@@ -24,9 +24,9 @@ add_subdirectory(AngelScript/projects/cm
|
||||
add_subdirectory(AngelScript/projects/cmake_addons)
|
||||
set(ANGELSCRIPT_LIBS Angelscript Angelscript_addons)
|
||||
|
||||
-include_directories(".")
|
||||
-include_directories("json/include")
|
||||
-include_directories("ENet/include")
|
||||
+include_directories(BEFORE ".")
|
||||
+include_directories(BEFORE "json/include")
|
||||
+include_directories(BEFORE "ENet/include")
|
||||
|
||||
if(WIN32)
|
||||
if(MINGW) # = gcc, can someone confirm that this works?
|
@ -1,20 +0,0 @@
|
||||
--- Sources/Core/ConcurrentDispatch.cpp.orig 2014-06-23 11:55:03 UTC
|
||||
+++ Sources/Core/ConcurrentDispatch.cpp
|
||||
@@ -38,7 +38,7 @@
|
||||
#ifndef _MSC_VER
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
-#if defined(__GNUC__)
|
||||
+#if defined(__linux__)
|
||||
#include <sys/sysinfo.h>
|
||||
#endif
|
||||
#endif
|
||||
@@ -67,7 +67,7 @@ static int GetNumCores() {
|
||||
if(count < 1) { count = 1; }
|
||||
}
|
||||
return count;
|
||||
-#elif defined(__GNUC__)
|
||||
+#elif defined(__linux__)
|
||||
return get_nprocs();
|
||||
#else
|
||||
return sysconf(_SC_NPROCESSORS_ONLN);
|
@ -1,10 +0,0 @@
|
||||
--- Sources/Draw/SWFeatureLevel.h.orig 2014-06-23 11:55:03 UTC
|
||||
+++ Sources/Draw/SWFeatureLevel.h
|
||||
@@ -55,6 +55,7 @@
|
||||
#endif
|
||||
|
||||
#include <algorithm>
|
||||
+#include <cmath>
|
||||
#include <Core/ConcurrentDispatch.h>
|
||||
#include <Core/Debug.h>
|
||||
|
@ -4,4 +4,4 @@ OpenSpades is a compatible client of Ace of Spades 0.75.
|
||||
* Uses OpenGL/AL for better visuals.
|
||||
* Open source, and cross platform.
|
||||
|
||||
WWW: http://www.openspades.org/
|
||||
WWW: http://openspades.yvt.jp/
|
||||
|
Loading…
Reference in New Issue
Block a user