mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-28 05:29:48 +00:00
71 lines
1.9 KiB
Makefile
71 lines
1.9 KiB
Makefile
# New ports collection makefile for: adodb
|
|
# Date created: 4 May 2001
|
|
# Whom: abgoeree@uwnet.nl
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= adodb
|
|
PORTVERSION= 4.99.1
|
|
CATEGORIES= databases www
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-php-4-and-5/${PORTNAME}-4991-for-php
|
|
DISTNAME= ${PORTNAME}${PORTVERSION:S/.//g}
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= mm@FreeBSD.org
|
|
COMMENT= Database library for PHP
|
|
|
|
USE_PHP= pcre
|
|
|
|
CONFLICTS= adodb-5.*
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
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>
|
|
|
|
.if defined (WITH_TESTS)
|
|
PLIST_SUB+= TESTS=
|
|
.else
|
|
PLIST_SUB+= TESTS="@comment "
|
|
.endif
|
|
|
|
post-patch:
|
|
@cd ${WRKSRC}; ${RM} -f cute_icons_for_site/Thumbs.db
|
|
|
|
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>
|