300f9c9c9d
Thanks to the pkgparentdir and pkgname functions, we can rewrite the AUTOTARGETS macro in a way that avoids the need for each package to repeat its name and the directory in which it is present. [Peter: pkgdir->pkgparentdir] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
22 lines
524 B
Makefile
22 lines
524 B
Makefile
#############################################################
|
|
#
|
|
# nano
|
|
#
|
|
#############################################################
|
|
|
|
NANO_VERSION = 2.2.6
|
|
NANO_SITE = http://www.nano-editor.org/dist/v2.2
|
|
NANO_MAKE_ENV = CURSES_LIB="-lncurses"
|
|
NANO_CONF_OPT = --without-slang --enable-tiny
|
|
NANO_DEPENDENCIES = ncurses
|
|
|
|
define NANO_INSTALL_TARGET_CMDS
|
|
$(INSTALL) -m 0755 $(@D)/src/nano $(TARGET_DIR)/usr/bin/nano
|
|
endef
|
|
|
|
define NANO_UNINSTALL_TARGET_CMDS
|
|
rm -f $(TARGET_DIR)/usr/bin/nano
|
|
endef
|
|
|
|
$(eval $(call AUTOTARGETS))
|