Port mutt to -ng
authorFlorian Fainelli <florian@openwrt.org>
Sun, 6 Aug 2006 10:06:28 +0000 (10:06 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Sun, 6 Aug 2006 10:06:28 +0000 (10:06 +0000)
SVN-Revision: 4473

utils/mutt/Makefile [new file with mode: 0644]

diff --git a/utils/mutt/Makefile b/utils/mutt/Makefile
new file mode 100644 (file)
index 0000000..11494de
--- /dev/null
@@ -0,0 +1,54 @@
+#
+# Copyright (C) 2006 OpenWrt.org
+#
+# This is free software, licensed under the GNU General Public License v2.
+# See /LICENSE for more information.
+#
+# $Id$
+
+include $(TOPDIR)/rules.mk
+
+PKG_NAME:=mutt
+PKG_VERSION:=1.5.11
+PKG_RELEASE:=1
+
+PKG_SOURCE_URL:=@SF/mutt
+PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
+PKG_MD5SUM:=00e6f8f7c37d4840e5e30583ebee21ce
+PKG_CAT:=zcat
+
+PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
+
+include $(INCLUDE_DIR)/package.mk
+
+define Package/mutt
+  SECTION:=utils
+  CATEGORY:=Utilities
+  DEPENDS:=+libopenssl +libncurses
+  TITLE:=console mail client
+  DESCRIPTION:=Mail client for the text console
+  URL:=http://www.mutt.org
+endef
+
+define Build/Configure
+$(call Build/Configure/Default,--includedir=$(PKG_BUILD_DIR)/. \
+               --oldincludedir=$(PKG_BUILD_DIR)/. \
+               --enable-pop \
+               --enable-imap \
+               --with-ssl,ac_cv_c_bigendian=no \
+               ac_cv_sizeof_off_t=8 \
+               ac_cv_sizeof_int=4 \
+               ac_cv_sizeof_long=4)
+endef
+
+define Build/Compile   
+       $(MAKE) -C $(PKG_BUILD_DIR) \
+               CC=$(TARGET_CC)
+endef
+
+define Package/mutt/install
+       mkdir -p $(1)/usr/bin
+       $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/
+endef
+
+$(eval $(call BuildPackage,mutt))