blob: 91b05888d701d739f5a82b13a8830905890ec338 (
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.3 2000/12/28 15:36:32 wiz Exp $
DISTNAME= MySQLdb-0.1.3
PKGNAME= py-mysqldb-0.1.3
CATEGORIES= databases
MASTER_SITES= ftp://starship.python.net/pub/crew/adustman/
MAINTAINER= tsarna@netbsd.org
HOMEPAGE= http://starship.python.net/crew/adustman/MySQLdb.html
DEPENDS+= python>=2.0:../../lang/python
DEPENDS+= mysql-client-3.22.32:../../databases/mysql-client
ALL_TARGET= default
do-configure:
${SED} -e 's,@PREFIX@,${PREFIX},g' ${FILESDIR}/Setup.in \
>${WRKSRC}/Setup.in
${CP} ${PREFIX}/lib/python2.0/config/Makefile.pre.in ${WRKSRC}
(cd ${WRKSRC}; ${MAKE} -f Makefile.pre.in boot)
post-build:
(cd ${WRKSRC}; ${PREFIX}/bin/python -c "import MySQLdb")
(cd ${WRKSRC}; ${PREFIX}/bin/python -O -c "import MySQLdb")
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/MySQLdb.py ${WRKSRC}/MySQLdb.py[co] \
${PREFIX}/lib/python2.0/site-packages
.include "../../mk/bsd.pkg.mk"
|