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 01:00:51 +01:00
|
|
|
PORTNAME= MySQLdb
|
2005-02-02 16:14:19 +01:00
|
|
|
PORTVERSION= 1.1.10
|
2005-02-09 19:56:12 +01:00
|
|
|
PORTREVISION= 1
|
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 01:00:51 +01:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
PKGNAMESUFFIX= -devel
|
2000-12-04 09:47:04 +01:00
|
|
|
DISTNAME= MySQL-python-${PORTVERSION}
|
2000-05-26 09:05:20 +02:00
|
|
|
|
2004-11-28 22:55:24 +01:00
|
|
|
MAINTAINER= marcus@corp.grupos.com.br
|
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
|
2000-05-26 09:05:20 +02:00
|
|
|
|
2004-12-19 01:00:51 +01:00
|
|
|
CONFLICTS= py*-MySQLdb-[0-9]*
|
2004-11-28 22:55:24 +01:00
|
|
|
|
2004-12-19 01:00:51 +01:00
|
|
|
pre-fetch:
|
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} "You may use the following build options:"
|
|
|
|
@${ECHO} ""
|
2005-02-09 19:56:12 +01:00
|
|
|
@${ECHO} " WITHOUT_MYSQLCLIENT_R=yes Don't use mysqlclient_r lib"
|
|
|
|
@${ECHO} " but is not guarantee thread-safe."
|
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} " Default use mysqlclient_r"
|
2004-12-19 01:00:51 +01:00
|
|
|
@${ECHO} ""
|
2004-11-28 22:55:24 +01:00
|
|
|
|
2005-02-09 19:56:12 +01:00
|
|
|
.if defined(WITHOUT_MYSQLCLIENT_R)
|
2004-11-28 22:55:24 +01:00
|
|
|
MAKE_ENV+= mysqlclient="mysqlclient"
|
|
|
|
.endif
|
|
|
|
|
2005-01-12 23:14:22 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
PORTDOCS= *
|
|
|
|
.endif
|
2001-03-30 00:48:08 +02:00
|
|
|
|
2002-04-29 15:33:57 +02:00
|
|
|
post-install:
|
2005-02-09 19:56:12 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2001-07-12 13:24:08 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2005-02-09 19:56:12 +01:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/*.html ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/*.txt ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/*.css ${DOCSDIR}
|
|
|
|
@${MKDIR} ${DOCSDIR}/doc
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/doc/*.html ${DOCSDIR}/doc
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/doc/*.css ${DOCSDIR}/doc
|
|
|
|
@${MKDIR} ${DOCSDIR}/doc/public
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/doc/public/* ${DOCSDIR}/doc/public
|
|
|
|
@${MKDIR} ${DOCSDIR}/doc/private
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/doc/private/* ${DOCSDIR}/doc/private
|
2005-01-29 20:25:38 +01:00
|
|
|
@${MKDIR} ${DOCSDIR}/public
|
2005-02-09 19:56:12 +01:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/public/* ${DOCSDIR}/public
|
2005-01-29 20:25:38 +01:00
|
|
|
@${MKDIR} ${DOCSDIR}/private
|
2005-02-09 19:56:12 +01:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/private/* ${DOCSDIR}/private
|
2000-05-26 09:05:20 +02:00
|
|
|
.endif
|
|
|
|
|
2004-12-19 01:00:51 +01:00
|
|
|
.include <bsd.port.mk>
|