# New ports collection makefile for: py-MySQLdb # Date created: 04 April 2000 # Whom: Maxim Sobolev # # $FreeBSD$ # PORTNAME= MySQLdb DISTVERSION= 1.2.3 PORTREVISION= 1 CATEGORIES= databases python MASTER_SITES= SF/mysql-python/mysql-python/${PORTVERSION} PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= MySQL-python-${DISTVERSION} MAINTAINER= tj@FreeBSD.org COMMENT= Access a MySQL database through Python USE_PYTHON= -2.7 USE_PYDISTUTILS= easy_install USE_MYSQL= yes PYDISTUTILS_PKGNAME= MySQL-python PYEASYINSTALL_ARCHDEP= yes CONFLICTS= py*-MySQLdb-devel-[0-9]* PORTDOCS= * DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME} OPTIONSFILE= ${PORT_DBDIR}/${PORTNAME}/options OPTIONS= MYSQLCLIENT_R "Use libmysqlclient_r (thread safe)" on .include 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