2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-12-05 09:06:51 +01:00
|
|
|
#
|
|
|
|
# linenoise
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-06-06 01:53:25 +02:00
|
|
|
|
2015-06-02 18:32:56 +02:00
|
|
|
LINENOISE_VERSION = 1.0
|
2013-12-05 18:20:46 +01:00
|
|
|
LINENOISE_SITE = $(call github,antirez,linenoise,$(LINENOISE_VERSION))
|
2017-03-30 15:43:39 +02:00
|
|
|
LINENOISE_LICENSE = BSD-2-Clause
|
2014-10-26 19:45:23 +01:00
|
|
|
LINENOISE_LICENSE_FILES = LICENSE
|
2012-12-05 09:06:51 +01:00
|
|
|
LINENOISE_INSTALL_STAGING = YES
|
2014-09-09 20:15:43 +02:00
|
|
|
# Static library only, nothing to install on target
|
|
|
|
LINENOISE_INSTALL_TARGET = NO
|
2012-12-05 09:06:51 +01:00
|
|
|
|
|
|
|
define LINENOISE_BUILD_CMDS
|
|
|
|
cd $(@D); $(TARGET_CC) $(TARGET_CFLAGS) -c linenoise.c
|
|
|
|
cd $(@D); $(TARGET_AR) rcu liblinenoise.a linenoise.o
|
|
|
|
cd $(@D); $(TARGET_CC) $(TARGET_LDFLAGS) -o linenoise_example example.c -L. -llinenoise
|
|
|
|
endef
|
|
|
|
|
|
|
|
define LINENOISE_INSTALL_STAGING_CMDS
|
|
|
|
$(INSTALL) -m 644 -D $(@D)/linenoise.h $(STAGING_DIR)/usr/include/linenoise.h
|
|
|
|
$(INSTALL) -m 644 -D $(@D)/liblinenoise.a $(STAGING_DIR)/usr/lib/liblinenoise.a
|
|
|
|
$(INSTALL) -m 755 -D $(@D)/linenoise_example $(STAGING_DIR)/usr/bin/linenoise_example
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(generic-package))
|