blob: b5e7689ce3d00f0d0d2401597a20557890314498 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# This file is part of the OpenADK project. OpenADK is copyrighted
# material, please see the LICENCE file in the top-level directory.
include ${ADK_TOPDIR}/rules.mk
PKG_NAME:= ruby
PKG_VERSION:= 3.0.2
PKG_RELEASE:= 1
PKG_HASH:= 570e7773100f625599575f363831166d91d49a1ab97d3ab6495af44774155c40
PKG_DESCR:= scripting language
PKG_SECTION:= dev/lang
PKG_DEPENDS:= libressl zlib
PKG_BUILDDEP:= ruby-host libressl zlib
HOST_BUILDDEP:= libressl-host
PKG_NEEDS:= threads
PKG_URL:= http://www.ruby-lang.org/
PKG_SITES:= http://ftp.ruby-lang.org/pub/ruby/3.0/
include ${ADK_TOPDIR}/mk/host.mk
include ${ADK_TOPDIR}/mk/package.mk
$(eval $(call HOST_template,RUBY,ruby,${PKG_VERSION}-${PKG_RELEASE}))
$(eval $(call PKG_template,RUBY,ruby,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
AUTOTOOL_STYLE:= autoreconf
# uClibc setpgrp does not take arguments
CONFIGURE_ENV+= ac_cv_func_setpgrp_void=yes \
stack_protector=no \
rb_cv_binary_elf=yes
CONFIGURE_ARGS+= --disable-install-doc \
--with-out-ext=fiddle \
--with-baseruby=${STAGING_HOST_DIR}/usr/bin/ruby
MAKE_FILE:= GNUmakefile
XAKE_FLAGS+= optflags='' debugflags='' dldflags="$(TARGET_LDFLAGS)"
ALL_TARGET:= main
INSTALL_TARGET:= install-nodoc
HOST_CONFIGURE_ARGS+= --disable-install-doc \
--disable-shared \
--with-out-ext=curses,readline \
--disable-rubygems
HOST_ALL_TARGET:= main
HOST_INSTALL_TARGET:= install-nodoc
HOST_XAKE_FLAGS:= DESTDIR=""
ruby-install:
${INSTALL_DIR} ${IDIR_RUBY}/usr/lib/ruby
${INSTALL_DIR} ${IDIR_RUBY}/usr/bin
${CP} ${WRKINST}/usr/lib/libruby.so* ${IDIR_RUBY}/usr/lib
${CP} ${WRKINST}/usr/lib/ruby/* ${IDIR_RUBY}/usr/lib/ruby
${INSTALL_BIN} ${WRKINST}/usr/bin/* ${IDIR_RUBY}/usr/bin
include ${ADK_TOPDIR}/mk/host-bottom.mk
include ${ADK_TOPDIR}/mk/pkg-bottom.mk
|