diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2010-04-13 21:50:46 +0200 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2010-04-13 21:50:46 +0200 |
commit | b827af3bb41afcf34ac3f6d667e46d902b4731d8 (patch) | |
tree | 65b343da905832dd85940bca98b03f981e9cf6fe /package/smartmontools/smartmontools.mk | |
parent | 9554403ad0b81f29dd4ee1404de755aa5b72cac5 (diff) | |
parent | 157526cb051ef24de552082c3444bde1a81a40e4 (diff) |
Merge branch 'autotools-conversion' of git://git.busybox.net/~tpetazzoni/git/buildroot
Diffstat (limited to 'package/smartmontools/smartmontools.mk')
-rw-r--r-- | package/smartmontools/smartmontools.mk | 69 |
1 files changed, 1 insertions, 68 deletions
diff --git a/package/smartmontools/smartmontools.mk b/package/smartmontools/smartmontools.mk index fde76b069..d768b346a 100644 --- a/package/smartmontools/smartmontools.mk +++ b/package/smartmontools/smartmontools.mk @@ -7,72 +7,5 @@ SMARTMONTOOLS_VERSION:=5.33 SMARTMONTOOLS_SOURCE:=smartmontools-$(SMARTMONTOOLS_VERSION).tar.gz SMARTMONTOOLS_SITE:=http://$(BR2_SOURCEFORGE_MIRROR).dl.sourceforge.net/sourceforge/smartmontools SMARTMONTOOLS_DIR:=$(BUILD_DIR)/smartmontools-$(SMARTMONTOOLS_VERSION) -SMARTMONTOOLS_CAT:=$(ZCAT) -SMARTMONTOOLS_BINARY:=smartctl -SMARTMONTOOLS_BINARY2:=smartd -SMARTMONTOOLS_TARGET_BINARY:=usr/sbin/smartctl -SMARTMONTOOLS_TARGET_BINARY2:=usr/sbin/smartd -$(DL_DIR)/$(SMARTMONTOOLS_SOURCE): - $(call DOWNLOAD,$(SMARTMONTOOLS_SITE),$(SMARTMONTOOLS_SOURCE)) - -smartmontools-source: $(DL_DIR)/$(SMARTMONTOOLS_SOURCE) - -$(SMARTMONTOOLS_DIR)/.unpacked: $(DL_DIR)/$(SMARTMONTOOLS_SOURCE) - $(SMARTMONTOOLS_CAT) $(DL_DIR)/$(SMARTMONTOOLS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - - toolchain/patch-kernel.sh $(SMARTMONTOOLS_DIR) package/smartmontools/ \*.patch - touch $(SMARTMONTOOLS_DIR)/.unpacked - -$(SMARTMONTOOLS_DIR)/.configured: $(SMARTMONTOOLS_DIR)/.unpacked - (cd $(SMARTMONTOOLS_DIR); rm -rf config.cache; \ - $(TARGET_CONFIGURE_OPTS) \ - $(TARGET_CONFIGURE_ARGS) \ - ./configure $(QUIET) \ - --target=$(GNU_TARGET_NAME) \ - --host=$(GNU_TARGET_NAME) \ - --build=$(GNU_HOST_NAME) \ - --prefix=/usr \ - --exec-prefix=/usr \ - --bindir=/usr/bin \ - --sbindir=/usr/sbin \ - --libdir=/lib \ - --libexecdir=/usr/lib \ - --sysconfdir=/etc \ - --datadir=/usr/share \ - --localstatedir=/var \ - --mandir=/usr/man \ - --infodir=/usr/info \ - $(DISABLE_NLS) \ - $(DISABLE_LARGEFILE) \ - ) - touch $(SMARTMONTOOLS_DIR)/.configured - -$(SMARTMONTOOLS_DIR)/$(SMARTMONTOOLS_BINARY): $(SMARTMONTOOLS_DIR)/.configured - $(MAKE) -C $(SMARTMONTOOLS_DIR) - $(STRIPCMD) $(SMARTMONTOOLS_DIR)/$(SMARTMONTOOLS_BINARY) - $(STRIPCMD) $(SMARTMONTOOLS_DIR)/$(SMARTMONTOOLS_BINARY2) - touch -c $(SMARTMONTOOLS_DIR)/$(SMARTMONTOOLS_BINARY) - -$(TARGET_DIR)/$(SMARTMONTOOLS_TARGET_BINARY): $(SMARTMONTOOLS_DIR)/$(SMARTMONTOOLS_BINARY) - cp $(SMARTMONTOOLS_DIR)/$(SMARTMONTOOLS_BINARY) $(TARGET_DIR)/usr/sbin/ - -$(TARGET_DIR)/$(SMARTMONTOOLS_TARGET_BINARY2): $(SMARTMONTOOLS_DIR)/$(SMARTMONTOOLS_BINARY) - cp $(SMARTMONTOOLS_DIR)/$(SMARTMONTOOLS_BINARY2) $(TARGET_DIR)/usr/sbin/ - -smartmontools: $(TARGET_DIR)/$(SMARTMONTOOLS_TARGET_BINARY) - -smartmontools-clean: - $(MAKE) DESTDIR=$(TARGET_DIR) -C $(SMARTMONTOOLS_DIR) uninstall - -$(MAKE) -C $(SMARTMONTOOLS_DIR) clean - -smartmontools-dirclean: - rm -rf $(SMARTMONTOOLS_DIR) - -############################################################# -# -# Toplevel Makefile options -# -############################################################# -ifeq ($(BR2_PACKAGE_SMARTMONTOOLS),y) -TARGETS+=smartmontools -endif +$(eval $(call AUTOTARGETS,package,smartmontools)) |