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
|
2002-04-06 02:13:49 +00:00
|
|
|
PORTVERSION= 1.90
|
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
|
2001-06-19 11:53:47 +00:00
|
|
|
|
|
|
|
RUN_DEPENDS= ${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
NO_BUILD= YES
|
|
|
|
|
2002-03-25 12:33:34 +00:00
|
|
|
ADODB_DIR= www/data.default/php/adodb
|
|
|
|
ADODB_DRIVERS= ${ADODB_DIR}/drivers
|
|
|
|
ADODB_TESTS= ${ADODB_DIR}/tests
|
2001-07-21 16:03:03 +00:00
|
|
|
PLIST_SUB= ADODB_DIR=${ADODB_DIR} \
|
2002-03-25 12:33:34 +00:00
|
|
|
ADODB_DRIVERS=${ADODB_DRIVERS} \
|
|
|
|
ADODB_TESTS=${ADODB_TESTS} \
|
2001-11-24 02:08:05 +00:00
|
|
|
DOCSDIR=share/doc/adodb
|
2001-07-21 16:03:03 +00:00
|
|
|
|
2002-03-25 12:33:34 +00:00
|
|
|
DOCS= readme.htm tute.htm readme.txt
|
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 \
|
|
|
|
drivers/adodb-mssql.inc.php \
|
|
|
|
drivers/adodb-mysql.inc.php \
|
|
|
|
drivers/adodb-mysqlt.inc.php \
|
|
|
|
drivers/adodb-oci8.inc.php \
|
|
|
|
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 \
|
|
|
|
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 \
|
|
|
|
adodb-errorhandler.inc.php \
|
|
|
|
adodb-errorpear.inc.php \
|
|
|
|
adodb.inc.php \
|
2002-03-27 23:53:55 +00:00
|
|
|
adodb-lib.inc.php \
|
|
|
|
adodb-pear.inc.php \
|
2002-03-25 12:33:34 +00:00
|
|
|
client.php \
|
|
|
|
crypt.inc.php \
|
|
|
|
tohtml.inc.php
|
|
|
|
|
|
|
|
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 \
|
|
|
|
adodb-session.php \
|
|
|
|
server.php
|
|
|
|
|
|
|
|
TESTS= tests/benchmark.php \
|
|
|
|
tests/test.php \
|
|
|
|
tests/test2.php \
|
|
|
|
tests/test3.php \
|
|
|
|
tests/test4.php \
|
|
|
|
tests/test5.php \
|
|
|
|
tests/testcache.php \
|
|
|
|
tests/testdatabases.inc.php \
|
|
|
|
tests/testoci8.php \
|
|
|
|
tests/testpaging.php \
|
|
|
|
tests/testpear.php \
|
|
|
|
tests/testsessions.php
|
2001-07-08 14:58:59 +00:00
|
|
|
|
2001-06-19 11:53:47 +00:00
|
|
|
do-install:
|
2002-03-25 12:33:34 +00:00
|
|
|
@${MKDIR} ${PREFIX}/${ADODB_DRIVERS}
|
|
|
|
@${MKDIR} ${PREFIX}/${ADODB_TESTS}
|
|
|
|
.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
|
|
|
|
.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
|
2001-06-19 11:53:47 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|