User Tools

Site Tools


buildroot:obconf-qt

obconf-qt

Openbox configuration tool. Qt port of ObConf

Paquet obsolète plus maintenu

runtime dependencies hicolor-icon-theme (Fonts, cursors, icons, sounds and themes/Icon)
openbox (Graphic libraries and applications/Xwindows Manager)
qt5x11extras (Graphic libraries and applications/Other GUIs)
make dependencies lxqt-build-tools
mkdir /data/buildroot/package/obconf-qt
cat > /data/buildroot/package/obconf-qt/Config.in<< 'EOF'
config BR2_PACKAGE_OBCONF_QT
        bool "obconf-qt"
        depends on BR2_PACKAGE_HICOLOR_ICON_THEME
        depends on BR2_PACKAGE_OPENBOX
        depends on BR2_PACKAGE_QT5X11EXTRAS
        depends on BR2_PACKAGE_QT5TOOLS
        help
          Openbox configuration tool. Qt port of ObConf
EOF

cat > /data/buildroot/package/obconf-qt/obconf-qt.mk<< 'EOF'
#############################################################
#
# obconf-qt
#https://github.com/lxqt/obconf-qt/archive/refs/tags/0.16.2.tar.gz
#############################################################
OBCONF_QT_VERSION = 0.16.2
OBCONF_QT_SOURCE  = $(OBCONF_QT_VERSION).tar.gz
OBCONF_QT_SITE    = https://github.com/lxqt/obconf-qt/archive/refs/tags

OBCONF_QT_DEPENDENCIES = hicolor-icon-theme openbox qt5x11extras qt5tools
OBCONF_QT_INSTALL_TARGET = YES
OBCONF_QT_SUPPORTS_IN_SOURCE_BUILD = NO 
OBCONF_QT_CONF_OPTS = -DCMAKE_TOOLCHAIN_FILE=$(HOST_DIR)/share/buildroot/toolchainfile.cmake \
    -Dlxqt-build-tools_DIR=$(TARGET-DIR)/usr/share/cmake/lxqt-build-tools \
    -DTARGET_INCLUDE_DIRECTORIES=$(TARGET_DIR)/usr/include \
    -DCMAKE_INSTALL_PREFIX=/usr

define OBCONF_QT_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 && \
  LDFLAGS="$(LDFLAGS) -pthread -Wl,--as-needed -Wl,--allow-shlib-undefined" cmake "$(@D)/" $(OBCONF_QT_CONF_OPTS)
endef

$(eval $(cmake-package))
EOF

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