blob: a23bd51813a61519f0c4952ddb6b48c3f8741767 (
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
|
# New ports collection makefile for: py-MySQL
# Date created: 05 September 1999
# Whom: Dominik Rothert <dr@domix.de>
#
# $FreeBSD$
#
PORTNAME= py-MySQL
PORTVERSION= 1.4
CATEGORIES= databases python
MASTER_SITES= http://web.tryc.on.ca/mysql/Downloads/Contrib/ \
http://mysql.orst.edu/Downloads/Contrib/ \
http://mysql.netvisao.pt/Downloads/Contrib/
DISTNAME= MySQLmodule-${PORTVERSION}
MAINTAINER= nc-rotherdo@netcologne.de
COMMENT= Access a MySQL database through Python
LIB_DEPENDS= mysqlclient.10:${PORTSDIR}/databases/mysql323-client
PLIST_FILES= lib/%%PYTHON_VERSION%%/site-packages/MySQLmodule.so
USE_PYTHON= yes
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} < 210
ALL_TARGET= MySQLmodule.so
.endif
.if ${PYTHON_REL} >= 220
MAKEFILE_PREIN= ${FILESDIR}/Makefile.pre.in
.else
MAKEFILE_PREIN= ${PYTHONPREFIX_LIBDIR}/config/Makefile.pre.in
.endif
pre-configure:
${CP} ${FILESDIR}/Setup ${WRKSRC}/Setup
.if ${PYTHON_REL} >= 230
${SED} -e 's,@DEFS@,,g' ${MAKEFILE_PREIN} > ${WRKSRC}/Makefile.pre.in
.else
${LN} -s ${MAKEFILE_PREIN} ${WRKSRC}/
.endif
do-configure:
cd ${WRKSRC} && ${MAKE} -f Makefile.pre.in boot
.if !defined(NOPORTDOCS)
post-install:
@${MKDIR} ${PREFIX}/share/doc/py-MySQL
@${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/py-MySQL
@${ECHO_CMD} "share/doc/py-MySQL/README" >> ${TMPPLIST}
@${ECHO_CMD} "@dirrm share/doc/py-MySQL" >> ${TMPPLIST}
.endif
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|