2001-06-19 11:53:47 +00:00
|
|
|
# New ports collection makefile for: adodb
|
|
|
|
# Date created: 4 May 2001
|
|
|
|
# Whom: abgoeree@uwnet.nl
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= adodb
|
2003-07-19 02:43:04 +00:00
|
|
|
PORTVERSION= 3.60
|
2003-08-01 03:46:31 +00:00
|
|
|
PORTREVISION= 1
|
2001-06-19 11:53:47 +00:00
|
|
|
CATEGORIES= databases www
|
|
|
|
MASTER_SITES= http://phplens.com/lens/dl/
|
2001-12-15 11:51:49 +00:00
|
|
|
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//}
|
2001-06-19 11:53:47 +00:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2001-10-19 15:38:06 +00:00
|
|
|
MAINTAINER= abgoeree@wish.net
|
2003-02-21 11:15:57 +00:00
|
|
|
COMMENT= A database library for PHP4
|
2001-06-19 11:53:47 +00:00
|
|
|
|
2003-02-26 08:38:24 +00:00
|
|
|
.if defined(WITH_APACHE2)
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/libexec/apache2/libphp4.so:${PORTSDIR}/www/mod_php4
|
|
|
|
.else
|
2001-06-19 11:53:47 +00:00
|
|
|
RUN_DEPENDS= ${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4
|
2003-02-26 08:38:24 +00:00
|
|
|
.endif
|
2001-06-19 11:53:47 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
NO_BUILD= YES
|
|
|
|
|
2002-03-25 12:33:34 +00:00
|
|
|
ADODB_DIR= www/data.default/php/adodb
|
2003-08-01 03:46:31 +00:00
|
|
|
ADODB_DATADICT= ${ADODB_DIR}/datadict
|
2002-03-25 12:33:34 +00:00
|
|
|
ADODB_DRIVERS= ${ADODB_DIR}/drivers
|
2003-08-01 03:46:31 +00:00
|
|
|
ADODB_LANG= ${ADODB_DIR}/lang
|
2002-03-25 12:33:34 +00:00
|
|
|
ADODB_TESTS= ${ADODB_DIR}/tests
|
2001-07-21 16:03:03 +00:00
|
|
|
PLIST_SUB= ADODB_DIR=${ADODB_DIR} \
|
2003-08-01 03:46:31 +00:00
|
|
|
ADODB_DATADICT=${ADODB_DATADICT} \
|
2002-03-25 12:33:34 +00:00
|
|
|
ADODB_DRIVERS=${ADODB_DRIVERS} \
|
2003-08-01 03:46:31 +00:00
|
|
|
ADODB_LANG=${ADODB_LANG} \
|
2002-03-25 12:33:34 +00:00
|
|
|
ADODB_TESTS=${ADODB_TESTS} \
|
2001-11-24 02:08:05 +00:00
|
|
|
DOCSDIR=share/doc/adodb
|
2001-07-21 16:03:03 +00:00
|
|
|
|
2003-08-01 03:46:31 +00:00
|
|
|
DATADICT= datadict/datadict-access.inc.php \
|
|
|
|
datadict/datadict-db2.inc.php \
|
|
|
|
datadict/datadict-generic.inc.php \
|
|
|
|
datadict/datadict-ibase.inc.php \
|
|
|
|
datadict/datadict-informix.inc.php \
|
|
|
|
datadict/datadict-mssql.inc.php \
|
|
|
|
datadict/datadict-mysql.inc.php \
|
|
|
|
datadict/datadict-oci8.inc.php \
|
|
|
|
datadict/datadict-postgres.inc.php
|
|
|
|
|
|
|
|
DOCS= adodb-xmlschema.zip \
|
|
|
|
docs-adodb.htm \
|
|
|
|
docs-datadict.htm \
|
|
|
|
docs-session.htm \
|
|
|
|
readme.htm \
|
|
|
|
readme.txt \
|
|
|
|
tips_portable_sql.htm \
|
|
|
|
tute.htm
|
2001-07-08 14:58:59 +00:00
|
|
|
|
2002-03-25 12:33:34 +00:00
|
|
|
DRIVERS= drivers/adodb-access.inc.php \
|
|
|
|
drivers/adodb-ado.inc.php \
|
|
|
|
drivers/adodb-ado_access.inc.php \
|
|
|
|
drivers/adodb-ado_mssql.inc.php \
|
|
|
|
drivers/adodb-borland_ibase.inc.php \
|
|
|
|
drivers/adodb-csv.inc.php \
|
|
|
|
drivers/adodb-db2.inc.php \
|
|
|
|
drivers/adodb-fbsql.inc.php \
|
|
|
|
drivers/adodb-firebird.inc.php \
|
|
|
|
drivers/adodb-ibase.inc.php \
|
|
|
|
drivers/adodb-informix.inc.php \
|
2003-08-01 03:46:31 +00:00
|
|
|
drivers/adodb-informix72.inc.php \
|
2002-03-25 12:33:34 +00:00
|
|
|
drivers/adodb-mssql.inc.php \
|
2003-08-01 03:46:31 +00:00
|
|
|
drivers/adodb-mssqlpo.inc.php \
|
2002-03-25 12:33:34 +00:00
|
|
|
drivers/adodb-mysql.inc.php \
|
|
|
|
drivers/adodb-mysqlt.inc.php \
|
|
|
|
drivers/adodb-oci8.inc.php \
|
2003-08-01 03:46:31 +00:00
|
|
|
drivers/adodb-oci805.inc.php \
|
2002-03-25 12:33:34 +00:00
|
|
|
drivers/adodb-oci8po.inc.php \
|
|
|
|
drivers/adodb-odbc.inc.php \
|
|
|
|
drivers/adodb-odbc_mssql.inc.php \
|
|
|
|
drivers/adodb-odbc_oracle.inc.php \
|
|
|
|
drivers/adodb-oracle.inc.php \
|
|
|
|
drivers/adodb-postgres.inc.php \
|
2003-08-01 03:46:31 +00:00
|
|
|
drivers/adodb-postgres64.inc.php \
|
2002-03-25 12:33:34 +00:00
|
|
|
drivers/adodb-postgres7.inc.php \
|
|
|
|
drivers/adodb-proxy.inc.php \
|
2002-03-27 23:53:55 +00:00
|
|
|
drivers/adodb-sqlanywhere.inc.php \
|
2002-03-25 12:33:34 +00:00
|
|
|
drivers/adodb-sybase.inc.php \
|
|
|
|
drivers/adodb-vfp.inc.php \
|
|
|
|
|
|
|
|
INCLUDES= adodb-csvlib.inc.php \
|
2003-08-01 03:46:31 +00:00
|
|
|
adodb-datadict.inc.php \
|
|
|
|
adodb-error.inc.php \
|
2002-03-25 12:33:34 +00:00
|
|
|
adodb-errorhandler.inc.php \
|
|
|
|
adodb-errorpear.inc.php \
|
2002-03-27 23:53:55 +00:00
|
|
|
adodb-lib.inc.php \
|
2003-08-01 03:46:31 +00:00
|
|
|
adodb-pager.inc.php \
|
2002-03-27 23:53:55 +00:00
|
|
|
adodb-pear.inc.php \
|
2003-07-27 20:27:54 +00:00
|
|
|
adodb-time.inc.php \
|
2003-08-01 03:46:31 +00:00
|
|
|
adodb-xmlschema.inc.php \
|
|
|
|
adodb.inc.php \
|
2002-03-25 12:33:34 +00:00
|
|
|
crypt.inc.php \
|
2003-08-01 03:46:31 +00:00
|
|
|
pivottable.inc.php \
|
|
|
|
rsfilter.inc.php \
|
|
|
|
toexport.inc.php \
|
2002-03-25 12:33:34 +00:00
|
|
|
tohtml.inc.php
|
|
|
|
|
2003-08-01 03:46:31 +00:00
|
|
|
LANG= lang/adodb-en.inc.php \
|
|
|
|
lang/adodb-fr.inc.php
|
|
|
|
|
2002-03-25 12:33:34 +00:00
|
|
|
PICS= cute_icons_for_site/adodb.gif \
|
|
|
|
cute_icons_for_site/adodb.png \
|
|
|
|
cute_icons_for_site/adodb2.gif \
|
|
|
|
cute_icons_for_site/adodb2.png
|
|
|
|
|
|
|
|
SAMPLES= adodb-cryptsession.php \
|
2003-08-01 03:46:31 +00:00
|
|
|
adodb-session-clob.php \
|
2002-03-25 12:33:34 +00:00
|
|
|
adodb-session.php \
|
|
|
|
server.php
|
|
|
|
|
|
|
|
TESTS= tests/benchmark.php \
|
2002-12-12 11:38:30 +00:00
|
|
|
tests/client.php \
|
2003-08-01 03:46:31 +00:00
|
|
|
tests/test-datadict.php \
|
2002-03-25 12:33:34 +00:00
|
|
|
tests/test.php \
|
|
|
|
tests/test2.php \
|
|
|
|
tests/test3.php \
|
|
|
|
tests/test4.php \
|
|
|
|
tests/test5.php \
|
|
|
|
tests/testcache.php \
|
|
|
|
tests/testdatabases.inc.php \
|
2003-08-01 03:46:31 +00:00
|
|
|
tests/testgenid.php \
|
|
|
|
tests/testmssql.php \
|
2002-03-25 12:33:34 +00:00
|
|
|
tests/testoci8.php \
|
2003-08-01 03:46:31 +00:00
|
|
|
tests/testoci8cursor.php \
|
2002-03-25 12:33:34 +00:00
|
|
|
tests/testpaging.php \
|
|
|
|
tests/testpear.php \
|
2003-08-01 03:46:31 +00:00
|
|
|
tests/testsessions.php \
|
|
|
|
tests/time.php \
|
|
|
|
tests/tmssql.php
|
2001-07-08 14:58:59 +00:00
|
|
|
|
2001-06-19 11:53:47 +00:00
|
|
|
do-install:
|
2003-08-01 03:46:31 +00:00
|
|
|
@${MKDIR} ${PREFIX}/${ADODB_DATADICT}
|
2002-03-25 12:33:34 +00:00
|
|
|
@${MKDIR} ${PREFIX}/${ADODB_DRIVERS}
|
2003-08-01 03:46:31 +00:00
|
|
|
@${MKDIR} ${PREFIX}/${ADODB_LANG}
|
2002-03-25 12:33:34 +00:00
|
|
|
@${MKDIR} ${PREFIX}/${ADODB_TESTS}
|
2003-08-01 03:46:31 +00:00
|
|
|
.for FILE in ${DATADICT}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${FILE} ${PREFIX}/${ADODB_DATADICT}
|
|
|
|
.endfor
|
2002-03-25 12:33:34 +00:00
|
|
|
.for FILE in ${DRIVERS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${FILE} ${PREFIX}/${ADODB_DRIVERS}
|
|
|
|
.endfor
|
|
|
|
.for FILE in ${INCLUDES}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${FILE} ${PREFIX}/${ADODB_DIR}/${FILE}
|
|
|
|
.endfor
|
2003-08-01 03:46:31 +00:00
|
|
|
.for FILE in ${LANG}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${FILE} ${PREFIX}/${ADODB_LANG}
|
|
|
|
.endfor
|
2002-03-25 12:33:34 +00:00
|
|
|
.for FILE in ${PICS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${FILE} ${PREFIX}/${ADODB_DIR}
|
|
|
|
.endfor
|
2001-07-21 16:03:03 +00:00
|
|
|
.for FILE in ${SAMPLES}
|
2002-03-25 12:33:34 +00:00
|
|
|
if [ ! -f ${PREFIX}/${ADODB_DIR}/${FILE} ]; then \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${FILE} \
|
|
|
|
${PREFIX}/${ADODB_DIR}/${FILE};\
|
|
|
|
fi
|
2001-07-21 16:03:03 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${FILE} \
|
|
|
|
${PREFIX}/${ADODB_DIR}/${FILE}.sample
|
|
|
|
.endfor
|
|
|
|
.for FILE in ${TESTS}
|
2002-03-25 12:33:34 +00:00
|
|
|
if [ ! -f ${PREFIX}/${ADODB_DIR}/${FILE} ]; then \
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${FILE} \
|
|
|
|
${PREFIX}/${ADODB_DIR}/${FILE};\
|
|
|
|
fi
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${FILE} \
|
|
|
|
${PREFIX}/${ADODB_DIR}/${FILE}.sample
|
2001-07-21 16:03:03 +00:00
|
|
|
.endfor
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
2001-11-24 02:08:05 +00:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2001-07-21 16:03:03 +00:00
|
|
|
.for FILE in ${DOCS}
|
2001-11-24 02:08:05 +00:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/${FILE} ${DOCSDIR}
|
2001-07-21 16:03:03 +00:00
|
|
|
.endfor
|
|
|
|
.endif
|
2003-08-01 03:46:31 +00:00
|
|
|
@${CAT} ${PKGMESSAGE}
|
2001-06-19 11:53:47 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|