diff options
author | Clement Laforet <clement@FreeBSD.org> | 2004-11-28 21:43:52 +0000 |
---|---|---|
committer | Clement Laforet <clement@FreeBSD.org> | 2004-11-28 21:43:52 +0000 |
commit | 2624ec2552e0998a973f7770583df08b6ae601c7 (patch) | |
tree | 725d5726c48399b0f0f50de6677df4f60446c4c5 /databases/py-MySQLdb/Makefile | |
parent | 264dc093d411ce0317d5d13629e42611f50a57f9 (diff) |
- Use OPTIONS and add various knob [1]
- Fix build with mysql-client-5.0.x [2]
- Pass maintainership to submitter of [1]
PRs: ports/72656 [1],
ports/70082 [2]
Submitted by: Marcus Grando <marcus@corp.grupos.com.br> [1],
Roman Bogorodskiy <bogorodskiy@inbox.ru> [2]
Notes
Notes:
svn path=/head/; revision=122701
Diffstat (limited to 'databases/py-MySQLdb/Makefile')
-rw-r--r-- | databases/py-MySQLdb/Makefile | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/databases/py-MySQLdb/Makefile b/databases/py-MySQLdb/Makefile index ea9e767dbbb1..f814f8e6a2fe 100644 --- a/databases/py-MySQLdb/Makefile +++ b/databases/py-MySQLdb/Makefile @@ -7,20 +7,47 @@ PORTNAME= py-MySQLdb PORTVERSION= 1.0.0 +PORTREVISION= 1 CATEGORIES= databases python MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= mysql-python DISTNAME= MySQL-python-${PORTVERSION} -MAINTAINER= clement@FreeBSD.org +MAINTAINER= marcus@corp.grupos.com.br COMMENT= Access a MySQL database through Python USE_PYTHON= yes USE_PYDISTUTILS= yes USE_MYSQL= yes +OPTIONS= MYSQLCLIENT_R "Use mysqlclient_r lib" off \ + MYSQLSSL "Use SSL support" off \ + MYSQLCRYPTO "Use CRYPTO support" off + PORTDOCS= MANIFEST README +.include <bsd.port.pre.mk> + +.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 + .if !defined(NOPORTDOCS) post-install: @${MKDIR} ${DOCSDIR} @@ -29,4 +56,4 @@ post-install: .endfor .endif -.include <bsd.port.mk> +.include <bsd.port.post.mk> |