pkgsrc/databases/py-ldap/Makefile
ghen 2eca3d9f2c The databases/openldap package has been split in -client and -server component
packages.  Convert LDAP-based applications to depend on openldap-client, and
bump PKGREVISION for those that depend on it by default.
2006-05-31 18:22:23 +00:00

40 lines
1.2 KiB
Makefile

# $NetBSD: Makefile,v 1.31 2006/05/31 18:22:23 ghen Exp $
DISTNAME= python-ldap-2.2.0
PKGNAME= ${DISTNAME:S/python/${PYPKGPREFIX}/}
PKGREVISION= 1
CATEGORIES= databases python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=python-ldap/}
MAINTAINER= ykomatsu@akaumigame.org
HOMEPAGE= http://sourceforge.net/projects/python-ldap/
COMMENT= LDAP client API for Python
PYTHON_VERSIONS_ACCEPTED= 23 24
PYDISTUTILSPKG= yes
PY_LDAP_LIBRARY_DIRS= ${BUILDLINK_PREFIX.openldap-client}/lib
PY_LDAP_INCLUDE_DIRS= ${BUILDLINK_PREFIX.openldap-client}/include
PY_LDAP_LIBS= ldap_r lber ssl crypto
.include "options.mk"
SUBST_CLASSES+= setup
SUBST_STAGE.setup= pre-configure
SUBST_FILES.setup= setup.cfg
SUBST_SED.setup= -e "s|@PY_LDAP_LIBRARY_DIRS@|${PY_LDAP_LIBRARY_DIRS}|"
SUBST_SED.setup+= -e "s|@PY_LDAP_INCLUDE_DIRS@|${PY_LDAP_INCLUDE_DIRS}|"
SUBST_SED.setup+= -e "s|@PY_LDAP_LIBS@|${PY_LDAP_LIBS}|"
PY_LDAP_DOCDIR= ${PREFIX}/share/doc/py-ldap
post-install:
${INSTALL_DATA_DIR} ${PY_LDAP_DOCDIR}
cd ${WRKSRC} && ${PAX} -rw CHANGES README INSTALL TODO Demo \
${PY_LDAP_DOCDIR}
.include "../../databases/openldap-client/buildlink3.mk"
.include "../../security/openssl/buildlink3.mk"
.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"