buildroot:uchardet
uchardet
Encoding detector library ported from Mozilla
mkdir /data/buildroot/package/uchardet cat > /data/buildroot/package/uchardet/Config.in<< 'EOF' config BR2_PACKAGE_UCHARDET bool "uchardet" help Encoding detector library ported from Mozilla EOF cat > /data/buildroot/package/uchardet/uchardet.mk<< 'EOF' ############################################################# # # uchardet #https://www.freedesktop.org/software/uchardet/releases/uchardet-0.0.7.tar.xz ############################################################# UCHARDET_VERSION = 0.0.7 UCHARDET_SOURCE = uchardet-$(UCHARDET_VERSION).tar.xz UCHARDET_SITE = https://www.freedesktop.org/software/uchardet/releases UCHARDET_BIN_ARCH_EXCLUDE = /usr/lib UCHARDET_INSTALL_TARGET = YES UCHARDET_SUPPORTS_IN_SOURCE_BUILD = NO UCHARDET_CONF_OPTS = -DCMAKE_TOOLCHAIN_FILE=$(HOST_DIR)/share/buildroot/toolchainfile.cmake \ -DCMAKE_INSTALL_PREFIX=/usr define UCHARDET_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)/" $(UCHARDET_CONF_OPTS) endef $(eval $(cmake-package)) EOF sed -i '/menu "Custom packages"/a source "package/uchardet/Config.in"' /data/buildroot/package/Config.in
buildroot/uchardet.txt · Last modified: 2025/02/19 10:59 by 127.0.0.1