2 # Copyright (C) 2006-2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE_URL
:=http
://www.procmail.org
/
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_MD5SUM
:=1678ea99b973eb77eda4ecf6acae53f1
18 include $(INCLUDE_DIR
)/package.mk
20 define Package
/procmail
23 TITLE
:=Mail processing tool
24 URL
:=http
://www.procmail.org
27 define Package
/procmail
/description
28 Procmail is able to process and classify incoming mail into
30 Very useful in conjunction with mutt.
33 TARGET_CFLAGS
+= -DPROCMAIL
36 $(MAKE
) -C
$(PKG_BUILD_DIR
)/src
-f ..
/Makefile.openwrt \
37 $(TARGET_CONFIGURE_OPTS
) \
38 CFLAGS
="$(TARGET_CFLAGS)"
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
/
47 $(eval
$(call BuildPackage
,procmail
))