User Tools

Site Tools


buildroot:lxqt-config

lxqt-config

LXQt system configuration.

runtime dependencies libXcursor (Graphic libraries/X11R7 Applications)
qt5svg (Graphic libraries and applications/Other GUIs)
hicolor-icon-theme (Fonts, cursors, icons, sounds and themes/Icon)
liblxqt
libkscreen
make dependencies qt5tools
lxqt-build-tools
xf86-input-libinput
mkdir /data/buildroot/package/lxqt-config
cat > /data/buildroot/package/lxqt-config/Config.in<< 'EOF'
config BR2_PACKAGE_LXQT_CONFIG
        bool "lxqt-config"
        depends on BR2_PACKAGE_LIBLXQT
        depends on BR2_PACKAGE_LIBKSCREEN
        depends on BR2_PACKAGE_XLIB_LIBXCURSOR
        depends on BR2_PACKAGE_QT5SVG
        depends on BR2_PACKAGE_HICOLOR_ICON_THEME
        depends on BR2_PACKAGE_XDRIVER_XF86_INPUT_LIBINPUT
        depends on BR2_PACKAGE_QT5TOOLS
        help
          LXQt system configuration.
EOF

cat > /data/buildroot/package/lxqt-config/lxqt-config.mk<< 'EOF'
#############################################################
#
# lxqt-config
#https://github.com/lxqt/lxqt-config/archive/refs/tags/1.1.0.tar.gz
#############################################################
LXQT_CONFIG_VERSION = 1.1.0
LXQT_CONFIG_SOURCE  = $(LXQT_CONFIG_VERSION).tar.gz
LXQT_CONFIG_SITE    = https://github.com/lxqt/lxqt-config/archive/refs/tags

LXQT_CONFIG_DEPENDENCIES = liblxqt libkscreen xlib_libXcursor qt5svg hicolor-icon-theme xdriver_xf86-input-libinput qt5tools
LXQT_CONFIG_INSTALL_TARGET = YES
LXQT_CONFIG_SUPPORTS_IN_SOURCE_BUILD = NO 
LXQT_CONFIG_CONF_OPTS = -DCMAKE_TOOLCHAIN_FILE=$(HOST_DIR)/share/buildroot/toolchainfile.cmake \
    -Dlxqt_DIR=$(TARGET_DIR)/usr/share/cmake/lxqt \
    -DQt5Xdg_DIR=$(TARGET_DIR)/usr/share/cmake/qt5xdg \
    -DQt5XdgIconLoader_DIR=$(TARGET_DIR)/usr/share/cmake/qt5xdgiconloader \
    -DKF5WindowSystem_DIR=$(TARGET_DIR)/usr/lib/cmake/KF5WindowSystem \
    -DKF5Screen_DIR=$(TARGET_DIR)/usr/lib/cmake/KF5Screen \
    -Dlxqt-build-tools_DIR=$(TARGET-DIR)/usr/share/cmake/lxqt-build-tools \
    -Dfm-qt_DIR=$(TARGET_DIR)/usr/share/cmake/fm-qt \
    -DWITH_BRIGHTNESS=off \
    -DWITH_TOUCHPAD=off \
    -DCMAKE_INSTALL_PREFIX=/usr 

define LXQT_CONFIG_CONFIGURE_CMDS
  if [[ ! -L "$(HOST_DIR)/usr/lib/libpcre.so.3" ]]; then ln -s $(HOST_DIR)/usr/lib/libpcre.so $(HOST_DIR)/usr/lib/libpcre.so.3; fi
  if [[ ! -d $(@D)/buildroot-build ]]; then mkdir $(@D)/buildroot-build; fi
  cd $(@D)/buildroot-build && \
  export XCB_INCLUDE_DIR="$(TARGET-DIR)/usr/lib" && \
  LDFLAGS="$(LDFLAGS) -pthread -Wl,--as-needed -Wl,--allow-shlib-undefined" cmake "$(@D)/" $(LXQT_CONFIG_CONF_OPTS)
endef

$(eval $(cmake-package))
EOF


sed -i '/menu "Custom packages"/a source "package/lxqt-config/Config.in"' /data/buildroot/package/Config.in
buildroot/lxqt-config.txt · Last modified: 2025/02/19 10:59 by 127.0.0.1