summaryrefslogtreecommitdiff
path: root/databases/py-mysql/Makefile
blob: 51b04a716e30610bb1259667d4ab11db64529122 (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
31
32
33
# $NetBSD: Makefile,v 1.3 1998/07/06 11:44:42 frueauf Exp $

DISTNAME=	MySQLmodule-1.1
PKGNAME=	py-mysql-1.1
CATEGORIES=	databases
MASTER_SITES=	http://snail.earthlight.co.nz/mysql/
DISTFILES=	MySQLmodule-1.1${EXTRACT_SUFX} \
		Mysqldb.py mysqlshelve.py

MAINTAINER=	tsarna@endicor.com

DEPENDS+=	python-1.5.1:../../lang/python \
		mysql-3.21.32a:../../databases/mysql

EXTRACT_ONLY=	MySQLmodule-1.1${EXTRACT_SUFX}
ALL_TARGET=	default

do-configure:
	${SED} -e 's,@PREFIX@,${PREFIX},' ${FILESDIR}/Setup.in \
		>${WRKSRC}/Setup.in
	${CP} ${PREFIX}/lib/python1.5/config/Makefile.pre.in ${WRKSRC}
	(cd ${WRKSRC}; make -f Makefile.pre.in boot)
	${CP} ${DISTDIR}/Mysqldb.py ${DISTDIR}/mysqlshelve.py ${WRKSRC}

post-build:
	(cd ${WRKSRC}; python ${PREFIX}/lib/python1.5/compileall.py .)
	(cd ${WRKSRC}; python -O ${PREFIX}/lib/python1.5/compileall.py .)

post-install:
	${INSTALL_SCRIPT} ${WRKSRC}/*.py ${WRKSRC}/*.py[co] \
		${PREFIX}/lib/python1.5/site-packages

.include "../../mk/bsd.pkg.mk"