From dd77a0bf4f16fba5a2525c1423e61c0d5976e035 Mon Sep 17 00:00:00 2001 From: perky Date: Wed, 20 Aug 2003 09:35:46 +0000 Subject: Fix build on python2.3 --- devel/fnorb/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/devel/fnorb/Makefile b/devel/fnorb/Makefile index 430b62230534..ce1809299b6c 100644 --- a/devel/fnorb/Makefile +++ b/devel/fnorb/Makefile @@ -20,6 +20,7 @@ WRKSRC= ${WRKDIR}/Fnorb-${PORTVERSION} BUILD_WRKSRC= ${WRKSRC}/src INSTALL_WRKSRC= ${BUILD_WRKSRC} USE_PYTHON= yes +USE_REINPLACE= yes ALL_TARGET= CPIO= cpio --quiet -pdum -R @@ -27,10 +28,17 @@ FNORB_DIR= ${PREFIX}/lib/${PYTHON_VERSION}/site-packages/Fnorb FNORB_BINS= fnaming fnendian fnfeed fngen fnidl fnifr fnior fnlogger \ fnmetrics fnmkior fnoptions fnping +.include + do-configure: @ cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \ Makefile.pre.in boot +post-patch: +.if ${PYTHON_REL} >= 230 + @ ${REINPLACE_CMD} -e 's,@DEFS@,,g' ${WRKSRC}/src/Makefile.pre.in +.endif + post-build: @ ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py -f ${WRKSRC} @ ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py -f ${WRKSRC} @@ -59,4 +67,4 @@ post-install: .endfor .endif -.include +.include -- cgit