aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHye-Shik Chang <perky@FreeBSD.org>2003-08-01 22:39:40 +0000
committerHye-Shik Chang <perky@FreeBSD.org>2003-08-01 22:39:40 +0000
commit8eba6802c607eff958ca510aa094b7ca97f2cf09 (patch)
treef114a32d58e8c314c4710677cbb953f4f5f0e3c3
parent965326ca6c322a2468403271726050adb34068a2 (diff)
downloadports-8eba6802c607eff958ca510aa094b7ca97f2cf09.tar.gz
ports-8eba6802c607eff958ca510aa094b7ca97f2cf09.zip
Notes
-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