python: fix disabling the SSL module
[buildroot-gz.git] / package / linenoise / linenoise.mk
blob64a7b7c8dc547efff90c7f8f168f9b7c8d3fb38d
1 ################################################################################
3 # linenoise
5 ################################################################################
7 LINENOISE_VERSION = 1.0
8 LINENOISE_SITE = $(call github,antirez,linenoise,$(LINENOISE_VERSION))
9 LINENOISE_LICENSE = BSD-2c
10 LINENOISE_LICENSE_FILES = LICENSE
11 LINENOISE_INSTALL_STAGING = YES
12 # Static library only, nothing to install on target
13 LINENOISE_INSTALL_TARGET = NO
15 define LINENOISE_BUILD_CMDS
16 cd $(@D); $(TARGET_CC) $(TARGET_CFLAGS) -c linenoise.c
17 cd $(@D); $(TARGET_AR) rcu liblinenoise.a linenoise.o
18 cd $(@D); $(TARGET_CC) $(TARGET_LDFLAGS) -o linenoise_example example.c -L. -llinenoise
19 endef
21 define LINENOISE_INSTALL_STAGING_CMDS
22 $(INSTALL) -m 644 -D $(@D)/linenoise.h $(STAGING_DIR)/usr/include/linenoise.h
23 $(INSTALL) -m 644 -D $(@D)/liblinenoise.a $(STAGING_DIR)/usr/lib/liblinenoise.a
24 $(INSTALL) -m 755 -D $(@D)/linenoise_example $(STAGING_DIR)/usr/bin/linenoise_example
25 endef
27 $(eval $(generic-package))