xref: /OK3568_Linux_fs/buildroot/package/nano/nano.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# nano
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunNANO_VERSION_MAJOR = 5
8*4882a593SmuzhiyunNANO_VERSION = $(NANO_VERSION_MAJOR).9
9*4882a593SmuzhiyunNANO_SITE = https://www.nano-editor.org/dist/v$(NANO_VERSION_MAJOR)
10*4882a593SmuzhiyunNANO_SOURCE = nano-$(NANO_VERSION).tar.xz
11*4882a593SmuzhiyunNANO_LICENSE = GPL-3.0+
12*4882a593SmuzhiyunNANO_LICENSE_FILES = COPYING
13*4882a593SmuzhiyunNANO_DEPENDENCIES = ncurses
14*4882a593Smuzhiyun
15*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_NCURSES_WCHAR),y)
16*4882a593SmuzhiyunNANO_CONF_ENV += ac_cv_prog_NCURSESW_CONFIG=$(STAGING_DIR)/usr/bin/$(NCURSES_CONFIG_SCRIPTS)
17*4882a593Smuzhiyunelse
18*4882a593SmuzhiyunNANO_CONF_ENV += ac_cv_prog_NCURSESW_CONFIG=false
19*4882a593SmuzhiyunNANO_MAKE_ENV += CURSES_LIB="-lncurses"
20*4882a593Smuzhiyunendif
21*4882a593Smuzhiyun
22*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_NANO_TINY),y)
23*4882a593SmuzhiyunNANO_CONF_OPTS += \
24*4882a593Smuzhiyun	--enable-tiny \
25*4882a593Smuzhiyun	--disable-libmagic \
26*4882a593Smuzhiyun	--disable-color \
27*4882a593Smuzhiyun	--disable-nanorc
28*4882a593Smuzhiyundefine NANO_INSTALL_TARGET_CMDS
29*4882a593Smuzhiyun	$(INSTALL) -m 0755 $(@D)/src/nano $(TARGET_DIR)/usr/bin/nano
30*4882a593Smuzhiyunendef
31*4882a593Smuzhiyunelse
32*4882a593SmuzhiyunNANO_CONF_OPTS += --disable-tiny
33*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_FILE),y)
34*4882a593SmuzhiyunNANO_DEPENDENCIES += file
35*4882a593SmuzhiyunNANO_CONF_OPTS += --enable-libmagic --enable-color --enable-nanorc
36*4882a593Smuzhiyunelse
37*4882a593SmuzhiyunNANO_CONF_OPTS += --disable-libmagic --disable-libmagic --disable-color
38*4882a593Smuzhiyunendif # BR2_PACKAGE_FILE
39*4882a593Smuzhiyunendif # BR2_PACKAGE_NANO_TINY
40*4882a593Smuzhiyun
41*4882a593Smuzhiyun$(eval $(autotools-package))
42