aboutsummaryrefslogtreecommitdiffstats
path: root/databases/adodb/Makefile
blob: 50efb3ef34822fb803450c1c4fe21ed882c057b2 (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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
# New ports collection makefile for: adodb
# Date created:     4 May 2001
# Whom:         abgoeree@uwnet.nl
#
# $FreeBSD$
#

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

MAINTAINER= martin@tradex.sk
COMMENT=    Database library for PHP4

USE_PHP=    yes

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

ADODB_DIR=  share/adodb
PLIST_SUB=  ADODB_DIR=${ADODB_DIR}

.if defined(WITH_TESTS)
PLIST_SUB+= TESTS=
.else
PLIST_SUB+= TESTS="@comment "
.endif

DOCS=   docs-adodb.htm docs-datadict.htm docs-perf.htm docs-session.htm \
    license.txt old-changelog.htm readme.htm readme.txt tips_portable_sql.htm \
    tute.htm

ICONS=  adodb.gif adodb.png adodb2.gif adodb2.png

BASE=   adodb-csvlib.inc.php adodb-datadict.inc.php adodb-error.inc.php \
    adodb-errorhandler.inc.php adodb-errorpear.inc.php adodb-exceptions.inc.php \
    adodb-iterator.inc.php adodb-lib.inc.php adodb-pager.inc.php \
    adodb-pear.inc.php adodb-perf.inc.php adodb-php4.inc.php adodb-time.inc.php \
    adodb-xmlschema.inc.php adodb-xmlschema.zip adodb.inc.php \
    pivottable.inc.php rsfilter.inc.php server.php toexport.inc.php tohtml.inc.php

DATADICT=datadict-access.inc.php datadict-db2.inc.php datadict-generic.inc.php \
    datadict-ibase.inc.php datadict-informix.inc.php datadict-mssql.inc.php \
    datadict-mysql.inc.php datadict-oci8.inc.php datadict-postgres.inc.php \
    datadict-sybase.inc.php

DRIVERS=adodb-access.inc.php adodb-ado.inc.php adodb-ado_access.inc.php \
    adodb-ado_mssql.inc.php adodb-borland_ibase.inc.php adodb-csv.inc.php \
    adodb-db2.inc.php adodb-fbsql.inc.php adodb-firebird.inc.php \
    adodb-ibase.inc.php adodb-informix.inc.php adodb-informix72.inc.php \
    adodb-mssql.inc.php adodb-mssqlpo.inc.php adodb-mysql.inc.php \
    adodb-mysqli.inc.php adodb-mysqlt.inc.php adodb-oci8.inc.php \
    adodb-oci805.inc.php adodb-oci8po.inc.php adodb-odbc.inc.php \
    adodb-odbc_mssql.inc.php adodb-odbc_oracle.inc.php adodb-oracle.inc.php \
    adodb-postgres.inc.php adodb-postgres64.inc.php adodb-postgres7.inc.php \
    adodb-proxy.inc.php adodb-sapdb.inc.php adodb-sqlanywhere.inc.php \
    adodb-sqlite.inc.php adodb-sybase.inc.php adodb-vfp.inc.php

LANG=   adodb-ca.inc.php adodb-cn.inc.php adodb-cz.inc.php \
    adodb-de.inc.php adodb-en.inc.php adodb-es.inc.php \
    adodb-fr.inc.php adodb-it.inc.php adodb-pt-br.inc.php \
    adodb-ru1251.inc.php adodb-sv.inc.php

PERF=   perf-db2.inc.php perf-informix.inc.php perf-mssql.inc.php \
    perf-mysql.inc.php perf-oci8.inc.php perf-postgres.inc.php

SESSION=adodb-compress-bzip2.php adodb-compress-gzip.php \
    adodb-cryptsession.php adodb-encrypt-mcrypt.php adodb-encrypt-md5.php \
    adodb-encrypt-secret.php adodb-sess.txt adodb-session-clob.php \
    adodb-session.php adodb-sessions.mysql.sql crypt.inc.php \
    adodb-sessions.oracle.clob.sql adodb-sessions.oracle.sql \
    old/adodb-cryptsession.php old/adodb-session-clob.php \
    old/adodb-session.php old/crypt.inc.php

TESTS=  benchmark.php client.php test-datadict.php test.php test2.php \
    test3.php test4.php test5.php test_rs_array.php testcache.php \
    testdatabases.inc.php testgenid.php testmssql.php testoci8.php \
    testoci8cursor.php testpaging.php testpear.php testsessions.php \
    time.php tmssql.php xmlschema.xml

do-install:
    @${MKDIR} ${PREFIX}/${ADODB_DIR} ${PREFIX}/${ADODB_DIR}/datadict \
        ${PREFIX}/${ADODB_DIR}/drivers ${PREFIX}/${ADODB_DIR}/lang \
        ${PREFIX}/${ADODB_DIR}/perf ${PREFIX}/${ADODB_DIR}/session/old
.for FILE in ${BASE}
    ${INSTALL_DATA} ${WRKSRC}/${FILE} ${PREFIX}/${ADODB_DIR}/${FILE}
.endfor
.for FILE in ${DATADICT}
    ${INSTALL_DATA} ${WRKSRC}/datadict/${FILE} ${PREFIX}/${ADODB_DIR}/datadict/${FILE}
.endfor
.for FILE in ${DRIVERS}
    ${INSTALL_DATA} ${WRKSRC}/drivers/${FILE} ${PREFIX}/${ADODB_DIR}/drivers/${FILE}
.endfor
.for FILE in ${LANG}
    ${INSTALL_DATA} ${WRKSRC}/lang/${FILE} ${PREFIX}/${ADODB_DIR}/lang/${FILE}
.endfor
.for FILE in ${PERF}
    ${INSTALL_DATA} ${WRKSRC}/perf/${FILE} ${PREFIX}/${ADODB_DIR}/perf/${FILE}
.endfor
.for FILE in ${SESSION}
    ${INSTALL_DATA} ${WRKSRC}/session/${FILE} ${PREFIX}/${ADODB_DIR}/session/${FILE}
.endfor

.if defined(WITH_TESTS)
    @${MKDIR} ${PREFIX}/${ADODB_DIR}/tests
.for FILE in ${TESTS}
    ${INSTALL_DATA} ${WRKSRC}/tests/${FILE} ${PREFIX}/${ADODB_DIR}/tests
.endfor
.endif

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

.include <bsd.port.mk>