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.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=http
://prosody.im
/downloads
/source
/
17 PKG_MD5SUM
:=825b37b6917e5c21a8596c027e0972ec
19 include $(INCLUDE_DIR
)/package.mk
21 define Package
/prosody
24 DEPENDS
:=+liblua
+libidn
26 URL
:=http
://prosody.im
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
35 define Package
/prosody
/conffiles
36 /etc
/prosody
/prosody.cfg.lua
39 define Build
/Configure
40 (cd
$(PKG_BUILD_DIR
); .
/configure \
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)" \
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)" \
59 define Package
/prosody
/install
61 $(CP
) $(PKG_INSTALL_DIR
)/* $(1)/
64 $(eval
$(call BuildPackage
,prosody
))