The most popular spellchecking library
runtime dependencies | ncurses (Libraries/Text and terminal handling) |
---|---|
readline (Libraries/Text and terminal handling) |
mkdir /data/buildroot/package/hunspell cat > /data/buildroot/package/hunspell/Config.in<< 'EOF' config BR2_PACKAGE_HUNSPELL bool "hunspell" depends on BR2_PACKAGE_NCURSES depends on BR2_PACKAGE_READLINE help The most popular spellchecking library EOF cat > /data/buildroot/package/hunspell/hunspell.mk<< 'EOF' ############################################################# # # hunspell #https://github.com/hunspell/hunspell/files/2573619/hunspell-1.7.0.tar.gz ############################################################# HUNSPELL_VERSION = 1.7.0 HUNSPELL_SOURCE = hunspell-$(HUNSPELL_VERSION).tar.gz HUNSPELL_SITE = https://github.com/hunspell/hunspell/files/2573619 HUNSPELL_DEPENDENCIES = ncurses readline HUNSPELL_BIN_ARCH_EXCLUDE = /usr/lib define HUNSPELL_BUILD_CMDS cd $(@D)/ && \ autoreconf -fi && \ ./configure \ --prefix="/usr" \ --with-readline \ --with-ui && \ make endef define HUNSPELL_INSTALL_TARGET_CMDS cd $(@D)/ && \ make DESTDIR="$(TARGET_DIR)/" install cd "$(TARGET_DIR)/usr/lib" && \ ln -s libhunspell-?.?.so "libhunspell.so" endef $(eval $(generic-package)) EOF sed -i '/menu "Custom packages"/a source "package/hunspell/Config.in"' /data/buildroot/package/Config.in