aboutsummaryrefslogtreecommitdiff
path: root/databases/adodb/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'databases/adodb/Makefile')
-rw-r--r--databases/adodb/Makefile16
1 files changed, 13 insertions, 3 deletions
diff --git a/databases/adodb/Makefile b/databases/adodb/Makefile
index dba4b51408f3..fbfed481fe2a 100644
--- a/databases/adodb/Makefile
+++ b/databases/adodb/Makefile
@@ -20,9 +20,19 @@ RUN_DEPENDS= ${LOCALBASE}/libexec/apache/libphp4.so:${PORTSDIR}/www/mod_php4
WRKSRC= ${WRKDIR}/${PORTNAME}
NO_BUILD= YES
+ADODB_DIR= share/doc/apache/php/adodb
+
+post-patch:
+ ${PERL} -pi -e 's!^readme\.htm!${PREFIX}/${ADODB_DIR}/readme\.htm!' \
+ ${WRKSRC}/readme.txt
+ ${PERL} -pi -e 's!^tute\.htm!${PREFIX}/${ADODB_DIR}/tute\.htm!' \
+ ${WRKSRC}/readme.txt
+
do-install:
- ${RM} -f ${WRKSRC}/*.orig
- ${MKDIR} ${PREFIX}/share/doc/apache/php/adodb
- ${INSTALL_DATA} ${WRKSRC}/* ${PREFIX}/share/doc/apache/php/adodb
+ ${MKDIR} ${PREFIX}/share/doc/adodb
+ ${MKDIR} ${PREFIX}/${ADODB_DIR}
+ ${INSTALL_DATA} ${WRKSRC}/*.txt ${PREFIX}/share/doc/adodb
+ ${INSTALL_DATA} ${WRKSRC}/*.php ${PREFIX}/${ADODB_DIR}
+ ${INSTALL_DATA} ${WRKSRC}/*.htm ${PREFIX}/${ADODB_DIR}
.include <bsd.port.mk>