2000-05-26 09:05:20 +02:00
|
|
|
# New ports collection makefile for: py-MySQLdb
|
|
|
|
# Date created: 04 April 2000
|
|
|
|
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
2004-12-19 00:56:52 +01:00
|
|
|
PORTNAME= MySQLdb
|
2007-04-06 05:06:44 +02:00
|
|
|
DISTVERSION= 1.2.2
|
2000-05-26 09:05:20 +02:00
|
|
|
CATEGORIES= databases python
|
2001-03-30 00:48:08 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= mysql-python
|
2004-12-19 00:56:52 +01:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
2006-04-23 02:25:03 +02:00
|
|
|
DISTNAME= MySQL-python-${DISTVERSION}
|
2000-05-26 09:05:20 +02:00
|
|
|
|
2005-09-16 19:58:32 +02:00
|
|
|
MAINTAINER= mnag@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= Access a MySQL database through Python
|
2000-05-26 09:05:20 +02:00
|
|
|
|
2003-10-06 14:52:56 +02:00
|
|
|
USE_PYTHON= yes
|
2002-04-29 15:33:57 +02:00
|
|
|
USE_PYDISTUTILS= yes
|
2003-10-06 14:52:56 +02:00
|
|
|
USE_MYSQL= yes
|
2007-07-30 11:42:28 +02:00
|
|
|
PYDISTUTILS_PKGNAME= MySQL-python
|
|
|
|
PYDISTUTILS_PKGVERSION= 1.2.2
|
2000-05-26 09:05:20 +02:00
|
|
|
|
2005-01-12 23:13:43 +01:00
|
|
|
CONFLICTS= py*-MySQLdb-devel-[0-9]*
|
2004-11-28 22:43:52 +01:00
|
|
|
|
2006-04-23 02:25:03 +02:00
|
|
|
PORTDOCS= *
|
2004-11-28 22:43:52 +01:00
|
|
|
|
2006-04-23 02:25:03 +02:00
|
|
|
OPTIONSFILE= ${PORT_DBDIR}/${PORTNAME}/options
|
|
|
|
OPTIONS= MYSQLCLIENT_R "Use libmysqlclient_r (thread safe)" on
|
2004-11-28 22:43:52 +01:00
|
|
|
|
2006-04-23 02:25:03 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-04-06 05:06:44 +02:00
|
|
|
pre-configure:
|
2006-04-23 02:25:03 +02:00
|
|
|
.if defined(WITHOUT_MYSQLCLIENT_R)
|
|
|
|
@${REINPLACE_CMD} -E -e "s|(threadsafe.*)True|\1 False|" \
|
|
|
|
${WRKSRC}/site.cfg
|
2005-01-12 23:13:43 +01:00
|
|
|
.endif
|
2004-12-19 00:56:52 +01:00
|
|
|
|
2002-04-29 15:33:57 +02:00
|
|
|
post-install:
|
2005-02-08 23:14:31 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2001-07-12 13:24:08 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2006-04-23 02:28:58 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/* ${DOCSDIR}
|
2000-05-26 09:05:20 +02:00
|
|
|
.endif
|
|
|
|
|
2006-04-23 02:25:03 +02:00
|
|
|
.include <bsd.port.post.mk>
|