source "package/which/Config.in"
source "package/xmlstarlet/Config.in"
source "package/xxhash/Config.in"
+ source "package/ytree/Config.in"
endmenu
menu "System tools"
--- /dev/null
+config BR2_PACKAGE_YTREE
+ bool "ytree"
+ select BR2_PACKAGE_NCURSES
+ help
+ Ytree - a (curses-based) file manager similar to DOS Xtree(tm)
+
+ https://www.han.de/~werner/ytree.html
--- /dev/null
+################################################################################
+#
+# ytree
+#
+################################################################################
+
+YTREE_VERSION = 1.99pl1
+YTREE_SITE = https://www.han.de/~werner
+YTREE_LICENSE = GPL-2.0
+YTREE_LICENSE_FILES = COPYING
+YTREE_DEPENDENCIES = ncurses
+
+YTREE_CFLAGS = -DCOLOR_SUPPORT $(TARGET_CFLAGS)
+YTREE_LDFLAGS = -lncurses $(TARGET_LDFLAGS)
+
+ifeq ($(BR2_PACKAGE_READLINE),y)
+YTREE_DEPENDENCIES += readline
+YTREE_CFLAGS += -DREADLINE_SUPPORT
+YTREE_LDFLAGS += -lreadline
+endif
+
+define YTREE_BUILD_CMDS
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) \
+ CFLAGS="$(YTREE_CFLAGS)" LDFLAGS="$(YTREE_LDFLAGS)"
+endef
+
+define YTREE_INSTALL_TARGET_CMDS
+ $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR="$(TARGET_DIR)/usr" install
+endef
+
+$(eval $(generic-package))