aboutsummaryrefslogtreecommitdiffstats
path: root/databases/p5-Class-DBI-Loader/Makefile
blob: 499f65c67e340a219781a62bdea367babef65766 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# New ports collection makefile for:    p5-Class-DBI-Loader
# Date created:    21 july 2003
# Whom:        mat
#
# $FreeBSD$
#

PORTNAME=   Class-DBI-Loader
PORTVERSION=    0.20
CATEGORIES= databases perl5
MASTER_SITES=   ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Class
PKGNAMEPREFIX=  p5-

MAINTAINER= mat@FreeBSD.org
COMMENT=    Dynamic definition of Class::DBI sub classes

BUILD_DEPENDS=  ${RUN_DEPENDS} \
        ${SITE_PERL}/Test/More.pm:${PORTSDIR}/devel/p5-Test-Simple
RUN_DEPENDS=    ${SITE_PERL}/Class/DBI.pm:${PORTSDIR}/databases/p5-Class-DBI \
        ${SITE_PERL}/Lingua/EN/Inflect.pm:${PORTSDIR}/textproc/p5-Lingua-EN-Inflect

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

.if !defined(NOPORTDOCS)
PORTDOCS=   Changes README

post-install:
    @${MKDIR} ${DOCSDIR}
    @${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
    @${ECHO_MSG} "===> Documentation installed in ${DOCSDIR}."
.endif

.include <bsd.port.pre.mk>

.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

.include <bsd.port.post.mk>