From 1e8dfce18adfe224274675e02e91bd4c15284a0e Mon Sep 17 00:00:00 2001 From: taca Date: Tue, 27 Dec 2005 11:45:12 +0000 Subject: Better handling for using ndbm(3) or compatible version by Berkeley DB. For possibility of changing dependency, bump PKGREVISION. --- lang/ruby18-base/Makefile | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) (limited to 'lang') diff --git a/lang/ruby18-base/Makefile b/lang/ruby18-base/Makefile index 5e16dbcd5c1..223fe5b704e 100644 --- a/lang/ruby18-base/Makefile +++ b/lang/ruby18-base/Makefile @@ -1,9 +1,9 @@ -# $NetBSD: Makefile,v 1.14 2005/12/08 09:52:15 rillig Exp $ +# $NetBSD: Makefile,v 1.15 2005/12/27 11:45:12 taca Exp $ # DISTNAME= ${RUBY_DISTNAME} PKGNAME= ${RUBY_PKGPREFIX}-base-${RUBY_VERSION} -PKGREVISION= 1 +PKGREVISION= 2 CATEGORIES= lang ruby MASTER_SITES= ${MASTER_SITE_RUBY} @@ -46,7 +46,14 @@ CONFIGURE_ARGS+= --program-suffix=${RUBY_SUFFIX:Q} FILES_SUBST+= DATE=${DATE:Q} # -# IRIX work around should be fixed. +# Use Berkley DB unless a system has real ndbm(3). +# +.if !exists(/usr/include/ndbm.h) +.include "../../mk/bdb.buildlink3.mk" +.endif + +# +# IRIX work around which should be fixed. # .if ${OPSYS} == "IRIX" PLIST_SUBST+= HAS_IO="@comment " @@ -130,15 +137,6 @@ post-install: ${INSTALL_DATA} ${WRKSRC}/ext/pty/${f} ${RUBY_EXAMPLESDIR}/pty .endfor -# -# XXX: Ruby extconf shuld select native ndbm(3) or Berkley DB's -# ndbm(3) compatible support. -# -.if ${OPSYS} != "IRIX" && ${OPSYS} != "SunOS" -BDB_ACCEPTED?= db1 -.include "../../mk/bdb.buildlink3.mk" -.endif - .include "../../lang/ruby/Makefile.common" .include "../../devel/zlib/buildlink3.mk" .include "../../security/openssl/buildlink3.mk" -- cgit v1.2.3