1
0

Makefile 1.8 KB

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