diff options
author | Hye-Shik Chang <perky@FreeBSD.org> | 2003-08-03 19:34:24 +0000 |
---|---|---|
committer | Hye-Shik Chang <perky@FreeBSD.org> | 2003-08-03 19:34:24 +0000 |
commit | 4fa5508c8d5d1a57dc0216d78d4db07ceb6d243e (patch) | |
tree | 839097778e536ae587b1bc7647ae948cddf672b1 /net | |
parent | Enable build on python2.3 (diff) |
- Enable build on python2.3
- Enable build on environments that ${LOCALBASE} != /usr/local
Notes
Notes:
svn path=/head/; revision=86236
Diffstat (limited to 'net')
-rw-r--r-- | net/py-rrdtool/Makefile | 11 | ||||
-rw-r--r-- | net/py-rrdtool/pkg-plist | 2 |
2 files changed, 11 insertions, 2 deletions
diff --git a/net/py-rrdtool/Makefile b/net/py-rrdtool/Makefile index fabc35d19b38..1ab5dd838cbb 100644 --- a/net/py-rrdtool/Makefile +++ b/net/py-rrdtool/Makefile @@ -19,9 +19,18 @@ COMMENT= Python C extension module to access RRDtool files LIB_DEPENDS= rrd:${PORTSDIR}/net/rrdtool USE_PYTHON= yes +USE_REINPLACE= yes 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: @(cd ${WRKSRC} ; ${MAKE} -f Makefile.pre.in boot) -.include <bsd.port.mk> +.include <bsd.port.post.mk> diff --git a/net/py-rrdtool/pkg-plist b/net/py-rrdtool/pkg-plist index 339ff0313691..e0be570ad184 100644 --- a/net/py-rrdtool/pkg-plist +++ b/net/py-rrdtool/pkg-plist @@ -1 +1 @@ -lib/%%PYTHON_VERSION%%/site-packages/RRDtoolmodule.so +%%PYTHON_SITELIBDIR%%/RRDtoolmodule.so |