2003-08-20 10:47:10 +02:00
|
|
|
# New ports collection makefile for: p5-Class-DBI-Loader
|
|
|
|
# Date created: 21 july 2003
|
|
|
|
# Whom: mat
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= Class-DBI-Loader
|
2007-04-25 22:03:21 +02:00
|
|
|
PORTVERSION= 0.34
|
2009-12-02 23:53:10 +01:00
|
|
|
PORTREVISION= 1
|
2003-08-20 10:47:10 +02:00
|
|
|
CATEGORIES= databases perl5
|
2007-04-25 22:03:21 +02:00
|
|
|
MASTER_SITES= CPAN
|
2006-06-02 15:50:42 +02:00
|
|
|
MASTER_SITE_SUBDIR= ../../authors/id/D/DM/DMAKI
|
2003-08-20 10:47:10 +02:00
|
|
|
PKGNAMEPREFIX= p5-
|
|
|
|
|
2009-08-16 11:22:05 +02:00
|
|
|
MAINTAINER= perl@FreeBSD.org
|
2003-08-20 10:47:10 +02:00
|
|
|
COMMENT= Dynamic definition of Class::DBI sub classes
|
|
|
|
|
2006-06-02 15:50:42 +02:00
|
|
|
RUN_DEPENDS= p5-Class-DBI>=0.89:${PORTSDIR}/databases/p5-Class-DBI \
|
2009-12-02 23:53:10 +01:00
|
|
|
p5-DBI>=1.3:${PORTSDIR}/databases/p5-DBI \
|
|
|
|
p5-Lingua-EN-Inflect>=0:${PORTSDIR}/textproc/p5-Lingua-EN-Inflect
|
|
|
|
BUILD_DEPENDS= ${RUN_DEPENDS}
|
2003-08-20 10:47:10 +02:00
|
|
|
|
|
|
|
PERL_CONFIGURE= yes
|
|
|
|
|
|
|
|
MAN3= Class::DBI::Loader.3 \
|
|
|
|
Class::DBI::Loader::Generic.3 \
|
|
|
|
Class::DBI::Loader::Pg.3 \
|
|
|
|
Class::DBI::Loader::SQLite.3 \
|
|
|
|
Class::DBI::Loader::mysql.3
|
|
|
|
|
2004-11-16 17:50:33 +01:00
|
|
|
.if !defined(NOPORTDOCS)
|
2006-06-02 15:50:42 +02:00
|
|
|
DOCS= Changes README
|
2004-11-16 17:50:33 +01:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2006-06-02 15:50:42 +02:00
|
|
|
@${INSTALL_DATA} ${DOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
|
2004-11-16 17:50:33 +01:00
|
|
|
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
|
|
|
|
.endif
|
|
|
|
|
2006-05-19 09:36:08 +02:00
|
|
|
OPTIONS= PGSQL "Enable support for PostgreSQL" Off \
|
|
|
|
MYSQL "Enable support for MySQL" Off \
|
|
|
|
SQLITE "Enable support for SQLite" Off
|
|
|
|
|
2003-09-16 07:43:52 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-05-19 09:36:08 +02:00
|
|
|
.if defined(WITH_PGSQL)
|
2009-12-02 23:53:10 +01:00
|
|
|
RUN_DEPENDS+= p5-Class-DBI-Pg>=0:${PORTSDIR}/databases/p5-Class-DBI-Pg
|
2006-05-19 09:36:08 +02:00
|
|
|
.endif
|
|
|
|
.if defined(WITH_MYSQL)
|
2009-12-02 23:53:10 +01:00
|
|
|
RUN_DEPENDS+= p5-Class-DBI-mysql>=0:${PORTSDIR}/databases/p5-Class-DBI-mysql
|
2006-05-19 09:36:08 +02:00
|
|
|
.endif
|
|
|
|
.if defined(WITH_SQLITE)
|
2009-12-02 23:53:10 +01:00
|
|
|
RUN_DEPENDS+= p5-Class-DBI-SQLite>=0:${PORTSDIR}/databases/p5-Class-DBI-SQLite
|
2006-05-19 09:36:08 +02:00
|
|
|
.endif
|
|
|
|
|
2003-09-16 07:43:52 +02:00
|
|
|
.include <bsd.port.post.mk>
|