use PKG_UNPACK instead of overriding Build/Prepare, pass target optimization flags...
[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 DESCRIPTION:=Mail client for the text console
30 URL:=http://www.mutt.org
31 endef
32
33 define Build/Configure
34 $(call Build/Configure/Default, \
35 --includedir=$(PKG_BUILD_DIR)/. \
36 --oldincludedir=$(PKG_BUILD_DIR)/. \
37 --enable-pop \
38 --enable-imap \
39 --with-ssl \
40 )
41 endef
42
43 define Package/mutt/install
44 mkdir -p $(1)/usr/bin
45 $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(1)/usr/bin/
46 endef
47
48 $(eval $(call BuildPackage,mutt))