# Created by: mm@FreeBSD.org # $FreeBSD$ PORTNAME= adodb DISTVERSION= 5.18 CATEGORIES= databases www MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-php5-only/${PORTNAME}-${DISTVERSION:S/.//g}-for-php5 DISTNAME= ${PORTNAME:S/5//}${DISTVERSION:S/.//g}a PKGNAMESUFFIX= 5 MAINTAINER= joehorn@gmail.com COMMENT= Database library for PHP LICENSE= BSD4CLAUSE CONFLICTS= adodb-4.* USES= zip USE_PHP= pcre WRKSRC= ${WRKDIR}/${PORTNAME}5 NO_BUILD= YES ADODB_SUBDIRS= contrib datadict drivers lang pear perf session xsl OPTIONS_DEFINE= TESTS DOCS TESTS_DESC= Install tests .include SUB_FILES+= pkg-message .if ${PORT_OPTIONS:MTESTS} PLIST_SUB+= TESTS= .else PLIST_SUB+= TESTS="@comment " .endif do-install: @${MKDIR} ${STAGEDIR}${DATADIR} @cd ${WRKSRC}; ${FIND} ${ADODB_SUBDIRS} -type d \ -exec ${MKDIR} ${STAGEDIR}${DATADIR}/{} \; @cd ${WRKSRC}; ${FIND} . ! -path './*/*' -type f \( -name '*.php' -or -name '*.dtd' -or -name '*.zip' \) \ -exec ${INSTALL_DATA} ${WRKSRC}/{} ${STAGEDIR}${DATADIR}/{} \; @cd ${WRKSRC}; ${FIND} ${ADODB_SUBDIRS} -type f \ -exec ${INSTALL_DATA} ${WRKSRC}/{} ${STAGEDIR}${DATADIR}/{} \; .if ${PORT_OPTIONS:MTESTS} @${MKDIR} ${DATADIR}/tests @cd ${WRKSRC}; ${FIND} tests -type f \ -exec ${INSTALL_DATA} ${WRKSRC}/{} ${DATADIR}/{} \; .endif post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${STAGEDIR}${DOCSDIR}/cute_icons_for_site @cd ${WRKSRC}; ${FIND} . ! -path './*/*' -type f -name '*.txt' \ -exec ${INSTALL_MAN} ${WRKSRC}/{} ${STAGEDIR}${DOCSDIR}/{} \; @cd ${WRKSRC}/docs; ${FIND} . -type f \ -exec ${INSTALL_MAN} ${WRKSRC}/docs/{} ${STAGEDIR}${DOCSDIR}/{} \; @cd ${WRKSRC}; ${FIND} cute_icons_for_site -type f \ -exec ${INSTALL_MAN} ${WRKSRC}/{} ${STAGEDIR}${DOCSDIR}/{} \; .include