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
:=c143532a289a72d5d48b81b5bdac7c25
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 # this is *NOT* GNU autoconf stuff
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) $(TARGET_CPPFLAGS)" \
52 LDFLAGS
="$(TARGET_LDFLAGS)" \
53 DESTDIR
="$(PKG_INSTALL_DIR)" \
59 define Package
/prosody
/install
61 $(CP
) $(PKG_INSTALL_DIR
)/* $(1)/
64 $(eval
$(call BuildPackage
,prosody
))