xref: /OK3568_Linux_fs/buildroot/package/ytree/ytree.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# ytree
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunYTREE_VERSION = 2.03
8*4882a593SmuzhiyunYTREE_SITE = https://www.han.de/~werner
9*4882a593SmuzhiyunYTREE_LICENSE = GPL-2.0+
10*4882a593SmuzhiyunYTREE_LICENSE_FILES = COPYING
11*4882a593SmuzhiyunYTREE_DEPENDENCIES = ncurses
12*4882a593Smuzhiyun
13*4882a593SmuzhiyunYTREE_CFLAGS = -DCOLOR_SUPPORT $(TARGET_CFLAGS)
14*4882a593SmuzhiyunYTREE_LDFLAGS = -lncurses $(TARGET_LDFLAGS)
15*4882a593Smuzhiyun
16*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_READLINE),y)
17*4882a593SmuzhiyunYTREE_DEPENDENCIES += host-pkgconf readline
18*4882a593SmuzhiyunYTREE_CFLAGS += -DREADLINE_SUPPORT
19*4882a593SmuzhiyunYTREE_LDFLAGS += `$(PKG_CONFIG_HOST_BINARY) --libs readline`
20*4882a593Smuzhiyunendif
21*4882a593Smuzhiyun
22*4882a593Smuzhiyundefine YTREE_BUILD_CMDS
23*4882a593Smuzhiyun	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) \
24*4882a593Smuzhiyun		CFLAGS="$(YTREE_CFLAGS)" LDFLAGS="$(YTREE_LDFLAGS)"
25*4882a593Smuzhiyunendef
26*4882a593Smuzhiyun
27*4882a593Smuzhiyundefine YTREE_INSTALL_TARGET_CMDS
28*4882a593Smuzhiyun	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR="$(TARGET_DIR)/usr" install
29*4882a593Smuzhiyunendef
30*4882a593Smuzhiyun
31*4882a593Smuzhiyun$(eval $(generic-package))
32