Makefile 1.9 KB

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