diff options
author | taca <taca> | 2005-02-21 15:25:36 +0000 |
---|---|---|
committer | taca <taca> | 2005-02-21 15:25:36 +0000 |
commit | 05bac8fbd4567489dc40545b37d1c80a014b9f5e (patch) | |
tree | e63d6cc3a29021f9fbead9d8cb1a4555f3aca8b1 /lang/ruby | |
parent | a0099f3344ad39ec904cdc99cdd77cd3726eaf66 (diff) | |
download | pkgsrc-05bac8fbd4567489dc40545b37d1c80a014b9f5e.tar.gz |
Move common configure related parameter from ruby16/Makefile and
ruby18/Makefile.
Diffstat (limited to 'lang/ruby')
-rw-r--r-- | lang/ruby/Makefile.common | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/lang/ruby/Makefile.common b/lang/ruby/Makefile.common index a9b2130d5d7..b4dbcb49061 100644 --- a/lang/ruby/Makefile.common +++ b/lang/ruby/Makefile.common @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.common,v 1.5 2005/02/09 15:28:46 taca Exp $ +# $NetBSD: Makefile.common,v 1.6 2005/02/21 15:25:36 taca Exp $ # # Ruby base distribution common definition @@ -68,4 +68,30 @@ PLIST_SUBST+= RUBY_SHLIBVER="${RUBY_SHLIBVER}" \ RUBY_NOSHLIBMAJOR=${RUBY_NOSHLIBMAJOR} \ RUBY_NAME="${RUBY_NAME}" +# Common macros. +.if ${OPSYS} == "NetBSD" +.if empty(OS_VERSION:M1.[0-9].*) +PTHREAD_OPTS+= native +.include "../../mk/pthread.buildlink3.mk" +.if defined(PTHREAD_TYPE) && ${PTHREAD_TYPE} == "none" +CONFIGURE_ARGS+= --disable-pthread +.else +CONFIGURE_ARGS+= --enable-pthread +.endif +.endif +.endif + +.if ${OPSYS} == "IRIX" +# X11BASE, *not* X11PREFIX: X11PREFIX == PREFIX, but we need to point +# to the ABI-specific libraries +CONFIGURE_ENV+= X11BASE="${X11BASE}" +.endif + +# XXX: Ruby extconf shuld select native ndbm(3) or Berkley DB's +# ndbm(3) compatible support. +# +.if ${OPSYS} != "SunOS" +BDB_ACCEPTED?= db1 +.endif + .include "replace.mk" |