aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/pear-Log/Makefile
blob: f0f8db987db6d9df115e9eab1583dee3301e4285 (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# Ports collection makefile for:  pear-Log
# Date created:           22 October 2002
# Whom:               Thierry Thomas (<thierry@pompo.net>)
#
# $FreeBSD$
#

PORTNAME=   Log
PORTVERSION=    1.8.5
PORTREVISION=   1
CATEGORIES= sysutils www pear

MAINTAINER= antonio@php.net
COMMENT=    PEAR logging utilities

BUILD_DEPENDS=  ${PEARDIR}/PEAR.php:${PORTSDIR}/devel/pear-PEAR
RUN_DEPENDS=    ${BUILD_DEPENDS}

USE_PHP=    yes

FILES=      Log.php Log/composite.php Log/console.php Log/display.php   \
        Log/error_log.php Log/file.php Log/mail.php Log/mcal.php    \
        Log/null.php Log/observer.php Log/sql.php Log/sqlite.php    \
        Log/syslog.php Log/win.php
DOCS=       guide.txt
EXAMPLES=   composite.php console.php display.php error_log.php file.php    \
        mail.php null.php observer_mail.php pear_error_handler.php  \
        php_error_handler.php sql.php sqlite.php syslog.php win.php
TESTS=      composite.phpt console.phpt display.phpt error_log.phpt     \
        extract.phpt extract2.phpt factory.phpt null.phpt priority.phpt \
        singleton.phpt sqlite.phpt sql_ident.phpt
_EXAMPLESDIR=   docs/examples

LATEST_LINK=    pear-Log
OPTIONS=    PEAR_DB "PEAR::DB support" off

LOCALBASE?= /usr/local

.if exists(${LOCALBASE}/etc/php.conf)
.include "${LOCALBASE}/etc/php.conf"
.endif

PHP_VERS=   ${PHP_VERSION:S/.//g}

.if defined(PHP_VERS) && ${PHP_VERS} < 430
BROKEN=     "You need PHP 4.3.0 or later to install PEAR::Log"
.endif

.if defined(PHP_VER) && ${PHP_VER} == 5
OPTIONS+=   PHP_SQLITE "PHP sqlite support" off
.endif

.include <bsd.port.pre.mk>

.if defined(WITH_PEAR_DB)
BUILD_DEPENDS+= ${PEARDIR}/DB.php:${PORTSDIR}/databases/pear-DB
.endif

.if defined(WITH_PHP_SQLITE)
BUILD_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/${extension}.so:${PORTSDIR}/databases/php5-sqlite
.endif

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