2002-02-08 14:23:09 +01:00
|
|
|
# New ports collection makefile for: DBD::mysql
|
|
|
|
# Date created: 27 Nov 2001
|
|
|
|
# Whom: Sergey Skvortsov <skv@FreeBSD.org>
|
1997-06-18 21:39:25 +02:00
|
|
|
#
|
1999-08-25 07:28:01 +02:00
|
|
|
# $FreeBSD$
|
1997-06-18 21:39:25 +02:00
|
|
|
#
|
|
|
|
|
2001-11-27 18:51:06 +01:00
|
|
|
PORTNAME= DBD-mysql
|
2005-04-02 17:34:37 +02:00
|
|
|
PORTVERSION= 2.9005
|
1997-06-18 21:39:25 +02:00
|
|
|
CATEGORIES= databases perl5
|
1997-09-14 04:55:26 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
|
2005-04-02 17:34:37 +02:00
|
|
|
MASTER_SITE_SUBDIR= ../../authors/id/C/CA/CAPTTOFU
|
2000-06-17 04:37:15 +02:00
|
|
|
PKGNAMEPREFIX= p5-
|
1997-06-18 21:39:25 +02:00
|
|
|
|
2002-02-08 14:23:09 +01:00
|
|
|
MAINTAINER= skv@FreeBSD.org
|
2003-12-26 18:05:39 +01:00
|
|
|
COMMENT?= MySQL driver for the Perl5 Database Interface (DBI)
|
1997-06-18 21:39:25 +02:00
|
|
|
|
2003-12-26 18:05:39 +01:00
|
|
|
CONFLICTS?= p5-Mysql-modules-* p5-DBD-mysql4[0-9]-* p5-DBD-mysql5[0-9]-*
|
2003-04-04 07:21:36 +02:00
|
|
|
|
2003-12-26 18:05:39 +01:00
|
|
|
USE_MYSQL= yes
|
2003-04-04 07:21:36 +02:00
|
|
|
|
2001-03-01 07:39:18 +01:00
|
|
|
PERL_CONFIGURE= yes
|
1997-06-18 21:39:25 +02:00
|
|
|
|
2003-03-04 15:57:50 +01:00
|
|
|
MAN3= Bundle::DBD::mysql.3 DBD::mysql.3 DBD::mysql::INSTALL.3 Mysql.3
|
1997-06-18 21:39:25 +02:00
|
|
|
|
2003-12-26 18:05:39 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2003-09-16 07:43:52 +02:00
|
|
|
.if ${PERL_LEVEL} < 500600
|
|
|
|
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI-137
|
|
|
|
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI-137
|
|
|
|
.else
|
|
|
|
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI
|
|
|
|
RUN_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI
|
|
|
|
.endif
|
|
|
|
|
2004-01-18 16:22:11 +01:00
|
|
|
post-patch:
|
|
|
|
.if ${PERL_LEVEL} < 500600
|
|
|
|
@${PERL} -pi -e 's/(?:use|no) warnings;?//; s/our (%\w+)/use vars qw(\1);\n\1/' \
|
|
|
|
${WRKSRC}/lib/DBD/mysql/GetInfo.pm
|
|
|
|
.endif
|
2004-10-19 10:48:44 +02:00
|
|
|
@${PERL} -pi -e 's/$$/ || MYSQL_VERSION_ID == 50000/ if $$. == 100' \
|
|
|
|
${WRKSRC}/mysql.xs
|
2004-01-18 16:22:11 +01:00
|
|
|
|
2003-04-04 07:21:36 +02:00
|
|
|
.include <bsd.port.post.mk>
|