diff options
author | David Anders <dave123@abcsinc.com> | 2006-01-23 20:21:02 +0000 |
---|---|---|
committer | David Anders <dave123@abcsinc.com> | 2006-01-23 20:21:02 +0000 |
commit | 787dcdd7c72feb6e559238a7921fe25d7a22d157 (patch) | |
tree | 71a3a5aae4fba8288dba7c26485c752e0735d45b /package/ruby/ruby.mk | |
parent | 59e9a3c8b8eccfcde597571fa08895f754843107 (diff) | |
download | buildroot-novena-787dcdd7c72feb6e559238a7921fe25d7a22d157.tar.gz buildroot-novena-787dcdd7c72feb6e559238a7921fe25d7a22d157.zip |
added ruby package per case 0000566
Diffstat (limited to 'package/ruby/ruby.mk')
-rw-r--r-- | package/ruby/ruby.mk | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/package/ruby/ruby.mk b/package/ruby/ruby.mk new file mode 100644 index 000000000..2006b648f --- /dev/null +++ b/package/ruby/ruby.mk @@ -0,0 +1,70 @@ +############################################################# +# +# ruby +# +############################################################# +RUBY_SOURCE:=ruby-1.8.2.tar.gz +RUBY_SITE:=ftp://ftp.ruby-lang.org/pub/ruby/1.8 +RUBY_DIR:=$(BUILD_DIR)/ruby-1.8.2 +RUBY_CAT:=zcat +RUBY_BINARY:=ruby +RUBY_TARGET_BINARY:=usr/bin/ruby + +$(DL_DIR)/$(RUBY_SOURCE): + $(WGET) -P $(DL_DIR) $(RUBY_SITE)/$(RUBY_SOURCE) + +ruby-source: $(DL_DIR)/$(RUBY_SOURCE) + +$(RUBY_DIR)/.unpacked: $(DL_DIR)/$(RUBY_SOURCE) + $(RUBY_CAT) $(DL_DIR)/$(RUBY_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - + toolchain/patch-kernel.sh $(RUBY_DIR) package/ruby/ ruby-*.patch + (cd $(RUBY_DIR); autoreconf); + touch $(RUBY_DIR)/.unpacked + +$(RUBY_DIR)/.configured: $(RUBY_DIR)/.unpacked + (cd $(RUBY_DIR); rm -rf config.cache; \ + $(TARGET_CONFIGURE_OPTS) \ + CFLAGS="$(TARGET_CFLAGS)" \ + ./configure \ + --target=$(GNU_TARGET_NAME) \ + --host=$(GNU_TARGET_NAME) \ + --build=$(GNU_HOST_NAME) \ + --prefix=/usr \ + --exec-prefix=/usr \ + --bindir=/usr/bin \ + --sbindir=/usr/sbin \ + --libexecdir=/usr/lib \ + --sysconfdir=/etc \ + --datadir=/usr/share \ + --localstatedir=/var \ + --mandir=/usr/man \ + --infodir=/usr/info \ + $(DISABLE_NLS) \ + $(DISABLE_LARGEFILE) \ + ); + touch $(RUBY_DIR)/.configured + +$(RUBY_DIR)/$(RUBY_BINARY): $(RUBY_DIR)/.configured + $(MAKE) -C $(RUBY_DIR) + +$(TARGET_DIR)/$(RUBY_TARGET_BINARY): $(RUBY_DIR)/$(RUBY_BINARY) + $(MAKE) DESTDIR=$(TARGET_DIR) -C $(RUBY_DIR) install + rm -rf $(TARGET_DIR)/usr/man $(TARGET_DIR)/usr/share/doc + +ruby: uclibc $(TARGET_DIR)/$(RUBY_TARGET_BINARY) + +ruby-clean: + $(MAKE) DESTDIR=$(TARGET_DIR) -C $(RUBY_DIR) uninstall + -$(MAKE) -C $(RUBY_DIR) clean + +ruby-dirclean: + rm -rf $(RUBY_DIR) + +############################################################# +# +# Toplevel Makefile options +# +############################################################# +ifeq ($(strip $(BR2_PACKAGE_RUBY)),y) +TARGETS+=ruby +endif |