blob: 2b921dba0fcce3f5b11cf262f65a967ed10147e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
# $NetBSD: options.mk,v 1.3 2012/05/13 08:37:03 sbd Exp $
#
PKG_OPTIONS_VAR= PKG_OPTIONS.ruby
PKG_SUPPORTED_OPTIONS= readline ruby-build-ri-db
#
# GNU readline supports multi bytes characters.
#
PKG_SUGGESTED_OPTIONS= ruby-build-ri-db
.include "../../lang/ruby/rubyversion.mk"
# Since license of Ruby prior to 1.9.3 is incompatible with newer
# readline's GPL3, enable it with 1.9.3 and lator.
#
.if ${RUBY_VER} != 18 && ${RUBY_VER} != 19
PKG_SUGGESTED_OPTIONS+= readline
.endif
.include "../../mk/bsd.options.mk"
.if !empty(PKG_OPTIONS:Mreadline)
USE_BUILTIN.readline= no
CONFIGURE_ARGS+= --disable-libedit
.else
CHECK_BUILTIN.readline:= yes
. include "../../devel/readline/builtin.mk"
CHECK_BUILTIN.readline:= no
. if !empty(BUILTIN_LIB_FOUND.edit:M[yY][eE][sS])
CONFIGURE_ARGS+= --enable-libedit
. endif
.endif
|