MFH: r558185
multimedia/kodi: port to powerpc64
This commit is contained in:
parent
badd93ac22
commit
6891281144
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/branches/2020Q4/; revision=558186
@ -10,7 +10,7 @@ COMMENT= Award winning media center application
|
||||
|
||||
LICENSE= GPLv2+
|
||||
|
||||
ONLY_FOR_ARCHS= amd64 armv6 armv7 i386
|
||||
ONLY_FOR_ARCHS= amd64 armv6 armv7 i386 powerpc64
|
||||
|
||||
BUILD_DEPENDS= flatbuffers>0:devel/flatbuffers \
|
||||
gperf>0:devel/gperf \
|
||||
@ -48,6 +48,7 @@ KODI_ARCH_amd64=x86_64
|
||||
KODI_ARCH_i386= x86
|
||||
KODI_ARCH_armv7=armv7
|
||||
KODI_ARCH_armv6=armv6
|
||||
KODI_ARCH_powerpc64=powerpc64
|
||||
|
||||
NOPRECIOUSMAKEVARS= yes
|
||||
|
||||
|
@ -0,0 +1,11 @@
|
||||
--- cmake/scripts/freebsd/ArchSetup.cmake.orig 2020-12-15 16:30:44 UTC
|
||||
+++ cmake/scripts/freebsd/ArchSetup.cmake
|
||||
@@ -19,6 +19,8 @@ else()
|
||||
elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL aarch64)
|
||||
set(ARCH aarch64-freebsd)
|
||||
set(NEON True)
|
||||
+ elseif(CMAKE_SYSTEM_PROCESSOR STREQUAL powerpc64)
|
||||
+ set(ARCH powerpc64-freebsd)
|
||||
else()
|
||||
message(WARNING "unknown CPU: ${CPU}")
|
||||
endif()
|
11
multimedia/kodi/files/patch-xbmc_utils_EndianSwap.h
Normal file
11
multimedia/kodi/files/patch-xbmc_utils_EndianSwap.h
Normal file
@ -0,0 +1,11 @@
|
||||
--- xbmc/utils/EndianSwap.h.orig 2020-12-15 17:05:18 UTC
|
||||
+++ xbmc/utils/EndianSwap.h
|
||||
@@ -23,7 +23,7 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
-#if defined(__GNUC__) && (defined(__powerpc__) || defined(__ppc__))
|
||||
+#if defined(__GNUC__) && (defined(__powerpc__) || defined(__ppc__)) && !defined(__clang__)
|
||||
static __inline__ uint16_t Endian_Swap16(uint16_t x)
|
||||
{
|
||||
uint16_t result;
|
Loading…
Reference in New Issue
Block a user