8528b36390f496512e7df16fe473a929f7fbb30f
[openwrt/svn-archive/archive.git] / utils / mutt / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=mutt
12 PKG_VERSION:=1.5.11
13 PKG_RELEASE:=1
14
15 PKG_SOURCE_URL:=@SF/mutt
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_MD5SUM:=00e6f8f7c37d4840e5e30583ebee21ce
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/mutt
25 SECTION:=utils
26 CATEGORY:=Utilities
27 DEPENDS:=+libopenssl +libncurses
28 TITLE:=Console mail client
29 URL:=http://www.mutt.org/
30 endef
31
32 define Build/Configure
33 $(call Build/Configure/Default, \
34 --includedir=$(PKG_BUILD_DIR)/. \
35 --oldincludedir=$(PKG_BUILD_DIR)/. \
36 --enable-pop \
37 --enable-imap \
38 --with-ssl \
39 )
40 endef
41
42 define Build/Compile
43 $(MAKE) -C $(PKG_BUILD_DIR)
44 endef
45
46 define Package/mutt/install
47 $(INSTALL_DIR) $(1)/usr/bin
48 $(CP) $(PKG_BUILD_DIR)/mutt $(1)/usr/bin/
49 endef
50
51 $(eval $(call BuildPackage,mutt))