Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-gnome
Path: blob/main/games/0ad/files/patch-build_premake_premake5.lua
16135 views
1
--- build/premake/premake5.lua.orig 2021-02-28 23:45:14 UTC
2
+++ build/premake/premake5.lua
3
@@ -87,6 +87,8 @@ else
4
arch = "aarch64"
5
elseif string.find(machine, "e2k") == 1 then
6
arch = "e2k"
7
+ elseif string.find(machine, "ppc64") == 1 or string.find(machine, "powerpc64") == 1 then
8
+ arch = "ppc64"
9
else
10
print("WARNING: Cannot determine architecture from GCC, assuming x86")
11
end
12
@@ -365,7 +365,7 @@ function project_set_build_flags()
13
14
if os.istarget("linux") or os.istarget("bsd") then
15
if _OPTIONS["prefer-local-libs"] then
16
- libdirs { "/usr/local/lib" }
17
+ libdirs { "%%LOCALBASE%%/lib" }
18
end
19
20
-- To use our local shared libraries, they need to be found in the
21
@@ -865,6 +867,8 @@ function setup_all_libs ()
22
table.insert(source_dirs, "lib/sysdep/arch/aarch64");
23
elseif arch == "e2k" then
24
table.insert(source_dirs, "lib/sysdep/arch/e2k");
25
+ elseif arch == "ppc64" then
26
+ table.insert(source_dirs, "lib/sysdep/arch/ppc64");
27
end
28
29
-- OS-specific
30
31