blob: 5eae1e2769f9d27efb28b6df15fef783861db2f5 (
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
|
# New ports collection makefile for: ldapmodule
# Date created: 05.Jul 2000
# Whom: dirk.meyer@dinoex.sub.org
#
# $FreeBSD$
PORTNAME= ldapmodule
PORTVERSION= 1.10alpha3
PORTREVISION= 4
CATEGORIES= net python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= python-ldap
DISTNAME= python-ldap-${PORTVERSION}-src
MAINTAINER= ports@FreeBSD.org
COMMENT= An LDAP module for python
LIB_DEPENDS= ldap.1:${PORTSDIR}/net/openldap12
USE_PYTHON= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--with-ldap=${LOCALBASE} --with-python=${PYTHON_CMD}
WRKSRC= ${WRKDIR}/${DISTNAME:S=-src==}
.include <bsd.port.pre.mk>
post-patch:
${REINPLACE_CMD} -e '15s,^.*$$,#include "config.h",g' \
${WRKSRC}/Modules/LDAPObject.c
pre-configure:
.if ${PYTHON_REL} >= 230
@${SED} -e 's,@DEFS@,,g' ${FILESDIR}/Makefile.pre.in > \
${WRKSRC}/Misc/Makefile.python-1.4
.else
@${CP} ${FILESDIR}/Makefile.pre.in ${WRKSRC}/Misc/Makefile.python-1.4
.endif
.include <bsd.port.post.mk>
|