blob: daba5f4ac661a53a42a2f526ee9fa1cbdbefed24 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# $NetBSD: Makefile,v 1.12 2003/07/17 21:28:53 grant Exp $
DISTNAME= MySQL-python-0.9.2
PKGNAME= ${PYPKGPREFIX}-mysqldb-0.9.2
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=mysql-python/}
MAINTAINER= tsarna@NetBSD.org
HOMEPAGE= http://sourceforge.net/projects/mysql-python
COMMENT= MySQL interface for Python
USE_BUILDLINK2= yes
PYDISTUTILSPKG= yes
PY_PATCHPLIST= yes
.include "../../databases/mysql-client/buildlink2.mk"
.include "../../lang/python/extension.mk"
# To pickup python version info
post-patch:
${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"
|