forked from Lainports/freebsd-ports
revision of the python ldap bindings in ports (in net/py-ldap2) because some of the function interfaces have changed. Update to 2.0.0pre04 Additional fixes in pkg-plist PR: 38423 Submitted by: jdunn@verticalscope.com
35 lines
919 B
Makefile
35 lines
919 B
Makefile
# New ports collection makefile for: ldapmodule
|
|
# Date created: 05.Jul 2000
|
|
# Whom: dirk.meyer@dinoex.sub.org
|
|
#
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= ldap2
|
|
PORTVERSION= 2.0.0pre04
|
|
CATEGORIES= net
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= python-ldap
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= python-ldap-${PORTVERSION}
|
|
|
|
MAINTAINER= dinoex@FreeBSD.org
|
|
|
|
LIB_DEPENDS= ldap.2:${PORTSDIR}/net/openldap2
|
|
|
|
USE_PYTHON= yes
|
|
USE_PYDISTUTILS= yes
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:S=-src==}
|
|
|
|
#class = OpenLDAP2
|
|
#library_dirs = /usr/local/openldap2/lib
|
|
#include_dirs = /usr/local/openldap2/include
|
|
#libs = lber ldap resolv
|
|
do-configure:
|
|
@${PERL5} -pi -e "s=/usr/local/openldap2/lib=${LOCALBASE}/lib=" \
|
|
${WRKSRC}/setup.cfg
|
|
@${PERL5} -pi \
|
|
-e "s=/usr/local/openldap2/include=${LOCALBASE}/include=" \
|
|
${WRKSRC}/setup.cfg
|
|
@${PERL5} -pi -e "s=lber ldap resolv=lber ldap=" ${WRKSRC}/setup.cfg
|
|
|
|
.include <bsd.port.mk>
|