aboutsummaryrefslogtreecommitdiff
path: root/biology
diff options
context:
space:
mode:
authorHye-Shik Chang <perky@FreeBSD.org>2003-08-20 10:40:37 +0000
committerHye-Shik Chang <perky@FreeBSD.org>2003-08-20 10:40:37 +0000
commitc76af540994a0efe39d68b4b78399ccd4a40552b (patch)
tree3d467109b4e250a52a1370be4c33349e1c9ba3c0 /biology
parent823930ec9df3f539f6e830a0fbdbba3d65b7df82 (diff)
downloadports-c76af540994a0efe39d68b4b78399ccd4a40552b.tar.gz
ports-c76af540994a0efe39d68b4b78399ccd4a40552b.zip
Fix build on python2.3
Notes
Notes: svn path=/head/; revision=87367
Diffstat (limited to 'biology')
-rw-r--r--biology/pymol/Makefile7
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>