2003-11-12 23:43:51 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# less
|
|
|
|
#
|
|
|
|
#############################################################
|
2006-04-15 04:27:23 +02:00
|
|
|
LESS_VERSION:=394
|
2004-10-08 21:24:54 +02:00
|
|
|
LESS_SOURCE:=less-$(LESS_VERSION).tar.gz
|
|
|
|
LESS_SITE:=http://www.greenwoodsoftware.com/less
|
|
|
|
LESS_DIR:=$(BUILD_DIR)/less-$(LESS_VERSION)
|
|
|
|
LESS_BINARY:=less
|
|
|
|
LESS_TARGET_BINARY:=usr/bin/less
|
2003-11-12 23:43:51 +01:00
|
|
|
|
|
|
|
$(DL_DIR)/$(LESS_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(LESS_SITE),$(LESS_SOURCE))
|
2003-11-12 23:43:51 +01:00
|
|
|
|
|
|
|
$(LESS_DIR)/.source: $(DL_DIR)/$(LESS_SOURCE)
|
2006-10-01 17:17:52 +02:00
|
|
|
$(ZCAT) $(DL_DIR)/$(LESS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2007-09-17 14:30:31 +02:00
|
|
|
touch $@
|
2003-11-12 23:43:51 +01:00
|
|
|
|
|
|
|
$(LESS_DIR)/.configured: $(LESS_DIR)/.source
|
2007-09-25 14:34:09 +02:00
|
|
|
(cd $(LESS_DIR); rm -f config.cache; \
|
2003-11-12 23:43:51 +01:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-06-27 14:01:27 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2009-10-01 21:24:42 +02:00
|
|
|
./configure $(QUIET) \
|
2003-11-12 23:43:51 +01:00
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--prefix=/usr \
|
|
|
|
--sysconfdir=/etc \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
2007-09-17 14:30:31 +02:00
|
|
|
touch $@
|
2003-11-12 23:43:51 +01:00
|
|
|
|
|
|
|
$(LESS_DIR)/$(LESS_BINARY): $(LESS_DIR)/.configured
|
|
|
|
$(MAKE) CC=$(TARGET_CC) -C $(LESS_DIR)
|
|
|
|
|
|
|
|
$(TARGET_DIR)/$(LESS_TARGET_BINARY): $(LESS_DIR)/$(LESS_BINARY)
|
|
|
|
$(MAKE) prefix=$(TARGET_DIR)/usr -C $(LESS_DIR) install
|
2007-09-17 14:30:31 +02:00
|
|
|
ifneq ($(BR2_HAVE_MANPAGES),y)
|
2003-11-12 23:43:51 +01:00
|
|
|
rm -Rf $(TARGET_DIR)/usr/man
|
2007-09-17 14:30:31 +02:00
|
|
|
endif
|
2003-11-12 23:43:51 +01:00
|
|
|
|
2009-09-02 17:02:02 +02:00
|
|
|
less: ncurses $(TARGET_DIR)/$(LESS_TARGET_BINARY)
|
2003-11-12 23:43:51 +01:00
|
|
|
|
|
|
|
less-source: $(DL_DIR)/$(LESS_SOURCE)
|
|
|
|
|
|
|
|
less-clean:
|
|
|
|
$(MAKE) prefix=$(TARGET_DIR)/usr -C $(LESS_DIR) uninstall
|
|
|
|
-$(MAKE) -C $(LESS_DIR) clean
|
|
|
|
|
|
|
|
less-dirclean:
|
|
|
|
rm -rf $(LESS_DIR)
|
|
|
|
|
2005-02-10 04:06:39 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LESS),y)
|
2005-02-10 04:06:39 +01:00
|
|
|
TARGETS+=less
|
|
|
|
endif
|