svn commit: r509720 - in head/lang/angelscript: . files
Piotr Kubaj
pkubaj at FreeBSD.org
Sat Aug 24 12:38:56 UTC 2019
Author: pkubaj
Date: Sat Aug 24 12:38:55 2019
New Revision: 509720
URL: https://svnweb.freebsd.org/changeset/ports/509720
Log:
lang/angelscript: fix build on powerpc64
Angelscript works on powerpc, but its naming convention is only 32-bit. Define AS_MAX_PORTABILITY when building on powerpc64 to fix build.
PR: 239496
Approved by: ndowens at yahoo.com (maintainer timeout), linimon (mentor)
Added:
head/lang/angelscript/files/
head/lang/angelscript/files/patch-as_config.h (contents, props changed)
Modified:
head/lang/angelscript/Makefile
Modified: head/lang/angelscript/Makefile
==============================================================================
--- head/lang/angelscript/Makefile Sat Aug 24 11:36:50 2019 (r509719)
+++ head/lang/angelscript/Makefile Sat Aug 24 12:38:55 2019 (r509720)
@@ -13,11 +13,12 @@ COMMENT= AngelCode Scripting Library
LICENSE= ZLIB
BROKEN_aarch64= Does not build: invokes x86 asm
-BROKEN_powerpc64= Does not build: invokes x86 asm
BROKEN_sparc64= Does not build: invokes x86 asm
-USES= alias gmake zip
+USES= alias compiler:c11 dos2unix gmake zip
USE_LDCONFIG= yes
+
+DOS2UNIX_FILES= ../../source/as_config.h
MAKE_ARGS= CP_SYMLINK="${INSTALL_LIB}"
Added: head/lang/angelscript/files/patch-as_config.h
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/lang/angelscript/files/patch-as_config.h Sat Aug 24 12:38:55 2019 (r509720)
@@ -0,0 +1,12 @@
+--- ../../source/as_config.h.orig 2019-07-28 15:58:25.283690000 +0200
++++ ../../source/as_config.h 2019-07-28 16:08:34.592212000 +0200
+@@ -953,6 +953,9 @@
+ #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_BIG_ENDIAN
++ #define AS_MAX_PORTABILITY
+ #elif defined(__LP64__)
+ #define AS_X64_GCC
+ #define HAS_128_BIT_PRIMITIVES
More information about the svn-ports-all
mailing list