84352d6dac
* RUBY_VER dose not take "19" any more. * Make readline PKG_OPTION work as it should be. * Always include readline.buildlink3.mk. Bump PKGREVISION.
32 lines
730 B
Makefile
32 lines
730 B
Makefile
# $NetBSD: options.mk,v 1.7 2014/04/12 16:37:46 taca 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
|
|
PKG_SUGGESTED_OPTIONS+= readline
|
|
.endif
|
|
|
|
.include "../../mk/bsd.options.mk"
|
|
|
|
.if !empty(PKG_OPTIONS:Mreadline)
|
|
READLINE_DEFAULT?= readline
|
|
.endif
|
|
.include "../../mk/readline.buildlink3.mk"
|
|
|
|
.if ${READLINE_TYPE} == "editline"
|
|
CONFIGURE_ARGS+= --enable-libedit
|
|
.else
|
|
CONFIGURE_ARGS+= --disable-libedit
|
|
.endif
|