mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-29 06:06:32 +00:00
dialog : convert to autotools infrastructure & bump to 1.1-20100428
Changes by Thomas Petazzoni <thomas.petazzoni@free-electrons.com> * Installation to target is the default behaviour * No installation to staging is the default behaviour * Stripping is done globally Signed-off-by: cmchao <cmchao@gmail.com>
This commit is contained in:
parent
2406251d70
commit
f97d2871dc
@ -3,59 +3,19 @@
|
|||||||
# dialog
|
# dialog
|
||||||
#
|
#
|
||||||
#############################################################
|
#############################################################
|
||||||
DIALOG_VERSION:=1.1-20070704
|
DIALOG_VERSION:=1.1-20100428
|
||||||
DIALOG_SOURCE:=dialog-$(DIALOG_VERSION).tgz
|
DIALOG_SOURCE:=dialog-$(DIALOG_VERSION).tgz
|
||||||
DIALOG_SITE:=ftp://invisible-island.net/dialog
|
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):
|
DIALOG_DEPENDENCIES = ncurses
|
||||||
$(call DOWNLOAD,$(DIALOG_SITE),$(DIALOG_SOURCE))
|
|
||||||
|
|
||||||
$(DIALOG_DIR)/.source: $(DL_DIR)/$(DIALOG_SOURCE)
|
define DIALOG_INSTALL_TARGET_CMDS
|
||||||
$(ZCAT) $(DL_DIR)/$(DIALOG_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
install -c $(@D)/dialog $(TARGET_DIR)/usr/bin/dialog
|
||||||
$(CONFIG_UPDATE) $(DIALOG_DIR)
|
endef
|
||||||
touch $@
|
|
||||||
|
|
||||||
$(DIALOG_DIR)/.configured: $(DIALOG_DIR)/.source
|
define DIALOG_POST_CLEAN
|
||||||
(cd $(DIALOG_DIR); rm -f config.cache; \
|
-$(MAKE) -C $(@D) clean
|
||||||
$(TARGET_CONFIGURE_OPTS) \
|
rm -f $(TARGET_DIR)/usr/bin/dialog
|
||||||
$(TARGET_CONFIGURE_ARGS) \
|
endef
|
||||||
./configure $(QUIET) \
|
|
||||||
--target=$(GNU_TARGET_NAME) \
|
|
||||||
--host=$(GNU_TARGET_NAME) \
|
|
||||||
--build=$(GNU_HOST_NAME) \
|
|
||||||
--prefix=/usr \
|
|
||||||
--sysconfdir=/etc; \
|
|
||||||
)
|
|
||||||
touch $@
|
|
||||||
|
|
||||||
$(DIALOG_DIR)/$(DIALOG_BINARY): $(DIALOG_DIR)/.configured
|
$(eval $(call AUTOTARGETS,package,dialog))
|
||||||
$(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
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user