kumquat-buildroot/package/ytree/ytree.mk
Fabrice Fontaine b1c90467d8 package/ytree: fix static build with readline
Fixes:
 - http://autobuild.buildroot.org/results/b1a1392636467f8c07504fa6cfb17962764820ae

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Reviewed-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2019-10-07 23:19:14 +02:00

32 lines
885 B
Makefile

################################################################################
#
# ytree
#
################################################################################
YTREE_VERSION = 1.99pl2
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 += host-pkgconf readline
YTREE_CFLAGS += -DREADLINE_SUPPORT
YTREE_LDFLAGS += `$(PKG_CONFIG_HOST_BINARY) --libs readline`
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))