2019-09-04 23:21:17 +02:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# ytree
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2021-11-20 11:36:13 +01:00
|
|
|
YTREE_VERSION = 2.04
|
2019-09-04 23:21:17 +02:00
|
|
|
YTREE_SITE = https://www.han.de/~werner
|
2019-12-08 11:54:53 +01:00
|
|
|
YTREE_LICENSE = GPL-2.0+
|
2019-09-04 23:21:17 +02:00
|
|
|
YTREE_LICENSE_FILES = COPYING
|
|
|
|
YTREE_DEPENDENCIES = ncurses
|
|
|
|
|
|
|
|
YTREE_CFLAGS = -DCOLOR_SUPPORT $(TARGET_CFLAGS)
|
|
|
|
YTREE_LDFLAGS = -lncurses $(TARGET_LDFLAGS)
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_READLINE),y)
|
2019-09-25 18:52:48 +02:00
|
|
|
YTREE_DEPENDENCIES += host-pkgconf readline
|
2019-09-04 23:21:17 +02:00
|
|
|
YTREE_CFLAGS += -DREADLINE_SUPPORT
|
2019-09-25 18:52:48 +02:00
|
|
|
YTREE_LDFLAGS += `$(PKG_CONFIG_HOST_BINARY) --libs readline`
|
2019-09-04 23:21:17 +02:00
|
|
|
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))
|