# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.

include ${TOPDIR}/rules.mk

PKG_NAME:=		procmail
PKG_VERSION:=		3.22
PKG_RELEASE:=		1
PKG_MD5SUM:=		1678ea99b973eb77eda4ecf6acae53f1
PKG_DESCR:=		Mail processing tools
PKG_SECTION:=		text
PKG_URL:=		http://www.procmail.org
PKG_SITES:=		http://www.procmail.org/

include ${TOPDIR}/mk/package.mk

$(eval $(call PKG_template,PROCMAIL,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))

CONFIG_STYLE:=          manual
BUILD_STYLE:=           manual
INSTALL_STYLE:=         manual

TCFLAGS+=		-DPROCMAIL

do-build:
	${MAKE} -C ${WRKBUILD}/src -f ../Makefile.new

do-install:
	${INSTALL_DIR} ${IDIR_PROCMAIL}/usr/bin
	${INSTALL_BIN} ${WRKBUILD}/src/procmail ${IDIR_PROCMAIL}/usr/bin/
	${INSTALL_BIN} ${WRKBUILD}/src/formail ${IDIR_PROCMAIL}/usr/bin/

include ${TOPDIR}/mk/pkg-bottom.mk
