Makefile 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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:= 1.9.1-p378
  6. PKG_RELEASE:= 1
  7. PKG_MD5SUM:= 9fc5941bda150ac0a33b299e1e53654c
  8. PKG_DESCR:= interpreter for the ruby language
  9. PKG_SECTION:= net
  10. PKG_NOPARALLEL:= 1
  11. PKG_URL:= http://www.ruby-lang.org
  12. PKG_SITES:= ftp://ftp.ruby-lang.org/pub/ruby/1.9/
  13. include ${TOPDIR}/mk/package.mk
  14. $(eval $(call PKG_template,RUBY,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  15. MAKE_FILE:= GNUmakefile
  16. XAKE_FLAGS+= optflags='' debugflags='' BASERUBY="${WRKBUILD}/hostruby"
  17. # uClibc setpgrp does not take arguments
  18. CONFIGURE_ENV+= ac_cv_func_setpgrp_void=yes
  19. INSTALL_TARGET:= install-nodoc
  20. pre-configure:
  21. cp ${WRKBUILD}/ext/Setup ${WRKBUILD}/ext/Setup.orig
  22. echo "option nodynamic" >> ${WRKBUILD}/ext/Setup
  23. (cd ${WRKBUILD}; rm -rf config.{cache,status} ; \
  24. ./configure --prefix=$(STAGING_TOOLS) \
  25. );
  26. $(MAKE) -C ${WRKBUILD} ruby
  27. cp ${WRKBUILD}/ruby ${WRKBUILD}/hostruby
  28. cp ${WRKBUILD}/ext/Setup.orig ${WRKBUILD}/ext/Setup
  29. $(MAKE) -C ${WRKBUILD} install-nodoc
  30. $(MAKE) -C ${WRKBUILD} clean
  31. post-install:
  32. rm -rf ${WRKINST}/usr/lib/site_ruby
  33. rm -rf ${WRKINST}/usr/include
  34. ${CP} ${WRKINST}/usr ${IDIR_RUBY}/
  35. include ${TOPDIR}/mk/pkg-bottom.mk