# Created by: Maxim Sobolev # $FreeBSD: head/databases/py-MySQLdb/Makefile 404743 2015-12-29 14:30:46Z mat $ PORTNAME= MySQLdb DISTVERSIONPREFIX= ${PORTNAME}- DISTVERSION= 1.2.5 CATEGORIES= databases python PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= python@FreeBSD.org COMMENT= Access a MySQL database through Python USES= python:2 USE_PYTHON= distutils autoplist USE_MYSQL= yes USE_GITHUB= yes GH_ACCOUNT= farcepest GH_PROJECT= ${PORTNAME}1 CONFLICTS= py*-MySQLdb-[0-9]* py*-MySQLdb5[0-9]-[0-9]* PORTDOCS= * DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME} WRKSRC= ${WRKDIR}/${PORTNAME}1-${PORTNAME}-${PORTVERSION} OPTIONS_DEFINE= DOCS MYSQLCLIENT_R OPTIONS_DEFAULT= MYSQLCLIENT_R MYSQLCLIENT_R_DESC= Use libmysqlclient_r (thread safe) .include .if ${PORT_OPTIONS:MMYSQLCLIENT_R} pre-configure: @${REINPLACE_CMD} -E -e "s|(threadsafe.*)True|\1 False|" \ ${WRKSRC}/site.cfg .endif post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/doc/* ${STAGEDIR}${DOCSDIR} .include