1 # This file is part of the OpenADK project. OpenADK is copyrighted
2 # material, please see the LICENCE file in the top-level directory.
4 include ${ADK_TOPDIR}/rules.mk
9 PKG_HASH
:= 676b65a36e637e90f982b57b059189b3276b9045034dcd186a7e9078847b975b
10 PKG_DESCR
:= scripting language
11 PKG_SECTION
:= dev
/lang
12 PKG_DEPENDS
:= libressl zlib
13 PKG_BUILDDEP
:= ruby-host libressl zlib
14 HOST_BUILDDEP
:= libressl-host
16 PKG_URL
:= http
://www.ruby-lang.org
/
17 PKG_SITES
:= http
://ftp.ruby-lang.org
/pub
/ruby
/3.3/
19 include ${ADK_TOPDIR}/mk
/host.mk
20 include ${ADK_TOPDIR}/mk
/package.mk
22 $(eval
$(call HOST_template
,RUBY
,ruby
,${PKG_VERSION}-${PKG_RELEASE}))
23 $(eval
$(call PKG_template
,RUBY
,ruby
,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
25 # uClibc setpgrp does not take arguments
26 CONFIGURE_ENV
+= ac_cv_func_setpgrp_void
=yes \
28 ac_cv_func_finite
=yes \
29 ac_cv_func_isinf
=yes \
30 ac_cv_func_isnan
=yes \
32 CONFIGURE_ARGS
+= --disable-install-doc \
33 --with-out-ext
=fiddle \
34 --with-baseruby
=${STAGING_HOST_DIR}/usr
/bin
/ruby
36 MAKE_FILE
:= GNUmakefile
37 XAKE_FLAGS
+= optflags
='' debugflags
='' dldflags
="$(TARGET_LDFLAGS)"
39 INSTALL_TARGET
:= install-nodoc
41 HOST_CONFIGURE_ARGS
+= --disable-install-doc \
44 --with-out-ext
=curses
,readline
,openssl \
46 HOST_ALL_TARGET
:= main
47 HOST_INSTALL_TARGET
:= install-nodoc
48 HOST_XAKE_FLAGS
:= DESTDIR
=""
51 ${INSTALL_DIR} ${IDIR_RUBY}/usr
/lib
/ruby
52 ${INSTALL_DIR} ${IDIR_RUBY}/usr
/bin
53 ${CP} ${WRKINST}/usr
/lib
/libruby.so
* ${IDIR_RUBY}/usr
/lib
54 ${CP} ${WRKINST}/usr
/lib
/ruby
/* ${IDIR_RUBY}/usr
/lib
/ruby
55 ${INSTALL_BIN} ${WRKINST}/usr
/bin
/* ${IDIR_RUBY}/usr
/bin
57 include ${ADK_TOPDIR}/mk
/host-bottom.mk
58 include ${ADK_TOPDIR}/mk
/pkg-bottom.mk