summaryrefslogtreecommitdiff
path: root/databases/ruby-dbm/Makefile
blob: 3cec96b54629b29cbf7f7f0a419d9d8749ad3389 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# $NetBSD: Makefile,v 1.3 2005/01/23 17:33:19 taca Exp $
#

DISTNAME=	${RUBY_DISTNAME}
PKGNAME=	${RUBY_PKGPREFIX}-dbm-${RUBY_VERSION}
CATEGORIES=	databases ruby
MASTER_SITES=	${MASTER_SITE_RUBY}

MAINTAINER=	taca@NetBSD.org
HOMEPAGE=	${RUBY_HOMEPAGE}
COMMENT=	Ruby extension to DBM library

RUBY_HAS_ARCHLIB=	yes
USE_BUILDLINK3=		yes
USE_RUBY_EXTCONF=	yes
DISTINFO_FILE=		${RUBY_DISTINFO_FILE}
WRKSRC=			${RUBY_WRKSRC}/ext/dbm
EXTRACT_ELEMENTS=	${RUBY_DISTNAME}/ext/dbm \
			${RUBY_DISTNAME}/sample/dbmtest.rb

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/bsd.pkg.mk"