diff options
author | perky <perky@FreeBSD.org> | 2003-08-04 03:34:24 +0800 |
---|---|---|
committer | perky <perky@FreeBSD.org> | 2003-08-04 03:34:24 +0800 |
commit | 2d38d2af35967a6f00e357295bedc3edc6e4fb7d (patch) | |
tree | 86454ac245abe9e510966b333aeb7efebf3b50ca /net | |
parent | 1d9799a228773bdab0a09161b5c4063ebcbd465d (diff) | |
download | freebsd-ports-graphics-2d38d2af35967a6f00e357295bedc3edc6e4fb7d.tar.gz freebsd-ports-graphics-2d38d2af35967a6f00e357295bedc3edc6e4fb7d.tar.zst freebsd-ports-graphics-2d38d2af35967a6f00e357295bedc3edc6e4fb7d.zip |
- Enable build on python2.3
- Enable build on environments that ${LOCALBASE} != /usr/local
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 fabc35d19b3..1ab5dd838cb 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 339ff031369..e0be570ad18 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 |