summaryrefslogtreecommitdiffstats
path: root/devel/fnorb
diff options
context:
space:
mode:
authorperky <perky@FreeBSD.org>2003-08-20 09:35:46 +0000
committerperky <perky@FreeBSD.org>2003-08-20 09:35:46 +0000
commitdd77a0bf4f16fba5a2525c1423e61c0d5976e035 (patch)
treeabc43f112f8f91eaaa99d8269cb122ffc18398d6 /devel/fnorb
parent63701f83c6d0b887cad00dd3244164228782b967 (diff)
downloadFreeBSD-ports-dd77a0bf4f16fba5a2525c1423e61c0d5976e035.zip
FreeBSD-ports-dd77a0bf4f16fba5a2525c1423e61c0d5976e035.tar.gz
Fix build on python2.3
Diffstat (limited to 'devel/fnorb')
-rw-r--r--devel/fnorb/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/devel/fnorb/Makefile b/devel/fnorb/Makefile
index 430b622..ce18092 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>
OpenPOWER on IntegriCloud