1
0

Makefile 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. dldflags="$(TARGET_LDFLAGS)"
  21. # uClibc setpgrp does not take arguments
  22. CONFIGURE_ENV+= ac_cv_func_setpgrp_void=yes
  23. CONFIGURE_ARGS+= --disable-install-doc
  24. ALL_TARGET:= main
  25. INSTALL_TARGET:= install-nodoc
  26. pre-configure:
  27. cp ${WRKBUILD}/ext/Setup ${WRKBUILD}/ext/Setup.orig
  28. echo "option nodynamic" >> ${WRKBUILD}/ext/Setup
  29. (cd ${WRKBUILD}; rm -rf config.{cache,status} ; \
  30. ./configure --prefix=$(STAGING_HOST_DIR) --disable-install-doc \
  31. );
  32. $(MAKE) -C ${WRKBUILD} main
  33. cp ${WRKBUILD}/ruby ${WRKBUILD}/hostruby
  34. cp ${WRKBUILD}/ext/Setup.orig ${WRKBUILD}/ext/Setup
  35. $(MAKE) -C ${WRKBUILD} install-nodoc
  36. $(MAKE) -C ${WRKBUILD} clean
  37. post-install:
  38. ${INSTALL_DIR} ${IDIR_RUBY}/usr/lib/ruby
  39. ${INSTALL_DIR} ${IDIR_RUBY}/usr/bin
  40. ${CP} ${WRKINST}/usr/lib/libruby.so* ${IDIR_RUBY}/usr/lib
  41. ${CP} ${WRKINST}/usr/lib/ruby/* ${IDIR_RUBY}/usr/lib/ruby/
  42. ${INSTALL_BIN} ${WRKINST}/usr/bin/* ${IDIR_RUBY}/usr/bin
  43. include ${TOPDIR}/mk/pkg-bottom.mk