aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorHye-Shik Chang <perky@FreeBSD.org>2003-08-02 00:06:42 +0000
committerHye-Shik Chang <perky@FreeBSD.org>2003-08-02 00:06:42 +0000
commitd9ed0e95ba4b637f75d53d0fb68c3867dd30f696 (patch)
treee3ea74d3e318e57ae0d56f4e12e90419e040bf8a /net
parent0eff6ce1874d8b09d046ca1692983cf3ddbed967 (diff)
downloadports-d9ed0e95ba4b637f75d53d0fb68c3867dd30f696.tar.gz
ports-d9ed0e95ba4b637f75d53d0fb68c3867dd30f696.zip
Notes
Diffstat (limited to 'net')
-rw-r--r--net/py-ldap1/Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/net/py-ldap1/Makefile b/net/py-ldap1/Makefile
index b0b12bd1befd..5eae1e2769f9 100644
--- a/net/py-ldap1/Makefile
+++ b/net/py-ldap1/Makefile
@@ -18,11 +18,23 @@ 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.mk>
+.include <bsd.port.post.mk>