aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authorperky <perky@FreeBSD.org>2003-08-02 06:39:40 +0800
committerperky <perky@FreeBSD.org>2003-08-02 06:39:40 +0800
commit271d9f1c59a98d251bf68a4522117ae2cc2f6937 (patch)
treedb32e7ac1852eb2a5639592eb1d7459175f8c804 /databases
parent8b9e6f0383e6d857397d2cc8a7c6d73f07d09fce (diff)
downloadfreebsd-ports-gnome-271d9f1c59a98d251bf68a4522117ae2cc2f6937.tar.gz
freebsd-ports-gnome-271d9f1c59a98d251bf68a4522117ae2cc2f6937.tar.zst
freebsd-ports-gnome-271d9f1c59a98d251bf68a4522117ae2cc2f6937.zip
Make version detection routines more flexible to cope with python2.3.
Diffstat (limited to 'databases')
-rw-r--r--databases/py-MySQL/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/databases/py-MySQL/Makefile b/databases/py-MySQL/Makefile
index 634911c60888..2bfda75a8c13 100644
--- a/databases/py-MySQL/Makefile
+++ b/databases/py-MySQL/Makefile
@@ -22,18 +22,22 @@ USE_PYTHON= yes
.include <bsd.port.pre.mk>
-.if ${PYTHON_VERSION} != "python2.1" && ${PYTHON_VERSION} != "python2.2"
+.if ${PYTHON_REL} < 210
ALL_TARGET= MySQLmodule.so
.endif
-.if ${PYTHON_VERSION} == "python2.2"
+.if ${PYTHON_REL} >= 220
MAKEFILE_PREIN= ${FILESDIR}/Makefile.pre.in
.else
-MAKEFILE_PREIN= ${LOCALBASE}/lib/${PYTHON_VERSION}/config/Makefile.pre.in
+MAKEFILE_PREIN= ${PYTHONPREFIX_LIBDIR}/config/Makefile.pre.in
.endif
pre-configure:
${CP} ${FILESDIR}/Setup ${WRKSRC}/Setup
+.if ${PYTHON_REL} >= 230
+ ${SED} -e 's,@DEFS@,,g' ${MAKEFILE_PREIN} > ${WRKSRC}/Makefile.pre.in
+.else
${LN} -s ${MAKEFILE_PREIN} ${WRKSRC}/
+.endif
do-configure:
cd ${WRKSRC} && ${MAKE} -f Makefile.pre.in boot