- Enable build on python2.3

- Enable build on environments that ${LOCALBASE} != /usr/local
This commit is contained in:
Hye-Shik Chang 2003-08-03 19:34:24 +00:00
parent 1617a31472
commit 4fa5508c8d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=86236
2 changed files with 11 additions and 2 deletions

View file

@ -19,9 +19,18 @@ COMMENT= Python C extension module to access RRDtool files
LIB_DEPENDS= rrd:${PORTSDIR}/net/rrdtool LIB_DEPENDS= rrd:${PORTSDIR}/net/rrdtool
USE_PYTHON= yes USE_PYTHON= yes
USE_REINPLACE= yes
WRKSRC= ${WRKDIR}/PyRRDtool/src WRKSRC= ${WRKDIR}/PyRRDtool/src
.include <bsd.port.pre.mk>
post-patch:
.if ${PYTHON_REL} >= 230
@${REINPLACE_CMD} -e 's,@DEFS@,,g' ${WRKSRC}/Makefile.pre.in
.endif
@${REINPLACE_CMD} -e 's,/usr/local,${LOCALBASE},g' ${WRKSRC}/Setup.in
do-configure: do-configure:
@(cd ${WRKSRC} ; ${MAKE} -f Makefile.pre.in boot) @(cd ${WRKSRC} ; ${MAKE} -f Makefile.pre.in boot)
.include <bsd.port.mk> .include <bsd.port.post.mk>

View file

@ -1 +1 @@
lib/%%PYTHON_VERSION%%/site-packages/RRDtoolmodule.so %%PYTHON_SITELIBDIR%%/RRDtoolmodule.so