35e8b1fd63
The last (and only) release was made 7 years ago and there are 23 newer commits since then. This bumps linenoise to the latest commit in the git repo, 97d2850af13c ("Use unsigned int instead of uint like rest of code base.") Cc: Quentin Schulz <foss+buildroot@0leil.net> Signed-off-by: Quentin Schulz <quentin.schulz@theobroma-systems.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
31 lines
1.0 KiB
Makefile
31 lines
1.0 KiB
Makefile
################################################################################
|
|
#
|
|
# linenoise
|
|
#
|
|
################################################################################
|
|
|
|
LINENOISE_VERSION = 97d2850af13c339369093b78abe5265845d78220
|
|
LINENOISE_SITE = $(call github,antirez,linenoise,$(LINENOISE_VERSION))
|
|
LINENOISE_LICENSE = BSD-2-Clause
|
|
LINENOISE_LICENSE_FILES = LICENSE
|
|
LINENOISE_INSTALL_STAGING = YES
|
|
# Static library only, nothing to install on target
|
|
LINENOISE_INSTALL_TARGET = NO
|
|
|
|
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))
|