summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortaca <taca@pkgsrc.org>2005-02-21 15:25:36 +0000
committertaca <taca@pkgsrc.org>2005-02-21 15:25:36 +0000
commit4b716b2c3b84ea25dc5f2955075ef0a303143ba9 (patch)
treee63d6cc3a29021f9fbead9d8cb1a4555f3aca8b1
parente005cedbabfa396d979f365e5c5b09ff78beda9c (diff)
downloadpkgsrc-4b716b2c3b84ea25dc5f2955075ef0a303143ba9.tar.gz
Move common configure related parameter from ruby16/Makefile and
ruby18/Makefile.
-rw-r--r--lang/ruby/Makefile.common28
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"