freebsd-ports/databases/py-MySQLdb/Makefile

41 lines
902 B
Makefile
Raw Normal View History

# New ports collection makefile for: py-MySQLdb
# Date created: 04 April 2000
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= py-MySQLdb
PORTVERSION= 0.9.0
CATEGORIES= databases python
2001-03-29 17:48:08 -05:00
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= mysql-python
2000-12-04 03:47:04 -05:00
DISTNAME= MySQL-python-${PORTVERSION}
MAINTAINER= sobomax@FreeBSD.org
2000-10-30 04:37:47 -05:00
BUILD_DEPENDS= ${PYDISTUTILS}
LIB_DEPENDS= mysqlclient.10:${PORTSDIR}/databases/mysql323-client
2000-10-30 04:37:47 -05:00
USE_PYTHON= yes
SETUP_CMD= cd ${WRKSRC} && ${PYTHON_CMD} setup.py
DOCS= MANIFEST README doc/*.html
2001-03-29 17:48:08 -05:00
do-configure:
2000-10-30 04:37:47 -05:00
@${PERL} -pi -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/setup.py
2000-10-30 04:37:47 -05:00
do-build:
${SETUP_CMD} build
2000-10-30 04:37:47 -05:00
do-install:
${SETUP_CMD} install -c -O1 --prefix=${PREFIX}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
2001-03-29 17:48:08 -05:00
.for file in ${DOCS}
@${INSTALL_MAN} ${WRKSRC}/${file} ${DOCSDIR}
2001-03-29 17:48:08 -05:00
.endfor
.endif
.include <bsd.port.mk>