diff options
author | perky <perky@FreeBSD.org> | 2003-08-20 18:40:37 +0800 |
---|---|---|
committer | perky <perky@FreeBSD.org> | 2003-08-20 18:40:37 +0800 |
commit | 7878f2b14fe2fccf1ed523876323d92b671ecbfa (patch) | |
tree | 621756dd4a93f45f2070b04894bcb78a1a752a93 | |
parent | 3c14ca2987415811a9a86020e8f5a7430fa25b31 (diff) | |
download | freebsd-ports-gnome-7878f2b14fe2fccf1ed523876323d92b671ecbfa.tar.gz freebsd-ports-gnome-7878f2b14fe2fccf1ed523876323d92b671ecbfa.tar.zst freebsd-ports-gnome-7878f2b14fe2fccf1ed523876323d92b671ecbfa.zip |
Fix build on python2.3
-rw-r--r-- | biology/pymol/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/biology/pymol/Makefile b/biology/pymol/Makefile index 11af04acd5d1..16c663121e8f 100644 --- a/biology/pymol/Makefile +++ b/biology/pymol/Makefile @@ -26,8 +26,13 @@ USE_GMAKE= yes USE_REINPLACE= yes USE_PYTHON= yes +.include <bsd.port.pre.mk> + pre-patch: @${INSTALL_DATA} ${WRKSRC}/setup/Rules.linux ${WRKSRC}/Rules.make +.if ${PYTHON_REL} >= 230 + @${REINPLACE_CMD} -e 's,@DEFS@,,g' ${WRKSRC}/contrib/modules/Makefile.pre.in.src +.endif post-patch: @${INSTALL_DATA} ${WRKSRC}/setup/pymol.com.linux-rh7x ${WRKSRC}/setup/pymol.com @@ -51,4 +56,4 @@ do-install: @${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${PREFIX}/share/pymol/modules @${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py ${PREFIX}/share/pymol/modules -.include <bsd.port.mk> +.include <bsd.port.post.mk> |