2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2006-01-23 21:21:02 +01:00
|
|
|
#
|
|
|
|
# ruby
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2006-01-23 21:21:02 +01:00
|
|
|
|
2013-11-27 00:17:54 +01:00
|
|
|
RUBY_VERSION = 1.9.3-p484
|
2010-11-04 20:09:32 +01:00
|
|
|
RUBY_SITE = ftp://ftp.ruby-lang.org/pub/ruby/1.9
|
2012-12-29 07:29:05 +01:00
|
|
|
RUBY_DEPENDENCIES = host-pkgconf host-ruby
|
|
|
|
HOST_RUBY_DEPENDENCIES = host-pkgconf
|
2010-11-04 20:09:32 +01:00
|
|
|
RUBY_MAKE_ENV = $(TARGET_MAKE_ENV)
|
2013-02-23 21:37:07 +01:00
|
|
|
RUBY_MAKE = $(MAKE1)
|
2011-11-25 12:35:11 +01:00
|
|
|
RUBY_CONF_OPT = --disable-install-doc --disable-rpath
|
2011-11-27 22:16:40 +01:00
|
|
|
HOST_RUBY_CONF_OPT = --disable-install-doc --with-out-ext=curses,readline
|
2013-10-08 21:02:33 +02:00
|
|
|
RUBY_LICENSE = Ruby or BSD-2c, BSD-3c, others
|
|
|
|
RUBY_LICENSE_FILES = LEGAL COPYING BSDL
|
2011-02-01 20:14:00 +01:00
|
|
|
|
2013-10-13 13:45:04 +02:00
|
|
|
RUBY_CFLAGS = $(TARGET_CFLAGS)
|
|
|
|
# With some SuperH toolchains (like Sourcery CodeBench 2012.09), ruby fails to
|
|
|
|
# build with 'pcrel too far'. This seems to be caused by the -Os option we pass
|
|
|
|
# by default. To fix the problem, use standard -O2 optimization instead.
|
|
|
|
ifeq ($(BR2_sh)$(BR2_sh64),y)
|
|
|
|
RUBY_CFLAGS += -O2
|
|
|
|
endif
|
|
|
|
RUBY_CONF_ENV = CFLAGS="$(RUBY_CFLAGS)"
|
|
|
|
|
2010-11-04 20:09:32 +01:00
|
|
|
# Force optionals to build before we do
|
|
|
|
ifeq ($(BR2_PACKAGE_BERKELEYDB),y)
|
|
|
|
RUBY_DEPENDENCIES += berkeleydb
|
|
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_NCURSES),y)
|
|
|
|
RUBY_DEPENDENCIES += ncurses
|
|
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
|
|
RUBY_DEPENDENCIES += openssl
|
|
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_READLINE),y)
|
|
|
|
RUBY_DEPENDENCIES += readline
|
|
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
|
|
|
RUBY_DEPENDENCIES += zlib
|
|
|
|
endif
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|
2012-07-03 00:06:54 +02:00
|
|
|
$(eval $(host-autotools-package))
|