diff options
author | perky <perky@FreeBSD.org> | 2003-08-02 08:06:42 +0800 |
---|---|---|
committer | perky <perky@FreeBSD.org> | 2003-08-02 08:06:42 +0800 |
commit | ec41afc423c8864d0d18422fcad6e5e4d4b269da (patch) | |
tree | 80179b05ec2a03da89761450760ee98cf0e38c38 | |
parent | ce34bd1314797d071b82b39631e4b391f838a157 (diff) | |
download | freebsd-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/Makefile | 14 |
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> |