Makefile 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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.2
  6. PKG_RELEASE:= 2
  7. PKG_MD5SUM:= 755aba44607c580fddc25e7c89260460
  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}-p0.tar.gz
  15. WRKDIST= ${WRKDIR}/${PKG_NAME}-1.9.2-p0
  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. CONFIGURE_ARGS+= --disable-install-doc
  23. ALL_TARGET:= main
  24. INSTALL_TARGET:= install-nodoc
  25. pre-configure:
  26. cp ${WRKBUILD}/ext/Setup ${WRKBUILD}/ext/Setup.orig
  27. echo "option nodynamic" >> ${WRKBUILD}/ext/Setup
  28. (cd ${WRKBUILD}; rm -rf config.{cache,status} ; \
  29. ./configure --prefix=$(STAGING_HOST_DIR) --disable-install-doc \
  30. );
  31. $(MAKE) -C ${WRKBUILD} main
  32. cp ${WRKBUILD}/ruby ${WRKBUILD}/hostruby
  33. cp ${WRKBUILD}/ext/Setup.orig ${WRKBUILD}/ext/Setup
  34. $(MAKE) -C ${WRKBUILD} install-nodoc
  35. $(MAKE) -C ${WRKBUILD} clean
  36. post-install:
  37. ${INSTALL_DIR} ${IDIR_RUBY}/usr/lib/ruby
  38. ${INSTALL_DIR} ${IDIR_RUBY}/usr/bin
  39. ${CP} ${WRKINST}/usr/lib/libruby.so* ${IDIR_RUBY}/usr/lib
  40. ${CP} ${WRKINST}/usr/lib/ruby/* ${IDIR_RUBY}/usr/lib/ruby/
  41. ${INSTALL_BIN} ${WRKINST}/usr/bin/* ${IDIR_RUBY}/usr/bin
  42. include ${TOPDIR}/mk/pkg-bottom.mk