mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-15 23:50:44 +00:00
8ee05fcbde
custom Makefile for this purpose, which led to resulting module being bloated (~600K) by linking all Python code from libpython1.5 into it. With this patch the module will use standard Python's way to build supplemental modules, which should generally be cleaner. Other good sideeffect is that after this patch resulting module is only 20K in size. PR: ports/17893 Submitted by: Maxim Sobolev <sobomax@altavista.net>
38 lines
980 B
Makefile
38 lines
980 B
Makefile
# 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://www.mysql.com/Contrib/
|
|
DISTNAME= MySQLmodule-${PORTVERSION}
|
|
|
|
MAINTAINER= dr@domix.de
|
|
|
|
BUILD_DEPENDS= python:${PORTSDIR}/lang/python
|
|
LIB_DEPENDS= mysqlclient.6:${PORTSDIR}/databases/mysql322-client
|
|
RUN_DEPENDS= python:${PORTSDIR}/lang/python
|
|
|
|
ALL_TARGET= MySQLmodule.so
|
|
|
|
pre-configure:
|
|
${CP} ${FILESDIR}/Setup ${WRKSRC}/Setup
|
|
${LN} -s ${LOCALBASE}/lib/python1.5/config/Makefile.pre.in ${WRKSRC}/
|
|
|
|
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} "share/doc/py-MySQL/README" >> ${TMPPLIST}
|
|
${ECHO} "@dirrm share/doc/py-MySQL" >> ${TMPPLIST}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|