aboutsummaryrefslogtreecommitdiff
path: root/databases/pear-DB_DataObject/Makefile
blob: b7fbc61bcf39fcbe511834067482b1f2cec45404 (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
# New ports collection makefile for:   pear-DB_DataObject
# Date created:        23 August 2004
# Whom:                Antonio Carlos Venancio Junior (<antonio@php.net>)
#
# $FreeBSD$
#

PORTNAME=	DB_DataObject
PORTVERSION=	1.7.5
CATEGORIES=	databases www pear

MAINTAINER=	antonio@php.net
COMMENT=	An SQL Builder, Object Interface to Database Tables

BUILD_DEPENDS=	${PEARDIR}/DB.php:${PORTSDIR}/databases/pear-DB \
		${PEARDIR}/Date.php:${PORTSDIR}/devel/pear-Date
RUN_DEPENDS=	${BUILD_DEPENDS}

USE_REINPLACE=	yes

CATEGORY=	DB
FILES=		DataObject.php DataObject/Cast.php DataObject/Generator.php \
		DataObject/createTables.php DataObject/Error.php
DOCS=		example.ini

LATEST_LINK=	pear-DB_DataObject
OPTIONS=	PEAR_VALIDATE "PEAR::Validate support" off

post-patch:
	@${REINPLACE_CMD} -e "s|@version@|${PORTVERSION}|" ${WRKSRC}/DataObject.php

.if defined(WITH_PEAR_VALIDATE)
RUN_DEPENDS+=	${PEARDIR}/Validate.php:${PORTSDIR}/devel/pear-Validate
.endif

.include <bsd.port.pre.mk>
.include "${PORTSDIR}/devel/pear-PEAR/Makefile.common"
.include <bsd.port.post.mk>