summaryrefslogtreecommitdiff
path: root/databases/py-cx_Oracle/Makefile
blob: 019198e6b743ebc2c8ef7b8e390e0ca7b7712941 (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.3 2013/04/06 12:08:38 rodent Exp $
#

DISTNAME=	cx_Oracle-5.0.2
PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
CATEGORIES=	www python
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=cx-oracle/}

MAINTAINER=	joerg@NetBSD.org
HOMEPAGE=	http://cx-oracle.sourceforge.net/
COMMENT=	Oracle binding for Python

PYDISTUTILSPKG=	yes

.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}
BUILDLINK_PASSTHRU_RPATHDIRS+=	${ORACLE_HOME}
LDFLAGS+=	-Wl,-rpath,${ORACLE_HOME}/lib

ALL_ENV+=	ORACLE_HOME=${ORACLE_HOME:Q}

.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"