d634394df66b9b8c7081fcc89701ce394f012db7
[openwrt/svn-archive/archive.git] / net / prosody / Makefile
1 #
2 # Copyright (C) 2009 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:=prosody
12 PKG_VERSION:=0.3.0
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=http://prosody.im/downloads/source/
17 PKG_MD5SUM:=97b19d75b3d6770fb9b46b6452f945dd
18
19 include $(INCLUDE_DIR)/package.mk
20
21 define Package/prosody
22 SECTION:=net
23 CATEGORY:=Network
24 DEPENDS:=+liblua +libidn +luasocket +luaexpat +luasec
25 TITLE:=XMPP server
26 URL:=http://prosody.im
27 endef
28
29 define Package/prosody/description
30 Prosody is an exciting new server for Jabber/XMPP
31 written in Lua. It aims to be easy to use, and light
32 on resources
33 endef
34
35 define Package/prosody/conffiles
36 /etc/prosody/prosody.cfg.lua
37 endef
38
39 define Build/Configure
40 (cd $(PKG_BUILD_DIR); ./configure \
41 --prefix=/usr \
42 --with-lua="$(STAGING_DIR)/host/bin" \
43 --with-lua-include="$(STAGING_DIR)/usr/include/" \
44 --with-lua-lib="$(STAGING_DIR)/usr/lib" \
45 --cflags="$(TARGET_CFLAGS)" \
46 )
47 endef
48
49 define Build/Compile
50 $(call Build/Compile/Default,\
51 CFLAGS="$(TARGET_CFLAGS) -I$(STAGING_DIR)/include" \
52 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
53 DESTDIR="$(PKG_INSTALL_DIR)" \
54 PREFIX="/usr" \
55 all install \
56 )
57 endef
58
59 define Package/prosody/install
60 $(INSTALL_DIR) $(1)/
61 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
62 endef
63
64 $(eval $(call BuildPackage,prosody))