diff options
author | perky <perky@FreeBSD.org> | 2003-08-20 17:35:46 +0800 |
---|---|---|
committer | perky <perky@FreeBSD.org> | 2003-08-20 17:35:46 +0800 |
commit | dd77a0bf4f16fba5a2525c1423e61c0d5976e035 (patch) | |
tree | abc43f112f8f91eaaa99d8269cb122ffc18398d6 /devel/fnorb | |
parent | 63701f83c6d0b887cad00dd3244164228782b967 (diff) | |
download | freebsd-ports-gnome-dd77a0bf4f16fba5a2525c1423e61c0d5976e035.tar.gz freebsd-ports-gnome-dd77a0bf4f16fba5a2525c1423e61c0d5976e035.tar.zst freebsd-ports-gnome-dd77a0bf4f16fba5a2525c1423e61c0d5976e035.zip |
Fix build on python2.3
Diffstat (limited to 'devel/fnorb')
-rw-r--r-- | devel/fnorb/Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
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 <bsd.port.pre.mk> + 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 <bsd.port.mk> +.include <bsd.port.post.mk> |