[packages] massive change: replace occurences of -I$(STAGING_DIR)/{include,usr/includ...
[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.4.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:=c143532a289a72d5d48b81b5bdac7c25
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 # this is *NOT* GNU autoconf stuff
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) $(TARGET_CPPFLAGS)" \
52 LDFLAGS="$(TARGET_LDFLAGS)" \
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))