Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Sep 2019 16:25:05 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r512358 - in head/games/openspades: . files
Message-ID:  <201909191625.x8JGP5u1077606@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Thu Sep 19 16:25:04 2019
New Revision: 512358
URL: https://svnweb.freebsd.org/changeset/ports/512358

Log:
  - Fix build for spark64
  
  PR:		240641
  Submitted by:	pkubaj@FreeBSD.org

Added:
  head/games/openspades/files/
  head/games/openspades/files/patch-Sources_AngelScript_source_as__config.h   (contents, props changed)
Modified:
  head/games/openspades/Makefile

Modified: head/games/openspades/Makefile
==============================================================================
--- head/games/openspades/Makefile	Thu Sep 19 16:21:50 2019	(r512357)
+++ head/games/openspades/Makefile	Thu Sep 19 16:25:04 2019	(r512358)
@@ -15,7 +15,7 @@ COMMENT=	Compatible client of Ace of Spades
 LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-ONLY_FOR_ARCHS=	amd64
+ONLY_FOR_ARCHS=	amd64 powerpc64
 ONLY_FOR_ARCHS_REASON=	bundles non-portable AngelScript
 
 BUILD_DEPENDS=	convert:graphics/ImageMagick6 # for building icons
@@ -25,11 +25,13 @@ LIB_DEPENDS=	libcurl.so:ftp/curl \
 USE_GITHUB=	yes
 GH_ACCOUNT=	yvt
 
-USES=		cmake:insource compiler:c++11-lib desktop-file-utils gl gnome openal
+USES=		cmake:insource compiler:c++11-lib desktop-file-utils dos2unix \
+		gl gnome openal sdl xorg
 CMAKE_ARGS=	-DOPENSPADES_RESOURCES=OFF \
 		-DOPENSPADES_INSTALL_MAN="man/man6" \
 		-DOPENSPADES_INSTALL_BINARY="bin" \
 		-DOPENSPADES_INSTALL_RESOURCES="${DATADIR_REL}"
+DOS2UNIX_FILES=	Sources/AngelScript/source/as_config.h
 USE_SDL=	sdl2 image2
 USE_GL=		gl glew
 INSTALLS_ICONS=	yes

Added: head/games/openspades/files/patch-Sources_AngelScript_source_as__config.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/openspades/files/patch-Sources_AngelScript_source_as__config.h	Thu Sep 19 16:25:04 2019	(r512358)
@@ -0,0 +1,11 @@
+--- Sources/AngelScript/source/as_config.h.orig	2019-09-17 11:18:51 UTC
++++ Sources/AngelScript/source/as_config.h
+@@ -947,6 +947,8 @@
+ 			#define COMPLEX_RETURN_MASK (asOBJ_APP_CLASS_DESTRUCTOR | asOBJ_APP_CLASS_COPY_CONSTRUCTOR | asOBJ_APP_ARRAY)
+ 			#define THISCALL_PASS_OBJECT_POINTER_ON_THE_STACK
+ 			#define AS_X86
++		#elif defined(__powerpc64__)
++			#define AS_MAX_PORTABILITY
+ 		#elif defined(__LP64__)
+ 			#define AS_X64_GCC
+ 			#define HAS_128_BIT_PRIMITIVES



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909191625.x8JGP5u1077606>