Makefile 1.5 KB

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