2 # Copyright (C) 2009 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=http
://prosody.im
/downloads
/source
/
16 PKG_MD5SUM
:=97b19d75b3d6770fb9b46b6452f945dd
18 include $(INCLUDE_DIR
)/package.mk
20 define Package
/prosody
23 DEPENDS
:=+liblua
+libidn
+luasocket
+luaexpat
+luasec
25 URL
:=http
://prosody.im
28 define Package
/prosody
/description
29 Prosody is an exciting new server for Jabber
/XMPP
30 written in Lua. It aims to be easy to use
, and light
34 define Package
/prosody
/conffiles
35 /etc
/prosody
/prosody.cfg.lua
38 define Build
/Configure
39 (cd
$(PKG_BUILD_DIR
); .
/configure \
41 --with-lua
="$(STAGING_DIR)/host/bin" \
42 --with-lua-include
="$(STAGING_DIR)/usr/include/" \
43 --with-lua-lib
="$(STAGING_DIR)/usr/lib" \
44 --cflags="$(TARGET_CFLAGS)" \
49 $(call Build
/Compile
/Default
,\
50 CFLAGS
="$(TARGET_CFLAGS) -I$(STAGING_DIR)/include" \
51 LDFLAGS
="-L$(STAGING_DIR)/usr/lib" \
52 DESTDIR
="$(PKG_INSTALL_DIR)" \
58 define Package
/prosody
/install
60 $(CP
) $(PKG_INSTALL_DIR
)/* $(1)/
63 $(eval
$(call BuildPackage
,prosody
))