Makefile 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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.1.5
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= 4305cc6ceb094df55210d83548dcbeb5117d74eea25196a9b14fa268d354b100
  8. PKG_DESCR:= scripting language
  9. PKG_SECTION:= dev/lang
  10. PKG_DEPENDS:= librt libpthread
  11. PKG_BUILDDEP:= ruby-host
  12. HOST_BUILDDEP:= readline-host
  13. PKG_URL:= http://www.ruby-lang.org/
  14. PKG_SITES:= http://ftp.ruby-lang.org/pub/ruby/2.1/
  15. PKG_NOPARALLEL:= 1
  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-baseruby=${STAGING_HOST_DIR}/usr/bin/ruby
  27. MAKE_FILE:= GNUmakefile
  28. XAKE_FLAGS+= optflags='' debugflags='' dldflags="$(TARGET_LDFLAGS)"
  29. ALL_TARGET:= main
  30. INSTALL_TARGET:= install-nodoc
  31. HOST_CONFIGURE_ARGS+= --disable-install-doc \
  32. --disable-shared \
  33. --with-out-ext=curses,openssl,readline \
  34. --disable-rubygems
  35. HOST_ALL_TARGET:= main
  36. HOST_INSTALL_TARGET:= install-nodoc
  37. HOST_XAKE_FLAGS:= V=1 DESTDIR=""
  38. ruby-install:
  39. ${INSTALL_DIR} ${IDIR_RUBY}/usr/lib/ruby
  40. ${INSTALL_DIR} ${IDIR_RUBY}/usr/bin
  41. ${CP} ${WRKINST}/usr/lib/libruby.so* ${IDIR_RUBY}/usr/lib
  42. ${CP} ${WRKINST}/usr/lib/ruby/* ${IDIR_RUBY}/usr/lib/ruby
  43. ${INSTALL_BIN} ${WRKINST}/usr/bin/* ${IDIR_RUBY}/usr/bin
  44. include ${ADK_TOPDIR}/mk/host-bottom.mk
  45. include ${ADK_TOPDIR}/mk/pkg-bottom.mk