imgtec-ci20: genimage config/ u-boot env
[openadk.git] / package / ruby / Makefile
blobf0a55595ba7d7d2b987e152ec7c1ed44f6844610
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
6 PKG_NAME:= ruby
7 PKG_VERSION:= 3.3.0
8 PKG_RELEASE:= 1
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
15 PKG_NEEDS:= threads
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 \
27 stack_protector=no \
28 ac_cv_func_finite=yes \
29 ac_cv_func_isinf=yes \
30 ac_cv_func_isnan=yes \
31 rb_cv_binary_elf=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)"
38 ALL_TARGET:= main
39 INSTALL_TARGET:= install-nodoc
41 HOST_CONFIGURE_ARGS+= --disable-install-doc \
42 --disable-yjit \
43 --disable-shared \
44 --with-out-ext=curses,readline,openssl \
45 --disable-rubygems
46 HOST_ALL_TARGET:= main
47 HOST_INSTALL_TARGET:= install-nodoc
48 HOST_XAKE_FLAGS:= DESTDIR=""
50 ruby-install:
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