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
|
2005-01-12 23:13:43 +01:00
|
|
|
PORTVERSION= 1.0.1
|
|
|
|
PORTREVISION= 0
|
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}
|
2000-12-04 09:47:04 +01:00
|
|
|
DISTNAME= MySQL-python-${PORTVERSION}
|
2000-05-26 09:05:20 +02:00
|
|
|
|
2004-11-28 22:43:52 +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
|
|
|
|
2005-01-12 23:13:43 +01:00
|
|
|
CONFLICTS= py*-MySQLdb-devel-[0-9]*
|
2004-11-28 22:43:52 +01:00
|
|
|
|
2004-12-19 00:56:52 +01:00
|
|
|
pre-fetch:
|
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} "You may use the following build options:"
|
|
|
|
@${ECHO} ""
|
|
|
|
@${ECHO} " WITH_MYSQLCLIENT_R=yes Use mysqlclient_r lib"
|
|
|
|
@${ECHO} " WITH_MYSQLSSL=yes Use SSL support"
|
|
|
|
@${ECHO} " WITH_MYSQLCRYPTO=yes Use CRYPTO support"
|
|
|
|
@${ECHO} ""
|
2004-11-28 22:43:52 +01:00
|
|
|
|
|
|
|
.if defined(WITH_MYSQLCLIENT_R)
|
|
|
|
MAKE_ENV+= mysqlclient="mysqlclient_r"
|
|
|
|
.else
|
|
|
|
MAKE_ENV+= mysqlclient="mysqlclient"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_MYSQLSSL)
|
|
|
|
.if defined(WITH_MYSQLCRYPTO)
|
|
|
|
MAKE_ENV+= mysqloptlibs="ssl crypto"
|
|
|
|
.else
|
|
|
|
MAKE_ENV+= mysqloptlibs="ssl"
|
|
|
|
.endif
|
|
|
|
.else
|
|
|
|
.if defined(WITH_MYSQLCRYPTO)
|
|
|
|
MAKE_ENV+= mysqloptlibs="crypto"
|
|
|
|
.else
|
|
|
|
MAKE_ENV+= mysqloptlibs=""
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2005-01-12 23:13:43 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
PORTDOCS= *
|
|
|
|
.endif
|
2004-12-19 00:56:52 +01:00
|
|
|
|
2000-05-26 09:05:20 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-04-29 15:33:57 +02:00
|
|
|
post-install:
|
2001-07-12 13:24:08 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2005-01-12 23:13:43 +01:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/MANIFEST ${DOCSDIR}
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
|
|
|
.for FILE in ${WRKSRC}/doc/*
|
2003-10-06 14:52:56 +02:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
|
2001-03-30 00:48:08 +02:00
|
|
|
.endfor
|
2000-05-26 09:05:20 +02:00
|
|
|
.endif
|
|
|
|
|
2004-12-19 00:56:52 +01:00
|
|
|
.include <bsd.port.mk>
|