freebsd-ports/databases/py-MySQLdb/Makefile
Alexander Botero-Lowry 4942ce5a7d - Make Python 2.5.1 the default Python version
- Add significantly better support in bsd.python.mk for working with
   Python Eggs and the easy_install system

Tested by:	pointyhat runs
Approved by:	pav (portmgr)
Most work by:	perky
Thanks to:	pav
2007-07-30 09:42:28 +00:00

47 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= MySQLdb
DISTVERSION= 1.2.2
CATEGORIES= databases python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= mysql-python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= MySQL-python-${DISTVERSION}
MAINTAINER= mnag@FreeBSD.org
COMMENT= Access a MySQL database through Python
USE_PYTHON= yes
USE_PYDISTUTILS= yes
USE_MYSQL= yes
PYDISTUTILS_PKGNAME= MySQL-python
PYDISTUTILS_PKGVERSION= 1.2.2
CONFLICTS= py*-MySQLdb-devel-[0-9]*
PORTDOCS= *
OPTIONSFILE= ${PORT_DBDIR}/${PORTNAME}/options
OPTIONS= MYSQLCLIENT_R "Use libmysqlclient_r (thread safe)" on
.include <bsd.port.pre.mk>
pre-configure:
.if defined(WITHOUT_MYSQLCLIENT_R)
@${REINPLACE_CMD} -E -e "s|(threadsafe.*)True|\1 False|" \
${WRKSRC}/site.cfg
.endif
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
.endif
.include <bsd.port.post.mk>