1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-16 07:58:04 +00:00
freebsd-ports/net/py-ldap1/Makefile

43 lines
1.1 KiB
Makefile
Raw Normal View History

# 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
2003-02-20 19:00:52 +00:00
COMMENT= An LDAP module for python
BROKEN= "Depends on net/openldap12 which is no more. Maybe net/py-ldap2 will do the trick?"
LIB_DEPENDS= ldap.1:${PORTSDIR}/net/openldap12
USE_PYTHON= yes
2003-08-02 00:06:42 +00:00
USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS+=--with-ldap=${LOCALBASE} --with-python=${PYTHON_CMD}
WRKSRC= ${WRKDIR}/${DISTNAME:S=-src==}
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
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
@${CP} ${FILESDIR}/Makefile.pre.in ${WRKSRC}/Misc/Makefile.python-1.4
2003-08-02 00:06:42 +00:00
.endif
2003-08-02 00:06:42 +00:00
.include <bsd.port.post.mk>