Makefile 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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:= 2.7.1
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= d418483bdd0000576c1370571121a6eb24582116db0b7bb2005e90e250eae418
  8. PKG_DESCR:= scripting language
  9. PKG_SECTION:= dev/lang
  10. PKG_DEPENDS:= libressl zlib
  11. PKG_BUILDDEP:= ruby-host libressl zlib
  12. HOST_BUILDDEP:= libressl-host
  13. PKG_NEEDS:= threads
  14. PKG_URL:= http://www.ruby-lang.org/
  15. PKG_SITES:= http://ftp.ruby-lang.org/pub/ruby/2.7/
  16. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz
  17. include ${ADK_TOPDIR}/mk/host.mk
  18. include ${ADK_TOPDIR}/mk/package.mk
  19. $(eval $(call HOST_template,RUBY,ruby,${PKG_VERSION}-${PKG_RELEASE}))
  20. $(eval $(call PKG_template,RUBY,ruby,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  21. # uClibc setpgrp does not take arguments
  22. CONFIGURE_ENV+= ac_cv_func_setpgrp_void=yes \
  23. stack_protector=no \
  24. rb_cv_binary_elf=yes
  25. CONFIGURE_ARGS+= --disable-install-doc \
  26. --with-out-ext=fiddle \
  27. --with-baseruby=${STAGING_HOST_DIR}/usr/bin/ruby
  28. MAKE_FILE:= GNUmakefile
  29. XAKE_FLAGS+= optflags='' debugflags='' dldflags="$(TARGET_LDFLAGS)"
  30. ALL_TARGET:= main
  31. INSTALL_TARGET:= install-nodoc
  32. HOST_CONFIGURE_ARGS+= --disable-install-doc \
  33. --disable-shared \
  34. --with-out-ext=curses,readline \
  35. --disable-rubygems
  36. HOST_ALL_TARGET:= main
  37. HOST_INSTALL_TARGET:= install-nodoc
  38. HOST_XAKE_FLAGS:= DESTDIR=""
  39. ruby-install:
  40. ${INSTALL_DIR} ${IDIR_RUBY}/usr/lib/ruby
  41. ${INSTALL_DIR} ${IDIR_RUBY}/usr/bin
  42. ${CP} ${WRKINST}/usr/lib/libruby.so* ${IDIR_RUBY}/usr/lib
  43. ${CP} ${WRKINST}/usr/lib/ruby/* ${IDIR_RUBY}/usr/lib/ruby
  44. ${INSTALL_BIN} ${WRKINST}/usr/bin/* ${IDIR_RUBY}/usr/bin
  45. include ${ADK_TOPDIR}/mk/host-bottom.mk
  46. include ${ADK_TOPDIR}/mk/pkg-bottom.mk