2000-08-07 07:35:33 +00:00
|
|
|
# New ports collection makefile for: ldapmodule
|
|
|
|
# Date created: 05.Jul 2000
|
|
|
|
# Whom: dirk.meyer@dinoex.sub.org
|
2000-07-13 16:17:29 +00:00
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
2000-08-07 07:35:33 +00:00
|
|
|
PORTNAME= ldapmodule
|
2000-09-09 09:51:07 +00:00
|
|
|
PORTVERSION= 1.10alpha3
|
2002-01-25 06:26:39 +00:00
|
|
|
PORTREVISION= 4
|
|
|
|
CATEGORIES= net python
|
2001-10-07 19:05:33 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= python-ldap
|
2000-09-09 09:51:07 +00:00
|
|
|
DISTNAME= python-ldap-${PORTVERSION}-src
|
2000-07-13 16:17:29 +00:00
|
|
|
|
2002-08-31 09:50:07 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-02-20 19:00:52 +00:00
|
|
|
COMMENT= An LDAP module for python
|
2000-07-13 16:17:29 +00:00
|
|
|
|
2003-10-04 07:37:20 +00:00
|
|
|
BROKEN= "Depends on net/openldap12 which is no more. Maybe net/py-ldap2 will do the trick?"
|
|
|
|
|
2003-02-24 02:26:55 +00:00
|
|
|
LIB_DEPENDS= ldap.1:${PORTSDIR}/net/openldap12
|
2000-07-13 16:17:29 +00:00
|
|
|
|
2002-01-25 06:26:39 +00:00
|
|
|
USE_PYTHON= yes
|
2003-08-02 00:06:42 +00:00
|
|
|
USE_REINPLACE= yes
|
2000-07-13 16:17:29 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2002-01-25 06:26:39 +00:00
|
|
|
CONFIGURE_ARGS+=--with-ldap=${LOCALBASE} --with-python=${PYTHON_CMD}
|
2000-09-09 09:51:07 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:S=-src==}
|
2000-07-13 16:17:29 +00:00
|
|
|
|
2003-08-02 00:06:42 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e '15s,^.*$$,#include "config.h",g' \
|
|
|
|
${WRKSRC}/Modules/LDAPObject.c
|
|
|
|
|
2002-01-25 06:26:39 +00:00
|
|
|
pre-configure:
|
2003-08-02 00:06:42 +00:00
|
|
|
.if ${PYTHON_REL} >= 230
|
|
|
|
@${SED} -e 's,@DEFS@,,g' ${FILESDIR}/Makefile.pre.in > \
|
|
|
|
${WRKSRC}/Misc/Makefile.python-1.4
|
|
|
|
.else
|
2002-01-25 06:26:39 +00:00
|
|
|
@${CP} ${FILESDIR}/Makefile.pre.in ${WRKSRC}/Misc/Makefile.python-1.4
|
2003-08-02 00:06:42 +00:00
|
|
|
.endif
|
2002-01-25 06:26:39 +00:00
|
|
|
|
2003-08-02 00:06:42 +00:00
|
|
|
.include <bsd.port.post.mk>
|