aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorperky <perky@FreeBSD.org>2003-08-02 08:06:42 +0800
committerperky <perky@FreeBSD.org>2003-08-02 08:06:42 +0800
commitec41afc423c8864d0d18422fcad6e5e4d4b269da (patch)
tree80179b05ec2a03da89761450760ee98cf0e38c38
parentce34bd1314797d071b82b39631e4b391f838a157 (diff)
downloadfreebsd-ports-gnome-ec41afc423c8864d0d18422fcad6e5e4d4b269da.tar.gz
freebsd-ports-gnome-ec41afc423c8864d0d18422fcad6e5e4d4b269da.tar.zst
freebsd-ports-gnome-ec41afc423c8864d0d18422fcad6e5e4d4b269da.zip
Enable build on python2.3.
-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>