summaryrefslogtreecommitdiff
path: root/databases/p5-DBD-DB2/Makefile
blob: 46c12adfeac64ea200cbe3444c5d831456b63ffc (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
# $NetBSD: Makefile,v 1.12 2019/06/30 20:14:21 nia Exp $

DISTNAME=	DBD-DB2-1.78
PKGNAME=	p5-${DISTNAME}
PKGREVISION=	9
CATEGORIES=	databases perl5
MASTER_SITES=	${MASTER_SITE_PERL_CPAN:=DBD/}

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://metacpan.org/release/DBD-DB2
COMMENT=	Perl DBI/DBD driver for DB2 databases
LICENSE=	${PERL5_LICENSE}

PERL5_PACKLIST=	auto/DBD/DB2/.packlist

.include "../../mk/bsd.prefs.mk"

.if !defined(DB2_HOME)
PKG_FAIL_REASON+=	"You must set DB2_HOME to the location of your DB2 installation"
.elif !exists(${DB2_HOME})
PKG_FAIL_REASON+=	"The location of DB2_HOME does not exist"
.endif

BUILDLINK_PASSTHRU_DIRS+=	${DB2_HOME}

.include "../../databases/p5-DBI/buildlink3.mk"

.include "../../lang/perl5/module.mk"
.include "../../mk/bsd.pkg.mk"