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