summaryrefslogtreecommitdiff
path: root/databases/p5-DBIx-Simple/Makefile
blob: c6b7af34ed56abd2504de1b120839c51d0b1d6c6 (plain)
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
# New ports collection makefile for:	DBIx::Simple
# Date created:				10 December 2005
# Whom:					Parv <parv@pair.org>
#
# $FreeBSD$
#

PORTNAME=	DBIx-Simple
PORTVERSION=	1.34
CATEGORIES=	databases perl5
MASTER_SITES=	CPAN
PKGNAMEPREFIX=	p5-

MAINTAINER=	parv@pair.com
COMMENT=	Simplified object oriented interface to Perl DBI

RUN_DEPENDS=	p5-DBI>=1.21:${PORTSDIR}/databases/p5-DBI

OPTIONS=	SQL_INTERP "Interpolate Perl variables into SQL" off \
		SQL_ABSTRACT "Generate SQL from Perl data structures" off \
		DBIX_XHTML_TABLE "Create XHTML tables from SQL queries" off \
		TEXT_TABLE "Create plain text table from data" off

PERL_CONFIGURE=	yes

MAN3=	DBIx::Simple.3 \
	DBIx::Simple::Examples.3 \
	DBIx::Simple::Comparison.3 \
	DBIx::Simple::Result::RowObject.3

.include <bsd.port.pre.mk>

.if defined(WITH_SQL_INTERP)
RUN_DEPENDS+=	${SITE_PERL}/SQL/Interp.pm:${PORTSDIR}/databases/p5-SQL-Interp
.endif

.if defined(WITH_SQL_ABSTRACT)
RUN_DEPENDS+=	p5-SQL-Abstract>=0:${PORTSDIR}/databases/p5-SQL-Abstract
.endif

.if defined(WITH_DBIX_XHTML_TABLE)
RUN_DEPENDS+=	p5-DBIx-XHTML_Table>=0:${PORTSDIR}/databases/p5-DBIx-XHTML_Table
.endif

.if defined(WITH_TEXT_TABLE)
RUN_DEPENDS+=	p5-Text-Table>=0:${PORTSDIR}/textproc/p5-Text-Table
.endif

.include <bsd.port.post.mk>