pkgsrc/databases/py-cx_Oracle/Makefile
wiz 8a9cb53cf6 *: bump PKGREVISION for egg.mk users
They now have a tool dependency on py-setuptools instead of a DEPENDS
2022-01-04 20:52:30 +00:00

31 lines
830 B
Makefile

# $NetBSD: Makefile,v 1.7 2022/01/04 20:52:41 wiz Exp $
#
DISTNAME= cx_Oracle-5.0.2
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
PKGREVISION= 1
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"