diff options
author | taca <taca@pkgsrc.org> | 2004-11-29 11:13:40 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2004-11-29 11:13:40 +0000 |
commit | b03d225603b94c9cdea11843eb7a9b9d2decded9 (patch) | |
tree | 04aa7efd5dfa79abcb417f6741d571d2ca60d6b1 /databases | |
parent | 50da1a7b0f27db099b13aaceb96127de3b0bf029 (diff) | |
download | pkgsrc-b03d225603b94c9cdea11843eb7a9b9d2decded9.tar.gz |
Make ruby-dbm work on Solaris using native ndbm(3).
(Not best way, but it works on SunOS 5.8.)
Diffstat (limited to 'databases')
-rw-r--r-- | databases/ruby-dbm/Makefile | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/databases/ruby-dbm/Makefile b/databases/ruby-dbm/Makefile index 34f5e0978cf..2e4c5ede890 100644 --- a/databases/ruby-dbm/Makefile +++ b/databases/ruby-dbm/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1.1.1 2004/11/27 14:27:50 taca Exp $ +# $NetBSD: Makefile,v 1.2 2004/11/29 11:13:40 taca Exp $ # DISTNAME= ${RUBY_DISTNAME} @@ -17,12 +17,19 @@ WRKSRC= ${RUBY_WRKSRC}/ext/dbm EXTRACT_ELEMENTS= ${RUBY_DISTNAME}/ext/dbm \ ${RUBY_DISTNAME}/sample/dbmtest.rb -BDB_ACCEPTED?= db1 - post-install: ${INSTALL_DATA} ${RUBY_WRKSRC}/sample/dbmtest.rb ${RUBY_EXAMPLESDIR} +.include "../../mk/bsd.prefs.mk" +# +# XXX: Ruby extconf shuld select native ndbm(3) or Berkley DB's +# ndbm(3) compatible support. +# +.if ${OPSYS} != "SunOS" +BDB_ACCEPTED?= db1 + +.include "../../mk/bdb.buildlink3.mk" +.endif .include "../../lang/ruby/modules.mk" .include "../../lang/ruby/Makefile.common" -.include "../../mk/bdb.buildlink3.mk" .include "../../mk/bsd.pkg.mk" |