pkgsrc/databases/py-mysqldb/Makefile

33 lines
1,001 B
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.19 2005/04/26 13:28:26 wiz Exp $
DISTNAME= MySQL-python-0.9.2
PKGNAME= ${PYPKGPREFIX}-mysqldb-0.9.2
PKGREVISION= 1
CATEGORIES= databases python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mysql-python/}
2003-07-17 23:21:03 +02:00
MAINTAINER= tsarna@NetBSD.org
HOMEPAGE= http://sourceforge.net/projects/mysql-python
COMMENT= MySQL interface for Python
PYDISTUTILSPKG= yes
2002-01-19 18:06:23 +01:00
PY_PATCHPLIST= yes
MYSQL_VERSIONS_ACCEPTED= 40
2004-11-10 14:09:22 +01:00
.include "../../mk/mysql.buildlink3.mk"
.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}|" \
-e "s|@MYSQLRTPREFIX@|${BUILDLINK_PREFIX.mysql-client}|" \
<${WRKSRC}/setup.py >${WRKSRC}/setup.py.tmp
.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
${MV} ${WRKSRC}/setup.py.tmp ${WRKSRC}/setup.py
.include "../../mk/bsd.pkg.mk"