File:  [cvs.NetBSD.org] / pkgsrc / databases / p5-DBD-Oracle / Makefile
Revision 1.18: download - view: text, annotated - select for diffs
Tue Oct 2 21:25:27 2012 UTC (12 years, 2 months ago) by asau
Branches: MAIN
CVS tags: HEAD
Drop superfluous PKG_DESTDIR_SUPPORT, "user-destdir" is default these days.

# $NetBSD: Makefile,v 1.18 2012/10/02 21:25:27 asau Exp $

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

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	http://search.cpan.org/dist/DBD-Oracle/
COMMENT=	Perl DBI/DBD driver for Oracle databases
LICENSE=	${PERL5_LICENSE}

PERL5_PACKLIST=	auto/DBD/Oracle/.packlist

PKG_OPTIONS_VAR=	PKG_OPTIONS.p5-DBD-Oracle

PKG_SUPPORTED_OPTIONS=	# empty
PKG_SUGGESTED_OPTIONS=	# empty

PKG_OPTIONS_REQUIRED_GROUPS=	oralib
PKG_OPTIONS_GROUP.oralib=	lib32 libsys libbase
PKG_SUGGESTED_OPTIONS=		libsys

.include "../../mk/bsd.prefs.mk"
.include "../../mk/bsd.options.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}

.if !empty(PKG_OPTIONS:Mlib32)
LDFLAGS+=	-L${ORACLE_HOME}/lib32
LDFLAGS+=	${COMPILER_RPATH_FLAG}${ORACLE_HOME}/lib32
.elif !empty(PKG_OPTIONS:Mlibsys)
LDFLAGS+=	-L${ORACLE_HOME}/lib
LDFLAGS+=	${COMPILER_RPATH_FLAG}${ORACLE_HOME}/lib
.elif !empty(PKG_OPTIONS:Mlibbase)
LDFLAGS+=	-L${ORACLE_HOME}
LDFLAGS+=	${COMPILER_RPATH_FLAG}${ORACLE_HOME}
.endif

CFLAGS+=	-I${ORACLE_HOME}/rdbms/public/
LDFLAGS+=	-lclntsh

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

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

CVSweb <webmaster@jp.NetBSD.org>