let ipkg fail when a package file to be installed is not found
[openwrt/svn-archive/archive.git] / openwrt / package / procmail / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=procmail
6 PKG_VERSION:=3.22
7 PKG_RELEASE:=1
8
9 PKG_SOURCE_URL:=http://www.procmail.org/
10 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
11 PKG_MD5SUM:=1678ea99b973eb77eda4ecf6acae53f1
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15
16 include $(TOPDIR)/package/rules.mk
17
18 $(eval $(call PKG_template,PROCMAIL,procmail,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
19
20 $(PKG_BUILD_DIR)/.built:
21 $(MAKE) -C $(PKG_BUILD_DIR)/src -f ../Makefile.openwrt \
22 CC=$(TARGET_CC)
23
24 touch $@
25
26 $(IPKG_PROCMAIL):
27 mkdir -p $(IDIR_PROCMAIL)/usr/bin
28 $(CP) $(PKG_BUILD_DIR)/src/procmail $(IDIR_PROCMAIL)/usr/bin/
29 $(CP) $(PKG_BUILD_DIR)/src/formail $(IDIR_PROCMAIL)/usr/bin/
30 $(RSTRIP) $(IDIR_PROCMAIL)
31 $(IPKG_BUILD) $(IDIR_PROCMAIL) $(PACKAGE_DIR)