2014-04-12 18:37:46 +02:00
|
|
|
# $NetBSD: options.mk,v 1.7 2014/04/12 16:37:46 taca Exp $
|
2009-09-13 03:51:05 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
PKG_OPTIONS_VAR= PKG_OPTIONS.ruby
|
|
|
|
PKG_SUPPORTED_OPTIONS= readline ruby-build-ri-db
|
|
|
|
|
|
|
|
#
|
|
|
|
# GNU readline supports multi bytes characters.
|
|
|
|
#
|
2012-04-29 18:43:49 +02:00
|
|
|
PKG_SUGGESTED_OPTIONS= ruby-build-ri-db
|
2009-09-13 03:51:05 +02:00
|
|
|
|
2012-04-29 18:43:49 +02:00
|
|
|
.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.
|
2013-04-08 13:17:08 +02:00
|
|
|
#
|
2014-04-12 18:37:46 +02:00
|
|
|
.if ${RUBY_VER} != 18
|
2012-04-29 18:43:49 +02:00
|
|
|
PKG_SUGGESTED_OPTIONS+= readline
|
|
|
|
.endif
|
2009-09-13 03:51:05 +02:00
|
|
|
|
2012-05-13 10:37:03 +02:00
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
|
2009-09-13 03:51:05 +02:00
|
|
|
.if !empty(PKG_OPTIONS:Mreadline)
|
2014-04-12 18:37:46 +02:00
|
|
|
READLINE_DEFAULT?= readline
|
|
|
|
.endif
|
|
|
|
.include "../../mk/readline.buildlink3.mk"
|
|
|
|
|
|
|
|
.if ${READLINE_TYPE} == "editline"
|
2013-08-21 22:02:50 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-libedit
|
2014-04-12 18:37:46 +02:00
|
|
|
.else
|
2013-08-21 22:02:50 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-libedit
|
2009-09-13 03:51:05 +02:00
|
|
|
.endif
|