aboutsummaryrefslogtreecommitdiffstats
path: root/databases/adodb/Makefile
blob: 0a99d0d9c0a344dbcbf1c0e8df676d474be2ad62 (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
65
66
67
68
69
70
71
72
73
# New ports collection makefile for: adodb
# Date created:     4 May 2001
# Whom:         abgoeree@uwnet.nl
#
# $FreeBSD$
#

PORTNAME=   adodb
PORTVERSION=    1.54
CATEGORIES= databases www
MASTER_SITES=   http://phplens.com/lens/dl/
DISTNAME=   ${PORTNAME}154
EXTRACT_SUFX=   .tgz

MAINTAINER= abgoeree@wish.net

RUN_DEPENDS=    ${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4

WRKSRC=     ${WRKDIR}/${PORTNAME}
NO_BUILD=   YES

ADODB_DIR=  www/data.default/adodb
ADODB_TEST= share/examples/adodb
PLIST_SUB=  ADODB_DIR=${ADODB_DIR} \
        ADODB_TEST=${ADODB_TEST} \
        DOCSDIR=share/doc/adodb

DOCS=   readme.htm tute.htm readme.txt
LIBS=   adodb-access.inc.php adodb-ado.inc.php adodb-ado_access.inc.php \
    adodb-ado_mssql.inc.php adodb-csv.inc.php adodb-db2.inc.php \
    adodb-errorhandler.inc.php adodb-errorpear.inc.php \
    adodb-fbsql.inc.php adodb-ibase.inc.php adodb-mssql.inc.php \
    adodb-mysql.inc.php adodb-mysqlt.inc.php adodb-oci8.inc.php \
    adodb-odbc.inc.php adodb-odbc_mssql.inc.php adodb-odbc_oracle.inc.php \
    adodb-oracle.inc.php adodb-pear.inc.php adodb-postgres.inc.php \
    adodb-postgres7.inc.php adodb-proxy.inc.php adodb-sybase.inc.php \
    adodb.inc.php adodb-vfp.inc.php crypt.inc.php tohtml.inc.php
PICS=   adodb.gif adodb.png
SAMPLES=adodb-cryptsession.php adodb-session.php server.php
TESTS=  benchmark.php client.php test.php test2.php test3.php test4.php \
    test5.php testcache.php testdatabases.inc.php testoci8.php \
    testpaging.php testpear.php testsessions.php

post-patch:
.for FILE in adodb-session.php benchmark.php client.php server.php test.php \
    test2.php test3.php test4.php test5.php testcache.php testoci8.php \
    testpaging.php testpear.php testsessions.php
    ${PERL} -pi -e "s#(\./)?(adodb(-session|-pear)?|tohtml)+(\.inc)?\.php#${PREFIX}/${ADODB_DIR}/\2\4\.php#" ${WRKSRC}/${FILE}
.endfor

do-install:
    @${MKDIR} ${PREFIX}/${ADODB_DIR}
.for FILE in ${SAMPLES}
    ${INSTALL_DATA} ${WRKSRC}/${FILE} \
        ${PREFIX}/${ADODB_DIR}/${FILE}.sample
.endfor
.for FILE in ${LIBS} ${PICS}
    ${INSTALL_DATA} ${WRKSRC}/${FILE} ${PREFIX}/${ADODB_DIR}
.endfor
    @${MKDIR} ${PREFIX}/${ADODB_TEST}
.for FILE in ${TESTS}
    ${INSTALL_DATA} ${WRKSRC}/${FILE} ${PREFIX}/${ADODB_TEST}
.endfor

post-install:
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for FILE in ${DOCS}
    ${INSTALL_MAN} ${WRKSRC}/${FILE} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.mk>