Makefile 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 ${TOPDIR}/rules.mk
  4. PKG_NAME:= ruby
  5. PKG_VERSION:= 2.1.1
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= e57fdbb8ed56e70c43f39c79da1654b2
  8. PKG_DESCR:= interpreter for the ruby language
  9. PKG_SECTION:= lang
  10. PKG_DEPENDS:= librt libpthread libgcc
  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. PKG_HOST_DEPENDS:= !freebsd !cygwin
  18. include ${TOPDIR}/mk/host.mk
  19. include ${TOPDIR}/mk/package.mk
  20. $(eval $(call HOST_template,RUBY,ruby,${PKG_VERSION}-${PKG_RELEASE}))
  21. $(eval $(call PKG_template,RUBY,ruby,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  22. # uClibc setpgrp does not take arguments
  23. CONFIGURE_ENV+= ac_cv_func_setpgrp_void=yes \
  24. stack_protector=no \
  25. rb_cv_binary_elf=yes
  26. CONFIGURE_ARGS+= --disable-install-doc \
  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. --prefix=$(HOST_WRKINST)/usr \
  35. --bindir=$(HOST_WRKINST)/usr/bin \
  36. --mandir=$(HOST_WRKINST)/usr/share/man \
  37. --disable-rubygems
  38. HOST_ALL_TARGET:= main
  39. HOST_INSTALL_TARGET:= install-nodoc
  40. HOST_XAKE_FLAGS:= V=1 DESTDIR=""
  41. ruby-hostinstall:
  42. $(INSTALL_BIN) $(HOST_WRKINST)/usr/bin/ruby \
  43. $(STAGING_HOST_DIR)/usr/bin
  44. $(CP) $(HOST_WRKINST)/usr/lib/ruby \
  45. $(STAGING_HOST_DIR)/usr/lib
  46. ruby-install:
  47. ${INSTALL_DIR} ${IDIR_RUBY}/usr/lib/ruby
  48. ${INSTALL_DIR} ${IDIR_RUBY}/usr/bin
  49. ${CP} ${WRKINST}/usr/lib/libruby.so* ${IDIR_RUBY}/usr/lib
  50. ${CP} ${WRKINST}/usr/lib/ruby/* ${IDIR_RUBY}/usr/lib/ruby
  51. ${INSTALL_BIN} ${WRKINST}/usr/bin/* ${IDIR_RUBY}/usr/bin
  52. include ${TOPDIR}/mk/host-bottom.mk
  53. include ${TOPDIR}/mk/pkg-bottom.mk