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
|
2001-12-13 08:01:17 +00:00
|
|
|
PORTVERSION= 1.62
|
2001-06-19 11:53:47 +00:00
|
|
|
CATEGORIES= databases www
|
|
|
|
MASTER_SITES= http://phplens.com/lens/dl/
|
2001-12-13 08:01:17 +00:00
|
|
|
DISTNAME= ${PORTNAME}162
|
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
|
|
|
|
|
2001-10-19 15:38:06 +00:00
|
|
|
ADODB_DIR= www/data.default/adodb
|
2001-11-24 02:08:05 +00:00
|
|
|
ADODB_TEST= share/examples/adodb
|
2001-07-21 16:03:03 +00:00
|
|
|
PLIST_SUB= ADODB_DIR=${ADODB_DIR} \
|
2001-11-24 02:08:05 +00:00
|
|
|
ADODB_TEST=${ADODB_TEST} \
|
|
|
|
DOCSDIR=share/doc/adodb
|
2001-07-21 16:03:03 +00:00
|
|
|
|
|
|
|
DOCS= readme.htm tute.htm readme.txt
|
|
|
|
LIBS= adodb-access.inc.php adodb-ado.inc.php adodb-ado_access.inc.php \
|
2001-12-13 08:01:17 +00:00
|
|
|
adodb-ado_mssql.inc.php adodb-csv.inc.php adodb-csvlib.inc.php \
|
|
|
|
adodb-db2.inc.php adodb-errorhandler.inc.php adodb-errorpear.inc.php \
|
|
|
|
adodb-fbsql.inc.php adodb-ibase.inc.php adodb-lib.inc.php \
|
|
|
|
adodb-mssql.inc.php adodb-mysql.inc.php adodb-mysqlt.inc.php \
|
|
|
|
adodb-oci8.inc.php adodb-oci8po.inc.php adodb-odbc.inc.php \
|
|
|
|
adodb-odbc_mssql.inc.php adodb-odbc_oracle.inc.php \
|
2001-11-04 10:39:35 +00:00
|
|
|
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
|
2001-12-13 08:01:17 +00:00
|
|
|
PICS= adodb.gif adodb.png adodb2.gif adodb2.png
|
2001-11-04 10:39:35 +00:00
|
|
|
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 \
|
2001-11-24 02:08:05 +00:00
|
|
|
testpaging.php testpear.php testsessions.php
|
2001-07-08 14:58:59 +00:00
|
|
|
|
|
|
|
post-patch:
|
2001-07-21 16:03:03 +00:00
|
|
|
.for FILE in adodb-session.php benchmark.php client.php server.php test.php \
|
2001-11-04 10:39:35 +00:00
|
|
|
test2.php test3.php test4.php test5.php testcache.php testoci8.php \
|
2001-11-24 02:08:05 +00:00
|
|
|
testpaging.php testpear.php testsessions.php
|
|
|
|
${PERL} -pi -e "s#(\./)?(adodb(-session|-pear)?|tohtml)+(\.inc)?\.php#${PREFIX}/${ADODB_DIR}/\2\4\.php#" ${WRKSRC}/${FILE}
|
2001-07-21 16:03:03 +00:00
|
|
|
.endfor
|
2001-07-08 14:58:59 +00:00
|
|
|
|
2001-06-19 11:53:47 +00:00
|
|
|
do-install:
|
2001-07-21 16:03:03 +00:00
|
|
|
@${MKDIR} ${PREFIX}/${ADODB_DIR}
|
|
|
|
.for FILE in ${SAMPLES}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${FILE} \
|
|
|
|
${PREFIX}/${ADODB_DIR}/${FILE}.sample
|
|
|
|
.endfor
|
2001-11-24 02:08:05 +00:00
|
|
|
.for FILE in ${LIBS} ${PICS}
|
2001-07-21 16:03:03 +00:00
|
|
|
${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)
|
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>
|