Makefile 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. # $OpenBSD: Makefile,v 1.44 2017/06/12 10:57:57 ajacoutot Exp $
  2. COMMENT-main= object oriented script language with threads
  3. COMMENT-iconv= libiconv interface for ruby
  4. COMMENT-gdbm= gdbm interface for ruby
  5. COMMENT-tk= tk interface for ruby
  6. COMMENT-ri_docs= ri documentation files ruby
  7. VERSION= 1.8.7
  8. PATCHLEVEL= 374
  9. RUBYLIBREV= 1.8
  10. SHARED_LIBS= ruby18 0.0
  11. PKGNAME-main= ruby-${VERSION}.${PATCHLEVEL}
  12. PKGNAME-iconv= ruby-iconv-${VERSION}.${PATCHLEVEL}
  13. PKGNAME-gdbm= ruby-gdbm-${VERSION}.${PATCHLEVEL}
  14. PKGNAME-tk= ruby-tk-${VERSION}.${PATCHLEVEL}
  15. PKGNAME-ri_docs= ruby-ri_docs-${VERSION}.${PATCHLEVEL}
  16. PKG_ARCH-ri_docs= *
  17. PKGSPEC-main= ruby->=1.8,<1.9
  18. REVISION-main= 8
  19. REVISION-iconv= 0
  20. REVISION-ri_docs= 1
  21. CONFIGURE_ARGS= --program-suffix=18 \
  22. --enable-ipv6 \
  23. --with-dbm-type=bogus \
  24. --with-opt-dir="${LOCALBASE}" \
  25. --disable-option-checking
  26. CONFIGURE_ENV= LIBruby18_VERSION=${LIBruby18_VERSION}
  27. WANTLIB-main= c m readline termcap util crypto ncurses ssl z
  28. LIB_DEPENDS-main=
  29. RUN_DEPENDS-main=
  30. PSEUDO_FLAVORS= no_tk no_ri_docs bootstrap
  31. # Do not build the RI docs on slow arches
  32. .if ${MACHINE_ARCH:Marm}
  33. FLAVOR?= no_ri_docs bootstrap
  34. .else
  35. FLAVOR?=
  36. .endif
  37. MULTI_PACKAGES= -main -iconv -gdbm -tk -ri_docs
  38. .include <bsd.port.arch.mk>
  39. WANTLIB-iconv = c iconv m ruby18
  40. LIB_DEPENDS-iconv = converters/libiconv \
  41. lang/ruby/${REV},-main
  42. RUN_DEPENDS-iconv =
  43. WANTLIB-gdbm = c gdbm>=3 m ruby18
  44. LIB_DEPENDS-gdbm = databases/gdbm \
  45. lang/ruby/${REV},-main
  46. RUN_DEPENDS-gdbm =
  47. .if ${BUILD_PACKAGES:M-tk}
  48. CONFIGURE_ARGS+= --with-tcl-include=${PREFIX}/include/tcl8.5 \
  49. --with-tk-include=${PREFIX}/include/tk8.5 \
  50. --with-X11-dir=${X11BASE}
  51. WANTLIB-tk = X11 c m ruby18 tcl85 tk85
  52. LIB_DEPENDS-tk = tk->=8.5,<8.6:x11/tk/8.5 \
  53. lang/ruby/${REV},-main
  54. RUN_DEPENDS-tk =
  55. .endif
  56. .if ${BUILD_PACKAGES:M-ri_docs}
  57. ALL_TARGET = all rdoc
  58. INSTALL_TARGET = install install-doc
  59. .endif
  60. post-install:
  61. ${FIX_RBCONFIG}
  62. # Known regression failures in OpenSSL extension on sparc64
  63. # Known regression failure in IO.readpartial on all arch
  64. # Known regression failure in test_connection_refused_in_request on all arch
  65. TEST_DEPENDS= ${FULLPKGNAME-main}:${BUILD_PKGPATH}
  66. .include <bsd.port.mk>