File tree Expand file tree Collapse file tree 5 files changed +10
-3
lines changed Expand file tree Collapse file tree 5 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,10 @@ To build dependencies for the current arch+OS:
33
33
34
34
pkg install bash cmake curl gmake
35
35
36
+ Skip the following packages if you don't intend to use the GUI and will build with [ ` NO_QT=1 ` ] ( #dependency-options ) :
37
+
38
+ pkg install bison ninja pkgconf python3
39
+
36
40
To build dependencies for the current arch+OS:
37
41
38
42
gmake
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ qrencode_darwin_packages = qrencode
9
9
qrencode_mingw32_packages = qrencode
10
10
11
11
qt_linux_packages: =qt expat libxcb xcb_proto libXau xproto freetype fontconfig libxkbcommon libxcb_util libxcb_util_cursor libxcb_util_render libxcb_util_keysyms libxcb_util_image libxcb_util_wm
12
+ qt_freebsd_packages: =$(qt_linux_packages )
12
13
qt_darwin_packages =qt
13
14
qt_mingw32_packages =qt
14
15
ifneq ($(host ) ,$(build ) )
Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ $(package)_sha256_hash=$(qt_details_qtbase_sha256_hash)
7
7
ifneq ($(host ) ,$(build ) )
8
8
$(package)_dependencies := native_$(package )
9
9
endif
10
- $(package)_linux_dependencies =freetype fontconfig libxcb libxkbcommon libxcb_util libxcb_util_cursor libxcb_util_render libxcb_util_keysyms libxcb_util_image libxcb_util_wm
10
+ $(package)_linux_dependencies := freetype fontconfig libxcb libxkbcommon libxcb_util libxcb_util_cursor libxcb_util_render libxcb_util_keysyms libxcb_util_image libxcb_util_wm
11
+ $(package)_freebsd_dependencies := $($(package ) _linux_dependencies)
11
12
$(package)_patches_path := $(qt_details_patches_path )
12
13
$(package)_patches := dont_hardcode_pwd.patch
13
14
$(package)_patches += qtbase-moc-ignore-gcc-macro.patch
@@ -146,6 +147,7 @@ $(package)_config_opts_linux += -xcb
146
147
ifneq ($(LTO ) ,)
147
148
$(package)_config_opts_linux += -ltcg
148
149
endif
150
+ $(package ) _config_opts_freebsd := $$($(package ) _config_opts_linux)
149
151
150
152
$(package ) _config_opts_mingw32 := -no-dbus
151
153
$(package ) _config_opts_mingw32 += -no-freetype
Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND NOT CMAKE_HOST_APPLE)
101
101
endif ()
102
102
103
103
104
- if (CMAKE_SYSTEM_NAME STREQUAL " Linux" )
104
+ if (CMAKE_SYSTEM_NAME MATCHES "^( Linux|FreeBSD)$ " )
105
105
# Customize pkg-config behavior for finding dependencies
106
106
# of the xcb QPA platform plugin:
107
107
# 1. Restrict search paths to the depends.
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ get_target_property(qt_lib_type Qt6::Core TYPE)
16
16
function (import_plugins target )
17
17
if (qt_lib_type STREQUAL "STATIC_LIBRARY" )
18
18
set (plugins Qt6::QMinimalIntegrationPlugin )
19
- if (CMAKE_SYSTEM_NAME STREQUAL " Linux" )
19
+ if (CMAKE_SYSTEM_NAME MATCHES "^( Linux|FreeBSD)$ " )
20
20
list (APPEND plugins Qt6::QXcbIntegrationPlugin )
21
21
elseif (WIN32 )
22
22
list (APPEND plugins Qt6::QWindowsIntegrationPlugin Qt6::QModernWindowsStylePlugin )
You can’t perform that action at this time.
0 commit comments