blob: 1c413245308bb197bcc58978405853fe12761808 (
plain) (
blame)
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
31
32
33
34
35
36
|
# 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= ports@FreeBSD.org
COMMENT= An LDAP module for python, for OpenLDAP2
LIB_DEPENDS= ldap.2:${PORTSDIR}/${LDAP_PORT}
USE_PYTHON= yes
USE_PYDISTUTILS= yes
WRKSRC= ${WRKDIR}/${DISTNAME:S=-src==}
LDAP_PORT?= net/openldap20-client
#class = OpenLDAP2
#library_dirs = /usr/local/openldap2/lib
#include_dirs = /usr/local/openldap2/include
#libs = lber ldap resolv
do-configure:
@${MV} ${WRKSRC}/setup.cfg ${WRKSRC}/setup.cfg.sed
${SED} -e "s=/usr/local/openldap2/lib=${LOCALBASE}/lib=" \
-e "s=/usr/local/openldap2/include=${LOCALBASE}/include=" \
-e "s=lber ldap resolv=lber ldap=" \
${WRKSRC}/setup.cfg.sed > ${WRKSRC}/setup.cfg
.include <bsd.port.mk>
|