88d74bc517
mysql323-client installs libmysqlclient.so.10 (instead of libmysqlclient.so.6). mysql323-{client,server} are production quality, now (according to MySQL AB at least).
38 lines
927 B
Makefile
38 lines
927 B
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.3.0
|
|
CATEGORIES= databases python
|
|
MASTER_SITES= http://dustman.net/andy/python/MySQLdb/0.3.0/
|
|
DISTNAME= MySQL-python-${PORTVERSION}
|
|
|
|
MAINTAINER= sobomax@FreeBSD.org
|
|
|
|
BUILD_DEPENDS= ${PYDISTUTILS}
|
|
LIB_DEPENDS= mysqlclient.10:${PORTSDIR}/databases/mysql323-client
|
|
|
|
USE_PYTHON= yes
|
|
SETUP_CMD= cd ${WRKSRC} && ${PYTHON_CMD} setup.py
|
|
|
|
do-configure:
|
|
@${PERL} -pi -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/setup.py
|
|
|
|
do-build:
|
|
${SETUP_CMD} build
|
|
|
|
do-install:
|
|
${SETUP_CMD} install
|
|
.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>
|