mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
- Enable build on python2.3
- Enable build on environments that ${LOCALBASE} != /usr/local
This commit is contained in:
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
|
@ -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>
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
lib/%%PYTHON_VERSION%%/site-packages/RRDtoolmodule.so
|
%%PYTHON_SITELIBDIR%%/RRDtoolmodule.so
|
||||||
|
|
Loading…
Add table
Reference in a new issue