xmpp4r: Fix ruby library path
[openwrt/svn-archive/archive.git] / libs / xmpp4r / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v3.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=xmpp4r
11 PKG_VERSION:=0.5
12 PKG_RELEASE:=0
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).zip
15 PKG_SOURCE_URL:=http://download.gna.org/xmpp4r
16 PKG_MD5SUM:=70eafe960727d750a43ec77ffc1856e9
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/xmpp4r
21 TITLE:=XMPP/Jabber library for Ruby
22 SECTION:=libs
23 CATEGORY:=Libraries
24 DEPENDS:=+ruby
25 MAINTAINER:=Giovanni Di Stasi <giovanni.distasi@unina.it>
26 URL:=http://home.gna.org/xmpp4r/
27 endef
28
29 define Package/xmpp4r/description
30 This package contains xmpp4r, an XMPP/Jabber library for Ruby.
31 endef
32
33 define Build/Compile
34 (cd $(PKG_BUILD_DIR); \
35 ruby $(PKG_BUILD_DIR)/setup.rb config \
36 --rbconfig=$(wildcard $(STAGING_DIR)/usr/lib/ruby/*.*/*-linux/rbconfig.rb); \
37 ruby $(PKG_BUILD_DIR)/setup.rb install --prefix="$(PKG_INSTALL_DIR)"; \
38 )
39 endef
40
41 define Package/xmpp4r/install
42 $(INSTALL_DIR) $(1)/usr/
43 $(CP) $(PKG_INSTALL_DIR)/usr/lib $(1)/usr
44 endef
45
46 $(eval $(call BuildPackage,xmpp4r))