2006-01-23 19:27:46 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# dialog
|
|
|
|
#
|
|
|
|
#############################################################
|
2007-08-13 02:12:49 +02:00
|
|
|
DIALOG_VERSION:=1.1-20070704
|
|
|
|
DIALOG_SOURCE:=dialog-$(DIALOG_VERSION).tgz
|
|
|
|
DIALOG_SITE:=ftp://invisible-island.net/dialog
|
2006-01-23 19:27:46 +01:00
|
|
|
DIALOG_DIR:=$(BUILD_DIR)/dialog-$(DIALOG_VERSION)
|
|
|
|
DIALOG_BINARY:=dialog
|
|
|
|
DIALOG_TARGET_BINARY:=usr/bin/dialog
|
|
|
|
|
|
|
|
$(DL_DIR)/$(DIALOG_SOURCE):
|
2009-01-16 12:42:52 +01:00
|
|
|
$(call DOWNLOAD,$(DIALOG_SITE),$(DIALOG_SOURCE))
|
2006-01-23 19:27:46 +01:00
|
|
|
|
2007-09-23 16:21:39 +02:00
|
|
|
$(DIALOG_DIR)/.source: $(DL_DIR)/$(DIALOG_SOURCE)
|
2006-10-01 17:17:52 +02:00
|
|
|
$(ZCAT) $(DL_DIR)/$(DIALOG_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
2008-02-12 01:35:03 +01:00
|
|
|
$(CONFIG_UPDATE) $(DIALOG_DIR)
|
2007-01-22 09:54:13 +01:00
|
|
|
touch $@
|
2006-01-23 19:27:46 +01:00
|
|
|
|
|
|
|
$(DIALOG_DIR)/.configured: $(DIALOG_DIR)/.source
|
2007-09-25 14:34:09 +02:00
|
|
|
(cd $(DIALOG_DIR); rm -f config.cache; \
|
2006-01-23 19:27:46 +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) \
|
2006-01-23 19:27:46 +01:00
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--prefix=/usr \
|
2007-09-17 14:30:31 +02:00
|
|
|
--sysconfdir=/etc; \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
2007-01-22 09:54:13 +01:00
|
|
|
touch $@
|
2006-01-23 19:27:46 +01:00
|
|
|
|
|
|
|
$(DIALOG_DIR)/$(DIALOG_BINARY): $(DIALOG_DIR)/.configured
|
2007-08-13 02:12:49 +02:00
|
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(DIALOG_DIR)
|
2007-09-23 16:21:39 +02:00
|
|
|
touch -c $@
|
2006-01-23 19:27:46 +01:00
|
|
|
|
|
|
|
$(TARGET_DIR)/$(DIALOG_TARGET_BINARY): $(DIALOG_DIR)/$(DIALOG_BINARY)
|
2007-09-17 14:30:31 +02:00
|
|
|
$(MAKE) prefix=$(TARGET_DIR)/usr \
|
|
|
|
mandir=$(TARGET_DIR)/usr/share/man \
|
|
|
|
-C $(DIALOG_DIR) install
|
|
|
|
ifneq ($(BR2_HAVE_MANPAGES),y)
|
|
|
|
rm -Rf $(TARGET_DIR)/usr/share/man
|
|
|
|
endif
|
2006-01-23 19:27:46 +01:00
|
|
|
|
2009-09-02 17:02:02 +02:00
|
|
|
dialog: ncurses $(TARGET_DIR)/$(DIALOG_TARGET_BINARY)
|
2006-01-23 19:27:46 +01:00
|
|
|
|
|
|
|
dialog-source: $(DL_DIR)/$(DIALOG_SOURCE)
|
|
|
|
|
|
|
|
dialog-clean:
|
|
|
|
$(MAKE) prefix=$(TARGET_DIR)/usr -C $(DIALOG_DIR) uninstall
|
|
|
|
-$(MAKE) -C $(DIALOG_DIR) clean
|
|
|
|
|
|
|
|
dialog-dirclean:
|
|
|
|
rm -rf $(DIALOG_DIR)
|
|
|
|
|
2006-12-22 14:38:04 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
2008-12-08 09:15:27 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_DIALOG),y)
|
2006-12-22 14:38:04 +01:00
|
|
|
TARGETS+=dialog
|
|
|
|
endif
|