2013-05-31 14:39:35 +02:00
|
|
|
# $NetBSD: Makefile,v 1.20 2013/05/31 12:39:49 wiz Exp $
|
2004-04-15 12:48:43 +02:00
|
|
|
|
2009-04-30 22:00:57 +02:00
|
|
|
DISTNAME= DBD-Oracle-1.23
|
2004-04-15 12:48:43 +02:00
|
|
|
PKGNAME= p5-${DISTNAME}
|
2013-05-31 14:39:35 +02:00
|
|
|
PKGREVISION= 4
|
2004-04-15 12:48:43 +02:00
|
|
|
CATEGORIES= databases perl5
|
|
|
|
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=DBD/}
|
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2008-12-18 02:13:03 +01:00
|
|
|
HOMEPAGE= http://search.cpan.org/dist/DBD-Oracle/
|
2004-04-15 12:48:43 +02:00
|
|
|
COMMENT= Perl DBI/DBD driver for Oracle databases
|
2009-07-07 17:49:40 +02:00
|
|
|
LICENSE= ${PERL5_LICENSE}
|
|
|
|
|
2005-07-13 20:01:18 +02:00
|
|
|
PERL5_PACKLIST= auto/DBD/Oracle/.packlist
|
2004-04-15 12:48:43 +02:00
|
|
|
|
2008-12-18 02:13:03 +01:00
|
|
|
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
|
2011-04-15 11:21:32 +02:00
|
|
|
PKG_SUGGESTED_OPTIONS= libsys
|
2008-12-18 02:13:03 +01:00
|
|
|
|
2007-01-02 13:13:39 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
2008-12-18 02:13:03 +01:00
|
|
|
.include "../../mk/bsd.options.mk"
|
2007-01-02 13:13:39 +01:00
|
|
|
|
2004-04-15 12:48:43 +02:00
|
|
|
.if !defined(ORACLE_HOME)
|
2007-01-02 13:13:39 +01:00
|
|
|
PKG_FAIL_REASON+= "You must set ORACLE_HOME to the location of your Oracle installation"
|
2004-04-15 12:48:43 +02:00
|
|
|
.elif !exists(${ORACLE_HOME})
|
|
|
|
PKG_FAIL_REASON+= "The location of ORACLE_HOME does not exist"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
BUILDLINK_PASSTHRU_DIRS+= ${ORACLE_HOME}
|
|
|
|
|
2008-12-18 02:13:03 +01:00
|
|
|
.if !empty(PKG_OPTIONS:Mlib32)
|
|
|
|
LDFLAGS+= -L${ORACLE_HOME}/lib32
|
|
|
|
LDFLAGS+= ${COMPILER_RPATH_FLAG}${ORACLE_HOME}/lib32
|
2009-04-30 22:00:57 +02:00
|
|
|
.elif !empty(PKG_OPTIONS:Mlibsys)
|
2007-03-04 02:17:51 +01:00
|
|
|
LDFLAGS+= -L${ORACLE_HOME}/lib
|
|
|
|
LDFLAGS+= ${COMPILER_RPATH_FLAG}${ORACLE_HOME}/lib
|
2008-12-18 02:13:03 +01:00
|
|
|
.elif !empty(PKG_OPTIONS:Mlibbase)
|
|
|
|
LDFLAGS+= -L${ORACLE_HOME}
|
|
|
|
LDFLAGS+= ${COMPILER_RPATH_FLAG}${ORACLE_HOME}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
CFLAGS+= -I${ORACLE_HOME}/rdbms/public/
|
2007-03-04 02:17:51 +01:00
|
|
|
LDFLAGS+= -lclntsh
|
|
|
|
|
2004-04-15 12:48:43 +02:00
|
|
|
.include "../../databases/p5-DBI/buildlink3.mk"
|
|
|
|
|
|
|
|
.include "../../lang/perl5/module.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|