efe9ec67cf84f7c8a60df911ef1f7472f5f66d71
[openwrt/svn-archive/archive.git] / utils / procmail / 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:=procmail
12 PKG_VERSION:=3.22
13 PKG_RELEASE:=1
14
15 PKG_SOURCE_URL:=http://www.procmail.org/
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
17 PKG_MD5SUM:=1678ea99b973eb77eda4ecf6acae53f1
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/procmail
25 SECTION:=utils
26 CATEGORY:=Utilities
27 TITLE:=mail processing tool
28 DESCRIPTION:=Procmail is able to process and classify incoming mail into\\\
29 different mail boxes.\\\
30 Very useful in conjunction with mutt.\\\
31 URL:=http://www.procmail.org
32 endef
33
34 define Build/Compile
35 $(MAKE) -C $(PKG_BUILD_DIR)/src -f ../Makefile.openwrt \
36 CC=$(TARGET_CC)
37 endef
38
39 define Package/procmail/install
40 mkdir -p $(1)/usr/bin
41 $(CP) $(PKG_BUILD_DIR)/src/procmail $(1)/usr/bin/
42 $(CP) $(PKG_BUILD_DIR)/src/formail $(1)/usr/bin/
43 endef
44
45 $(eval $(call BuildPackage,procmail))