procmail: pass openwrt cflags to the makefile
[openwrt/svn-archive/packages.git] / mail / procmail / Makefile
1 #
2 # Copyright (C) 2006-2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=procmail
11 PKG_VERSION:=3.22
12 PKG_RELEASE:=1
13
14 PKG_SOURCE_URL:=http://www.procmail.org/
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_MD5SUM:=1678ea99b973eb77eda4ecf6acae53f1
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/procmail
21 SECTION:=mail
22 CATEGORY:=Mail
23 TITLE:=Mail processing tool
24 URL:=http://www.procmail.org
25 endef
26
27 define Package/procmail/description
28 Procmail is able to process and classify incoming mail into
29 different mail boxes.
30 Very useful in conjunction with mutt.
31 endef
32
33 TARGET_CFLAGS += -DPROCMAIL
34
35 define Build/Compile
36 $(MAKE) -C $(PKG_BUILD_DIR)/src -f ../Makefile.openwrt \
37 $(TARGET_CONFIGURE_OPTS) \
38 CFLAGS="$(TARGET_CFLAGS)"
39 endef
40
41 define Package/procmail/install
42 $(INSTALL_DIR) $(1)/usr/bin
43 $(CP) $(PKG_BUILD_DIR)/src/procmail $(1)/usr/bin/
44 $(CP) $(PKG_BUILD_DIR)/src/formail $(1)/usr/bin/
45 endef
46
47 $(eval $(call BuildPackage,procmail))