Makefile 996 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # $Id$
  2. #-
  3. # This file is part of the OpenADK project. OpenADK is copyrighted
  4. # material, please see the LICENCE file in the top-level directory.
  5. # == Doc
  6. # * http://wiki.rubygarden.org/Ruby/page/show/RubyOnUCLinux
  7. include ${TOPDIR}/rules.mk
  8. PKG_NAME:= ruby
  9. PKG_VERSION:= 1.8.7
  10. PKG_RELEASE:= 1
  11. PKG_MD5SUM:= de906850f9a012c12ffc6e9f56fb1b66
  12. MASTER_SITES:= http://ftp.ruby-lang.org/pub/ruby/stable/
  13. include ${TOPDIR}/mk/package.mk
  14. $(eval $(call PKG_template,RUBY,ruby,${PKG_VERSION}-${PKG_RELEASE}))
  15. CONFIGURE_STYLE:= gnu
  16. CONFIGURE_ENV+= ac_cv_func_setpgrp_void=yes
  17. BUILD_STYLE:= auto
  18. INSTALL_STYLE:= auto
  19. # Enable some ruby extension / options
  20. post-configure:
  21. echo "option nodynamic" >> ${WRKBUILD}/ext/Setup
  22. echo "socket" >> ${WRKBUILD}/ext/Setup
  23. # Remove the /usr/lib/libruby.so and keep the static (~1M) ?
  24. post-install:
  25. rm -rf ${WRKINST}/usr/lib/site_ruby
  26. find ${WRKINST}/usr -name "*.h" -delete
  27. cp -a ${WRKINST}/usr ${IDIR_RUBY}
  28. include ${TOPDIR}/mk/pkg-bottom.mk