1
0

Makefile 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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.0.0
  6. PKG_EXTRAVER:= 247
  7. PKG_RELEASE:= 1
  8. PKG_MD5SUM:= c351450a0bed670e0f5ca07da3458a5b
  9. PKG_DESCR:= interpreter for the ruby language
  10. PKG_SECTION:= lang
  11. PKG_DEPENDS:= librt libpthread libgcc
  12. PKG_BUILDDEP:= ruby-host
  13. PKG_URL:= http://www.ruby-lang.org/
  14. PKG_SITES:= http://ftp.ruby-lang.org/pub/ruby/2.0/
  15. PKG_NOPARALLEL:= 1
  16. PKG_HOST_DEPENDS:= !freebsd !cygwin
  17. PKG_ARCH_DEPENDS:= !avr32
  18. DISTFILES:= ${PKG_NAME}-${PKG_VERSION}-p${PKG_EXTRAVER}.tar.gz
  19. WRKDIST= ${WRKDIR}/${PKG_NAME}-${PKG_VERSION}-p${PKG_EXTRAVER}
  20. include ${TOPDIR}/mk/host.mk
  21. include ${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}))
  24. # uClibc setpgrp does not take arguments
  25. CONFIGURE_ENV+= ac_cv_func_setpgrp_void=yes \
  26. rb_cv_binary_elf=yes
  27. CONFIGURE_ARGS+= --disable-install-doc \
  28. --with-baseruby=${STAGING_HOST_DIR}/usr/bin/ruby
  29. MAKE_FILE:= GNUmakefile
  30. XAKE_FLAGS+= optflags='' debugflags='' dldflags="$(TARGET_LDFLAGS)"
  31. ALL_TARGET:= main
  32. INSTALL_TARGET:= install-nodoc
  33. HOST_CONFIGURE_ARGS+= --disable-install-doc \
  34. --disable-shared \
  35. --prefix=$(HOST_WRKINST)/usr \
  36. --bindir=$(HOST_WRKINST)/usr/bin \
  37. --mandir=$(HOST_WRKINST)/usr/share/man \
  38. --disable-rubygems
  39. HOST_ALL_TARGET:= main
  40. HOST_INSTALL_TARGET:= install-nodoc
  41. HOST_XAKE_FLAGS:= V=1 DESTDIR=""
  42. ruby-hostinstall:
  43. $(INSTALL_BIN) $(HOST_WRKINST)/usr/bin/ruby \
  44. $(STAGING_HOST_DIR)/usr/bin
  45. $(CP) $(HOST_WRKINST)/usr/lib/ruby \
  46. $(STAGING_HOST_DIR)/usr/lib
  47. ruby-install:
  48. ${INSTALL_DIR} ${IDIR_RUBY}/usr/lib/ruby
  49. ${INSTALL_DIR} ${IDIR_RUBY}/usr/bin
  50. ${CP} ${WRKINST}/usr/lib/libruby.so* ${IDIR_RUBY}/usr/lib
  51. ${CP} ${WRKINST}/usr/lib/ruby/* ${IDIR_RUBY}/usr/lib/ruby
  52. ${INSTALL_BIN} ${WRKINST}/usr/bin/* ${IDIR_RUBY}/usr/bin
  53. include ${TOPDIR}/mk/host-bottom.mk
  54. include ${TOPDIR}/mk/pkg-bottom.mk