summaryrefslogtreecommitdiff
path: root/databases/p5-DBD-Oracle/Makefile
blob: a69dc2b52962bcbeb88bdd22880c56fa24f47f41 (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
# $NetBSD: Makefile,v 1.10 2007/03/04 01:17:51 grant Exp $

DISTNAME=	DBD-Oracle-1.19
PKGNAME=	p5-${DISTNAME}
CATEGORIES=	databases perl5
MASTER_SITES=	${MASTER_SITE_PERL_CPAN:=DBD/}

MAINTAINER=	pkgsrc-users@NetBSD.org
COMMENT=	Perl DBI/DBD driver for Oracle databases

PERL5_PACKLIST=	auto/DBD/Oracle/.packlist

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

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

BUILDLINK_PASSTHRU_DIRS+=	${ORACLE_HOME}

LDFLAGS+=	-L${ORACLE_HOME}/lib
LDFLAGS+=	${COMPILER_RPATH_FLAG}${ORACLE_HOME}/lib
LDFLAGS+=	-lclntsh

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

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