1
0

Makefile 1.4 KB

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