Skip to content

Commit bf35a8d

Browse files
committed
depends: Do not set build_subdir for qt package
This change makes the next commit possible without exporting the PATH variable.
1 parent 6af8a62 commit bf35a8d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

depends/packages/qt.mk

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ $(package)_file_name=qtbase-$($(package)_suffix)
66
$(package)_sha256_hash=9b9dec1f67df1f94bce2955c5604de992d529dde72050239154c56352da0907d
77
$(package)_dependencies=zlib
88
$(package)_linux_dependencies=freetype fontconfig libxcb
9-
$(package)_build_subdir=qtbase
109
$(package)_qt_libs=corelib network widgets gui plugins testlib
1110
$(package)_patches=fix_qt_pkgconfig.patch mac-qmake.conf fix_configure_mac.patch fix_no_printer.patch
1211
$(package)_patches+= fix_rcc_determinism.patch fix_riscv64_arch.patch xkb-default.patch no-xlib.patch
@@ -257,6 +256,7 @@ define $(package)_config_cmds
257256
export PKG_CONFIG_SYSROOT_DIR=/ && \
258257
export PKG_CONFIG_LIBDIR=$(host_prefix)/lib/pkgconfig && \
259258
export PKG_CONFIG_PATH=$(host_prefix)/share/pkgconfig && \
259+
cd qtbase && \
260260
./configure $($(package)_config_opts) && \
261261
echo "host_build: QT_CONFIG ~= s/system-zlib/zlib" >> mkspecs/qconfig.pri && \
262262
echo "CONFIG += force_bootstrap" >> mkspecs/qconfig.pri && \
@@ -268,14 +268,14 @@ define $(package)_config_cmds
268268
endef
269269

270270
define $(package)_build_cmds
271-
$(MAKE) -C src $(addprefix sub-,$($(package)_qt_libs)) && \
272-
$(MAKE) -C ../qttools/src/linguist/lrelease && \
273-
$(MAKE) -C ../qttools/src/linguist/lupdate && \
274-
$(MAKE) -C ../qttranslations
271+
$(MAKE) -C qtbase/src $(addprefix sub-,$($(package)_qt_libs)) && \
272+
$(MAKE) -C qttools/src/linguist/lrelease && \
273+
$(MAKE) -C qttools/src/linguist/lupdate && \
274+
$(MAKE) -C qttranslations
275275
endef
276276

277277
define $(package)_stage_cmds
278-
$(MAKE) -C src INSTALL_ROOT=$($(package)_staging_dir) $(addsuffix -install_subtargets,$(addprefix sub-,$($(package)_qt_libs))) && cd .. && \
278+
$(MAKE) -C qtbase/src INSTALL_ROOT=$($(package)_staging_dir) $(addsuffix -install_subtargets,$(addprefix sub-,$($(package)_qt_libs))) && \
279279
$(MAKE) -C qttools/src/linguist/lrelease INSTALL_ROOT=$($(package)_staging_dir) install_target && \
280280
$(MAKE) -C qttools/src/linguist/lupdate INSTALL_ROOT=$($(package)_staging_dir) install_target && \
281281
$(MAKE) -C qttranslations INSTALL_ROOT=$($(package)_staging_dir) install_subtargets

0 commit comments

Comments
 (0)