Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # $OpenBSD: Makefile,v 1.5 2017/03/04 05:09:15 jeremy Exp $
  2. BROKEN-sparc64 = Bus error (core dumped)
  3. COMMENT = lightweight, embeddable implementation of ruby
  4. VERSION = 1.2.0
  5. DISTNAME = mruby-${VERSION}
  6. REVISION = 0
  7. CATEGORIES = lang
  8. HOMEPAGE = https://github.com/mruby/mruby
  9. # MIT
  10. PERMIT_PACKAGE_CDROM = Yes
  11. MASTER_SITES = https://github.com/mruby/mruby/archive/
  12. DISTFILES = ${DISTNAME}-${VERSION}.tar.gz{${VERSION}.tar.gz}
  13. MODULES = lang/ruby
  14. BUILD_DEPENDS = devel/bison \
  15. lang/ruby/${MODRUBY_REV}
  16. MAKE_ENV = CC="${CC}" \
  17. LD="${CC}"
  18. NO_CONFIGURE = Yes
  19. SUBST_VARS = RUBY
  20. do-build:
  21. cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${RUBY} ./minirake --verbose
  22. do-install:
  23. ${INSTALL_PROGRAM} ${WRKSRC}/bin/* ${PREFIX}/bin/
  24. ${INSTALL_DATA_DIR} ${PREFIX}/{lib,include,share/doc}/mruby/
  25. cp -R ${WRKSRC}/mrb{lib,gems} ${PREFIX}/lib/mruby/
  26. cp -R ${WRKSRC}/include/* ${PREFIX}/include
  27. ${INSTALL_DATA} ${WRKSRC}/doc/guides/* ${PREFIX}/share/doc/mruby/
  28. do-test:
  29. ${SUBST_CMD} ${WRKSRC}/tasks/mruby_build.rake
  30. cd ${WRKSRC} && ${RUBY} ./minirake test
  31. .include <bsd.port.mk>