[BACK]Return to options.mk CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / devel / ruby-readline

File: [cvs.NetBSD.org] / pkgsrc / devel / ruby-readline / options.mk (download)

Revision 1.4, Mon Apr 8 11:17:12 2013 UTC (11 years ago) by rodent
Branch: MAIN
CVS Tags: pkgsrc-2013Q2-base, pkgsrc-2013Q2
Changes since 1.3: +3 -3 lines

Remove "Trailing empty lines." and/or "Trailing white-space."

# $NetBSD: options.mk,v 1.4 2013/04/08 11:17:12 rodent 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