# mutt
#
#############################################################
-MUTT_VERSION:=1.5.16
+MUTT_VERSION:=1.5.17+20080114
MUTT_SOURCE:=mutt_$(MUTT_VERSION).orig.tar.gz
-MUTT_PATCH:=mutt_$(MUTT_VERSION)-3.diff.gz
+MUTT_PATCH:=mutt_$(MUTT_VERSION)-1.diff.gz
MUTT_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/m/mutt/
MUTT_DIR:=$(BUILD_DIR)/mutt-$(MUTT_VERSION)
MUTT_CAT:=$(ZCAT)
$(DL_DIR)/$(MUTT_PATCH):
$(WGET) -P $(DL_DIR) $(MUTT_SITE)/$(MUTT_PATCH)
-mutt-source: $(DL_DIR)/$(MUTT_SOURCE) $(DL_DIR)/$(MUTT_PATCH)
-
$(MUTT_DIR)/.unpacked: $(DL_DIR)/$(MUTT_SOURCE) $(DL_DIR)/$(MUTT_PATCH)
$(MUTT_CAT) $(DL_DIR)/$(MUTT_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
- toolchain/patch-kernel.sh $(MUTT_DIR) package/mutt/ mutt\*.patch
+ toolchain/patch-kernel.sh $(MUTT_DIR) package/mutt/ mutt-$(MUTT_VERSION)\*.patch
ifneq ($(MUTT_PATCH),)
(cd $(MUTT_DIR) && $(MUTT_CAT) $(DL_DIR)/$(MUTT_PATCH) | patch -p1)
if [ -d $(MUTT_DIR)/debian/patches ]; then \
cp -dpf $(MUTT_DIR)/$(MUTT_BINARY) $@
$(STRIPCMD) $(STRIP_STRIP_ALL) $@
+mutt-source: $(DL_DIR)/$(MUTT_SOURCE) $(DL_DIR)/$(MUTT_PATCH)
+
+mutt-unpacked: $(MUTT_DIR)/.unpacked
+
mutt: uclibc ncurses $(TARGET_DIR)/$(MUTT_TARGET_BINARY)
mutt-clean: