freebsd-ports/databases/p5-Class-DBI-Loader/Makefile

58 lines
1.5 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: p5-Class-DBI-Loader
# Date created: 21 july 2003
# Whom: mat
#
# $FreeBSD$
#
PORTNAME= Class-DBI-Loader
PORTVERSION= 0.34
PORTREVISION= 1
CATEGORIES= databases perl5
MASTER_SITES= CPAN
MASTER_SITE_SUBDIR= ../../authors/id/D/DM/DMAKI
PKGNAMEPREFIX= p5-
MAINTAINER= perl@FreeBSD.org
COMMENT= Dynamic definition of Class::DBI sub classes
RUN_DEPENDS= p5-Class-DBI>=0.89:${PORTSDIR}/databases/p5-Class-DBI \
p5-DBI>=1.3:${PORTSDIR}/databases/p5-DBI \
p5-Lingua-EN-Inflect>=0:${PORTSDIR}/textproc/p5-Lingua-EN-Inflect
BUILD_DEPENDS= ${RUN_DEPENDS}
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)
DOCS= Changes README
2004-11-16 17:50:33 +01:00
post-install:
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${DOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
2004-11-16 17:50:33 +01:00
@${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
.endif
OPTIONS= PGSQL "Enable support for PostgreSQL" Off \
MYSQL "Enable support for MySQL" Off \
SQLITE "Enable support for SQLite" Off
.include <bsd.port.pre.mk>
.if defined(WITH_PGSQL)
RUN_DEPENDS+= p5-Class-DBI-Pg>=0:${PORTSDIR}/databases/p5-Class-DBI-Pg
.endif
.if defined(WITH_MYSQL)
RUN_DEPENDS+= p5-Class-DBI-mysql>=0:${PORTSDIR}/databases/p5-Class-DBI-mysql
.endif
.if defined(WITH_SQLITE)
RUN_DEPENDS+= p5-Class-DBI-SQLite>=0:${PORTSDIR}/databases/p5-Class-DBI-SQLite
.endif
.include <bsd.port.post.mk>