2008-06-12 04:14:13 +02:00
|
|
|
# $NetBSD: Makefile,v 1.24 2008/06/12 02:14:20 joerg Exp $
|
2000-02-26 19:45:48 +01:00
|
|
|
|
2003-04-13 16:28:53 +02:00
|
|
|
DISTNAME= MySQL-python-0.9.2
|
|
|
|
PKGNAME= ${PYPKGPREFIX}-mysqldb-0.9.2
|
2006-02-06 00:08:03 +01:00
|
|
|
PKGREVISION= 3
|
2004-07-22 11:15:59 +02:00
|
|
|
CATEGORIES= databases python
|
2002-01-29 15:39:38 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mysql-python/}
|
2000-02-26 19:45:48 +01:00
|
|
|
|
2003-07-17 23:21:03 +02:00
|
|
|
MAINTAINER= tsarna@NetBSD.org
|
2002-01-29 15:39:38 +01:00
|
|
|
HOMEPAGE= http://sourceforge.net/projects/mysql-python
|
2001-02-16 15:17:22 +01:00
|
|
|
COMMENT= MySQL interface for Python
|
2000-02-26 19:45:48 +01:00
|
|
|
|
2008-06-12 04:14:13 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
2002-01-29 15:39:38 +01:00
|
|
|
PYDISTUTILSPKG= yes
|
2002-01-19 18:06:23 +01:00
|
|
|
PY_PATCHPLIST= yes
|
|
|
|
|
2008-04-25 21:47:58 +02:00
|
|
|
PYTHON_VERSIONS_ACCEPTED= 25 24 23 21
|
|
|
|
|
2004-10-29 07:59:23 +02:00
|
|
|
.include "../../mk/mysql.buildlink3.mk"
|
2003-05-11 10:46:23 +02:00
|
|
|
.include "../../lang/python/extension.mk"
|
|
|
|
|
|
|
|
# To pickup python version info
|
2004-04-25 18:07:34 +02:00
|
|
|
pre-configure:
|
2002-10-10 14:07:48 +02:00
|
|
|
${SED} -e "s|@MYSQLPREFIX@|${BUILDLINK_PREFIX.mysql-client}|" \
|
2002-01-29 15:39:38 +01:00
|
|
|
-e "s|@MYSQLRTPREFIX@|${BUILDLINK_PREFIX.mysql-client}|" \
|
|
|
|
<${WRKSRC}/setup.py >${WRKSRC}/setup.py.tmp
|
2003-05-11 10:46:23 +02:00
|
|
|
.if ${PYPKGPREFIX:Mpy20} == "py20"
|
|
|
|
${SED} -e "s|platforms = .ALL.|#platforms = \"ALL\"|" <${WRKSRC}/setup.py.tmp > ${WRKSRC}/setup.py.tmp2
|
|
|
|
${MV} ${WRKSRC}/setup.py.tmp2 ${WRKSRC}/setup.py.tmp
|
|
|
|
.endif
|
2002-01-29 15:39:38 +01:00
|
|
|
${MV} ${WRKSRC}/setup.py.tmp ${WRKSRC}/setup.py
|
2000-02-26 19:45:48 +01:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|