prevent procps from looking for ncurses on the host system
[openwrt/svn-archive/archive.git] / lang / ruby / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=ruby
12 PKG_VERSION:=1.8.5
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=ftp://ftp.ruby-lang.org/pub/ruby/1.8/
17 PKG_MD5SUM:=3fbb02294a8ca33d4684055adba5ed6f
18 PKG_CAT:=zcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24
25 define Package/ruby
26 SECTION:=lang
27 CATEGORY:=Languages
28 TITLE:=Ruby object-oriented scripting language interpreter
29 DESCRIPTION:=\
30 Ruby is the interpreted scripting language for quick and \\\
31 easy object-oriented programming. It has many features to \\\
32 process text files and to do system management tasks (as in \\\
33 perl). It is simple, straight-forward, and extensible.
34 URL:=http://www.ruby-lang.org/
35 endef
36
37 #use Build/Configure/Default
38
39 define Build/Compile
40 $(MAKE) -C $(PKG_BUILD_DIR) \
41 DESTDIR="$(PKG_INSTALL_DIR)" \
42 all install
43 endef
44
45 define Package/ruby/install
46 $(INSTALL_DIR) $(1)/usr/bin
47 $(CP) $(PKG_INSTALL_DIR)/usr/bin/ruby $(1)/usr/bin/
48 endef
49
50 $(eval $(call BuildPackage,ruby))
51
52 $(eval $(call RequireCommand,/usr/bin/ruby, \
53 Ruby requires ruby installed on the host-system. \
54 ))