nuke $Id$ in /packages as well
[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
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=prosody
11 PKG_VERSION:=0.3.0
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://prosody.im/downloads/source/
16 PKG_MD5SUM:=97b19d75b3d6770fb9b46b6452f945dd
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/prosody
21 SECTION:=net
22 CATEGORY:=Network
23 DEPENDS:=+liblua +libidn +luasocket +luaexpat +luasec
24 TITLE:=XMPP server
25 URL:=http://prosody.im
26 endef
27
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
31 on resources
32 endef
33
34 define Package/prosody/conffiles
35 /etc/prosody/prosody.cfg.lua
36 endef
37
38 define Build/Configure
39 (cd $(PKG_BUILD_DIR); ./configure \
40 --prefix=/usr \
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)" \
45 )
46 endef
47
48 define Build/Compile
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)" \
53 PREFIX="/usr" \
54 all install \
55 )
56 endef
57
58 define Package/prosody/install
59 $(INSTALL_DIR) $(1)/
60 $(CP) $(PKG_INSTALL_DIR)/* $(1)/
61 endef
62
63 $(eval $(call BuildPackage,prosody))