1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-10-29 21:39:24 +00:00
freebsd-ports/databases/py-MySQLdb-devel/Makefile
Maxim Sobolev 470f25f6c2 Update md5 and retire FETCH_BERORE_ARGS=-b.
Submitted by:	many (md5)
2000-09-15 13:59:05 +00:00

43 lines
1.1 KiB
Makefile

# New ports collection makefile for: py-MySQLdb
# Date created: 04 April 2000
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= py-MySQLdb
PORTVERSION= 0.2.2
CATEGORIES= databases python
MASTER_SITES= http://dustman.net/andy/python/MySQLdb/${PORTVERSION}/
DISTNAME= MySQLdb-${PORTVERSION}
MAINTAINER= sobomax@FreeBSD.org
BUILD_DEPENDS= python1.5:${PORTSDIR}/lang/python15
LIB_DEPENDS= mysqlclient.6:${PORTSDIR}/databases/mysql322-client
RUN_DEPENDS= python1.5:${PORTSDIR}/lang/python15
ALL_TARGET= _mysqlmodule.o
pre-configure:
@${LN} -s ${LOCALBASE}/lib/python1.5/config/Makefile.pre.in ${WRKSRC}/
do-configure:
@cd ${WRKSRC} && ${MAKE} -f Makefile.pre.in boot
post-build:
@-${LOCALBASE}/bin/python \
${LOCALBASE}/lib/python1.5/compileall.py ${WRKSRC} 2>/dev/null
post-install:
@${INSTALL_DATA} \
${WRKSRC}/MySQLdb.pyc ${PREFIX}/lib/python1.5/site-packages
.if !defined(NOPORTDOCS)
@${MKDIR} ${PREFIX}/share/doc/py-MySQLdb/examples
@${INSTALL_MAN} ${WRKSRC}/doc/* ${PREFIX}/share/doc/py-MySQLdb
@${INSTALL_MAN} \
${WRKSRC}/examples/* ${PREFIX}/share/doc/py-MySQLdb/examples
.endif
.include <bsd.port.mk>