kumquat-buildroot/package/less/less.mk

59 lines
1.5 KiB
Makefile
Raw Normal View History

2003-11-12 23:43:51 +01:00
#############################################################
#
# less
#
#############################################################
LESS_VERSION:=382
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):
$(WGET) -P $(DL_DIR) $(LESS_SITE)/$(LESS_SOURCE)
$(LESS_DIR)/.source: $(DL_DIR)/$(LESS_SOURCE)
zcat $(DL_DIR)/$(LESS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
2003-11-12 23:43:51 +01:00
touch $(LESS_DIR)/.source
$(LESS_DIR)/.configured: $(LESS_DIR)/.source
(cd $(LESS_DIR); \
$(TARGET_CONFIGURE_OPTS) \
CFLAGS="$(TARGET_CFLAGS)" \
2003-11-12 23:43:51 +01:00
./configure \
--target=$(GNU_TARGET_NAME) \
--host=$(GNU_TARGET_NAME) \
--build=$(GNU_HOST_NAME) \
--prefix=/usr \
--sysconfdir=/etc \
);
touch $(LESS_DIR)/.configured;
$(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
rm -Rf $(TARGET_DIR)/usr/man
2004-10-27 18:46:16 +02:00
less: uclibc 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)
#############################################################
#
# Toplevel Makefile options
#
#############################################################
ifeq ($(strip $(BR2_PACKAGE_LESS)),y)
TARGETS+=less
endif