blob: acc10bde5984d4fdb9bd8c843c368396a09c2ff7 (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# New ports collection makefile for: ldapmodule
# Date created: 05.Jul 2000
# Whom: dirk.meyer@dinoex.sub.org
#
# $FreeBSD$
PORTNAME= ldap2
PORTVERSION= 2.0.10
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= python-ldap
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= python-ldap-${PORTVERSION}
MAINTAINER= vsevolod@FreeBSD.org
COMMENT= An LDAP module for python, for OpenLDAP2
USE_PYTHON= yes
USE_PYDISTUTILS= yes
USE_OPENLDAP= yes
USE_REINPLACE= yes
WANT_OPENLDAP_VER= 22
REPLACE_ARGS= -e 's=/opt/openldap-OPENLDAP_REL_ENG_2_3/include=${LOCALBASE}/include='
.if defined(WITH_SASL)
WANT_OPENLDAP_SASL= yes
REPLACE_ARGS+= -e 's=/opt/sasl/include/sasl=${LOCALBASE}/include/sasl=' \
-e 's=/opt/openldap-OPENLDAP_REL_ENG_2_3/lib=${LOCALBASE}/lib ${LOCALBASE}/lib/sasl2='
CONFLICTS+= openldap22-client-2.*
.else
REPLACE_ARGS+= -e 's=ldap_r lber ssl crypto sasl2=ldap_r lber ssl crypto=' \
-e 's=/opt/openldap-OPENLDAP_REL_ENG_2_3/lib=${LOCALBASE}/lib='
.endif
pre-everything::
@${ECHO} "============================================================="
@${ECHO}
@${ECHO} "You can build ${PKGNAME} with the following options:"
@${ECHO}
@${ECHO} "WITH_SASL with (Cyrus) SASL2 support"
@${ECHO}
@${ECHO} "============================================================="
@${ECHO}
do-configure:
@${REINPLACE_CMD} ${REPLACE_ARGS} ${WRKSRC}/setup.cfg
.include <bsd.port.mk>
|