aboutsummaryrefslogtreecommitdiff
path: root/databases/py-MySQLdb-devel/Makefile
blob: 4d25eda8a27a8878f35208c84e91c00edd9f879d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# New ports collection makefile for:	py-MySQLdb
# Date created:				04 April 2000
# Whom:                 		Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=	py-MySQLdb
PORTVERSION=	1.1.7
PORTREVISION=	0
CATEGORIES=	databases python
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR=	mysql-python
DISTNAME=	MySQL-python-${PORTVERSION}

MAINTAINER=	marcus@corp.grupos.com.br
COMMENT=	Access a MySQL database through Python

USE_PYTHON=		yes
USE_PYDISTUTILS=	yes
USE_MYSQL=		yes

CONFLICTS=	py-MySQLdb-0.* py-MySQLdb-1.[0,2-9].*

OPTIONS=	MYSQLCLIENT_R "Use mysqlclient_r lib" off \
		MYSQLSSL "Use SSL support" off \
		MYSQLCRYPTO "Use CRYPTO support" off

.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

PORTDOCS=		MANIFEST README

.if !defined(NOPORTDOCS)
post-install:
	@${MKDIR} ${DOCSDIR}
.for FILE in ${PORTDOCS}
	@${INSTALL_DATA} ${WRKSRC}/${FILE} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.post.mk>