diff options
author | Martin Matuska <mm@FreeBSD.org> | 2007-12-25 09:42:13 +0000 |
---|---|---|
committer | Martin Matuska <mm@FreeBSD.org> | 2007-12-25 09:42:13 +0000 |
commit | 63cef33ffc4d3ef7ba5d9d5f20041e838d377b96 (patch) | |
tree | 6b6ddc3fe2983121b81be1ba0825594de49fac1f /databases/adodb5/Makefile | |
parent | abed6013b6fb4c8d265163e5117311ffb0ff10c6 (diff) | |
download | ports-63cef33ffc4d3ef7ba5d9d5f20041e838d377b96.tar.gz ports-63cef33ffc4d3ef7ba5d9d5f20041e838d377b96.zip |
Notes
Diffstat (limited to 'databases/adodb5/Makefile')
-rw-r--r-- | databases/adodb5/Makefile | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/databases/adodb5/Makefile b/databases/adodb5/Makefile new file mode 100644 index 000000000000..82575f16041c --- /dev/null +++ b/databases/adodb5/Makefile @@ -0,0 +1,71 @@ +# New ports collection makefile for: adodb5 +# Date created: 25 Dec 2007 +# Whom: mm@FreeBSD.org +# +# $FreeBSD$ +# + +PORTNAME= adodb +PORTVERSION= 5.02a +CATEGORIES= databases www +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= adodb +DISTNAME= ${PORTNAME:S/5//}${PORTVERSION:S/.//} +EXTRACT_SUFX= .tgz + +MAINTAINER= mm@FreeBSD.org +COMMENT= Database library for PHP + +CONFLICTS= adodb-4.* + +USE_PHP= pcre + +WRKSRC= ${WRKDIR}/${PORTNAME}5 +NO_BUILD= YES + +ADODB_DIR?= share/adodb +PLIST_SUB= ADODB_DIR=${ADODB_DIR} + +ADODB_SUBDIRS= contrib datadict drivers lang pear perf session xsl + +OPTIONS= TESTS "Install tests" off + +.include <bsd.port.pre.mk> + +DEFAULT_PHP_VER=5 +IGNORE_WITH_PHP=4 + +.if defined (WITH_TESTS) +PLIST_SUB+= TESTS= +.else +PLIST_SUB+= TESTS="@comment " +.endif + +do-install: + @${MKDIR} ${PREFIX}/${ADODB_DIR} + @cd ${WRKSRC}; ${FIND} ${ADODB_SUBDIRS} -type d \ + -exec ${MKDIR} ${PREFIX}/${ADODB_DIR}/{} \; + @cd ${WRKSRC}; ${FIND} . ! -path './*/*' -type f \( -name '*.php' -or -name '*.dtd' -or -name '*.zip' \) \ + -exec ${INSTALL_DATA} ${WRKSRC}/{} ${PREFIX}/${ADODB_DIR}/{} \; + @cd ${WRKSRC}; ${FIND} ${ADODB_SUBDIRS} -type f \ + -exec ${INSTALL_DATA} ${WRKSRC}/{} ${PREFIX}/${ADODB_DIR}/{} \; + +.if defined (WITH_TESTS) + @${MKDIR} ${PREFIX}/${ADODB_DIR}/tests + @cd ${WRKSRC}; ${FIND} tests -type f \ + -exec ${INSTALL_DATA} ${WRKSRC}/{} ${PREFIX}/${ADODB_DIR}/{} \; +.endif + +post-install: +.if !defined (NOPORTDOCS) + @${MKDIR} ${DOCSDIR} ${DOCSDIR}/cute_icons_for_site + @cd ${WRKSRC}; ${FIND} . ! -path './*/*' -type f -name '*.txt' \ + -exec ${INSTALL_MAN} ${WRKSRC}/{} ${DOCSDIR}/{} \; + @cd ${WRKSRC}/docs; ${FIND} . -type f \ + -exec ${INSTALL_MAN} ${WRKSRC}/docs/{} ${DOCSDIR}/{} \; + @cd ${WRKSRC}; ${FIND} cute_icons_for_site -type f \ + -exec ${INSTALL_MAN} ${WRKSRC}/{} ${DOCSDIR}/{} \; +.endif + @${CAT} ${PKGMESSAGE} + +.include <bsd.port.post.mk> |