nbd e296673ba6 packages: Use $(CP) instead of $(INSTALL_BIN) for binaries.
Signed-off-by: Andy Boyett <agb-openwrt@padded-cell.net>


git-svn-id: svn://svn.openwrt.org/openwrt/packages@9695 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-12-09 18:59:01 +00:00

58 lines
1.2 KiB
Makefile

#
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id$
include $(TOPDIR)/rules.mk
PKG_NAME:=fetchmail
PKG_VERSION:=6.2.5
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=http://www.catb.org/~esr/fetchmail/
PKG_MD5SUM:=9956b30139edaa4f5f77c4d0dbd80225
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
include $(INCLUDE_DIR)/package.mk
define Package/fetchmail
SECTION:=utils
CATEGORY:=Utilities
TITLE:=Remote mail retriever
URL:=http://www.catb.org/~esr/fetchmail/
SUBMENU:=mail
endef
define Package/fetchmail/description
Retrieves remote mail via POP/IMAP.
Very useful in conjunction with mutt.
endef
define Build/Configure
$(call Build/Configure/Default, \
--enable-fallback=procmail \
--without-hesiod \
, \
ac_cv_path_procmail=/usr/sbin/procmail \
)
endef
define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
DESTDIR="$(PKG_INSTALL_DIR)" \
all install
endef
define Package/fetchmail/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/fetchmail $(1)/usr/bin/
endef
$(eval $(call BuildPackage,fetchmail))