updatedd:
[openwrt/svn-archive/archive.git] / net / xmail / Makefile
1 #
2 # Copyright (C) 2007 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=xmail
12 PKG_VERSION:=1.24
13 PKG_RELEASE:=1
14
15 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
16 PKG_SOURCE_URL:=http://www.xmailserver.org/
17 PKG_MD5SUM:=106730bdbaa4fda9e90a7c22df024114
18 PKG_CAT:=zcat
19
20 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/xmail
26 SECTION:=net
27 CATEGORY:=Network
28 DEPENDS:=+uclibcxx +libopenssl
29 TITLE:=advanced, fast and reliable ESMTP/POP3 mail server
30 DESCRIPTION:=\
31 XMail is an Internet mail server featuring an SMTP, POP3 and finger server. \\\
32 It's incredibly easy to set up and has lots of features including : \\\
33 multiple domains, virtual users and spam protection.
34 URL:=http://www.xmailserver.org/
35 endef
36
37 define Build/Configure
38 $(CP) ./files/SysMachine.h $(PKG_BUILD_DIR)/
39 endef
40
41 define Build/Compile
42 $(MAKE) -C $(PKG_BUILD_DIR) -f Makefile.lnx \
43 $(TARGET_CONFIGURE_OPTS) \
44 LDFLAGS="$(EXTRA_LDFLAGS) -luClibc++ -lssl -lm -lpthread -lcrypto -ldl" \
45 WITH_SSL_INCLUDE="$(STAGING_DIR)/usr/include" \
46 WITH_SSL_LIB="$(STAGING_DIR)/usr/lib" \
47 CPPFLAGS="$(TARGET_CFLAGS)" \
48 CXX="$(TARGET_CROSS)g++"
49 endef
50
51 define Package/xmail/install
52 $(INSTALL_DIR) $(1)/usr/bin/
53 $(INSTALL_BIN) $(PKG_BUILD_DIR)/bin/* $(1)/usr/bin/
54 $(INSTALL_DIR) $(1)/var/MailRoot/
55 $(CP) $(PKG_BUILD_DIR)/MailRoot $(1)/var/
56 endef
57
58 $(eval $(call BuildPackage,xmail))