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$
|
|
|
|
|
2002-02-28 08:27:36 +00:00
|
|
|
PORTNAME= ldap2
|
|
|
|
PORTVERSION= CVS200201041716
|
|
|
|
CATEGORIES= net
|
2001-10-07 19:05:33 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= python-ldap
|
2002-02-28 08:27:36 +00:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
DISTNAME= Python-LDAP-${PORTVERSION}
|
2000-07-13 16:17:29 +00:00
|
|
|
|
2001-06-24 04:28:57 +00:00
|
|
|
MAINTAINER= dinoex@FreeBSD.org
|
2000-07-13 16:17:29 +00:00
|
|
|
|
2002-02-28 08:27:36 +00:00
|
|
|
LIB_DEPENDS= ldap.2:${PORTSDIR}/net/openldap2
|
|
|
|
BUILD_DEPENDS= python:${PORTSDIR}/lang/python
|
|
|
|
RUN_DEPENDS= python:${PORTSDIR}/lang/python
|
2000-07-13 16:17:29 +00:00
|
|
|
|
2002-01-25 06:26:39 +00:00
|
|
|
USE_PYTHON= yes
|
2000-09-09 09:51:07 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:S=-src==}
|
2000-07-13 16:17:29 +00:00
|
|
|
|
2002-02-28 08:27:36 +00:00
|
|
|
#class = OpenLDAP2
|
|
|
|
#library_dirs = /usr/local/openldap2/lib
|
|
|
|
#include_dirs = /usr/local/openldap2/include
|
|
|
|
#libs = lber ldap resolv
|
|
|
|
do-configure:
|
|
|
|
@${PERL5} -pi -e "s=/usr/local/openldap2/lib=${LOCALBASE}/lib=" \
|
|
|
|
${WRKSRC}/setup.cfg
|
|
|
|
@${PERL5} -pi \
|
|
|
|
-e "s=/usr/local/openldap2/include=${LOCALBASE}/include=" \
|
|
|
|
${WRKSRC}/setup.cfg
|
|
|
|
@${PERL5} -pi -e "s=lber ldap resolv=lber ldap=" ${WRKSRC}/setup.cfg
|
|
|
|
|
|
|
|
do-build:
|
2002-04-29 09:59:55 +00:00
|
|
|
cd ${WRKSRC} && ${PYTHON_CMD} setup.py build
|
2002-02-28 08:27:36 +00:00
|
|
|
|
|
|
|
do-install:
|
2002-04-29 09:59:55 +00:00
|
|
|
cd ${WRKSRC} && ${PYTHON_CMD} setup.py install
|
2002-01-25 06:26:39 +00:00
|
|
|
|
2000-07-13 16:17:29 +00:00
|
|
|
.include <bsd.port.mk>
|