summaryrefslogtreecommitdiff
path: root/package/dialog
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2010-06-25 12:18:30 +0200
committerPeter Korsgaard <jacmet@sunsite.dk>2010-06-25 12:18:30 +0200
commita2a22b82fa23dda5c89925bf59e04ad725ffecd2 (patch)
treec3f47eff90d9fdb9a23c11f11bc54a6c3cf6f10a /package/dialog
parent6074f08b8d39bcb3ccd5abf77bc262b7b9d739ca (diff)
parent6b92969386a6fce36a0396844769ab3eac463df7 (diff)
Merge branch 'autotools-conversion' of git://git.busybox.net/~tpetazzoni/git/buildroot
Diffstat (limited to 'package/dialog')
-rw-r--r--package/dialog/dialog.mk60
1 files changed, 10 insertions, 50 deletions
diff --git a/package/dialog/dialog.mk b/package/dialog/dialog.mk
index 9c6f2a980..7674861d6 100644
--- a/package/dialog/dialog.mk
+++ b/package/dialog/dialog.mk
@@ -3,59 +3,19 @@
# dialog
#
#############################################################
-DIALOG_VERSION:=1.1-20070704
+DIALOG_VERSION:=1.1-20100428
DIALOG_SOURCE:=dialog-$(DIALOG_VERSION).tgz
DIALOG_SITE:=ftp://invisible-island.net/dialog
-DIALOG_DIR:=$(BUILD_DIR)/dialog-$(DIALOG_VERSION)
-DIALOG_BINARY:=dialog
-DIALOG_TARGET_BINARY:=usr/bin/dialog
-$(DL_DIR)/$(DIALOG_SOURCE):
- $(call DOWNLOAD,$(DIALOG_SITE),$(DIALOG_SOURCE))
+DIALOG_DEPENDENCIES = ncurses
-$(DIALOG_DIR)/.source: $(DL_DIR)/$(DIALOG_SOURCE)
- $(ZCAT) $(DL_DIR)/$(DIALOG_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
- $(CONFIG_UPDATE) $(DIALOG_DIR)
- touch $@
+define DIALOG_INSTALL_TARGET_CMDS
+ install -c $(@D)/dialog $(TARGET_DIR)/usr/bin/dialog
+endef
-$(DIALOG_DIR)/.configured: $(DIALOG_DIR)/.source
- (cd $(DIALOG_DIR); rm -f config.cache; \
- $(TARGET_CONFIGURE_OPTS) \
- $(TARGET_CONFIGURE_ARGS) \
- ./configure $(QUIET) \
- --target=$(GNU_TARGET_NAME) \
- --host=$(GNU_TARGET_NAME) \
- --build=$(GNU_HOST_NAME) \
- --prefix=/usr \
- --sysconfdir=/etc; \
- )
- touch $@
+define DIALOG_POST_CLEAN
+ -$(MAKE) -C $(@D) clean
+ rm -f $(TARGET_DIR)/usr/bin/dialog
+endef
-$(DIALOG_DIR)/$(DIALOG_BINARY): $(DIALOG_DIR)/.configured
- $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(DIALOG_DIR)
- touch -c $@
-
-$(TARGET_DIR)/$(DIALOG_TARGET_BINARY): $(DIALOG_DIR)/$(DIALOG_BINARY)
- $(MAKE) prefix=$(TARGET_DIR)/usr \
- mandir=$(TARGET_DIR)/usr/share/man \
- -C $(DIALOG_DIR) install
-
-dialog: ncurses $(TARGET_DIR)/$(DIALOG_TARGET_BINARY)
-
-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)
-
-#############################################################
-#
-# Toplevel Makefile options
-#
-#############################################################
-ifeq ($(BR2_PACKAGE_DIALOG),y)
-TARGETS+=dialog
-endif
+$(eval $(call AUTOTARGETS,package,dialog))