ports/www/onlyoffice-documentserver/files/patch-build__tools_scripts_config.py
Mikael Urankar e6f2735684 www/onlyoffice-documentserver: Add new port
ONLYOFFICE Document Server is an online office suite comprising viewers and
editors for texts, spreadsheets and presentations, fully compatible with
Office Open XML formats: .docx, .xlsx, .pptx and enabling collaborative editing
in real time.

WWW: https://www.onlyoffice.com/

Reviewed by:		bapt
Differential Revision:	https://reviews.freebsd.org/D33923
2022-01-19 08:38:26 +01:00

38 lines
1.4 KiB
Python

--- build_tools/scripts/config.py.orig 2021-12-08 10:18:20 UTC
+++ build_tools/scripts/config.py
@@ -26,6 +26,7 @@ def parse():
global platforms
platforms = ["win_64", "win_32", "win_64_xp", "win_32_xp",
"linux_64", "linux_32",
+ "freebsd_64",
"mac_64", "mac_arm64",
"ios",
"android_arm64_v8a", "android_armv7", "android_x86", "android_x86_64"]
@@ -39,6 +40,8 @@ def parse():
options["platform"] += " win_64 win_32"
elif ("linux" == host_platform):
options["platform"] += " linux_64 linux_32"
+ elif ("freebsd" == host_platform):
+ options["platform"] += " freebsd_64"
else:
options["platform"] += " mac_64"
@@ -50,6 +53,8 @@ def parse():
options["platform"] += (" win_" + bits)
elif ("linux" == host_platform):
options["platform"] += (" linux_" + bits)
+ elif ("freebsd" == host_platform):
+ options["platform"] += (" freebsd_" + bits)
else:
options["platform"] += (" mac_" + bits)
@@ -90,6 +95,9 @@ def check_compiler(platform):
if (0 == platform.find("win")):
compiler["compiler"] = "msvc2015"
compiler["compiler_64"] = "msvc2015_64"
+ elif (0 == platform.find("freebsd")):
+ compiler["compiler"] = "clang"
+ compiler["compiler_64"] = "clang_64"
elif (0 == platform.find("linux")):
compiler["compiler"] = "gcc"
compiler["compiler_64"] = "gcc_64"