summaryrefslogtreecommitdiff
path: root/databases/adodb/Makefile
blob: 9cb04a5e36aeb7a22c451b5b9221b82154579ef9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# $NetBSD: Makefile,v 1.11 2007/11/25 17:53:23 adrianp Exp $
#

DISTNAME=	adodb496a
PKGNAME=	adodb-4.96a
CATEGORIES=	databases www
MASTER_SITES=	${MASTER_SITE_SOURCEFORGE:=adodb/}
EXTRACT_SUFX=	.tgz

MAINTAINER=	adrianp@NetBSD.org
HOMEPAGE=	http://adodb.sourceforge.net/
COMMENT=	Active Data Objects Data Base for php4

WRKSRC=			${WRKDIR}/adodb
NO_CONFIGURE=		YES
NO_BUILD=		YES

.include "../../lang/php/phpversion.mk"

.if ${PHP_PKG_PREFIX} == "php4"
.include "../../www/php4/buildlink3.mk"
.endif

.if ${PHP_PKG_PREFIX} == "php5"
.include "../../lang/php5/buildlink3.mk"
.endif

do-install:
	${INSTALL_DATA_DIR} ${PREFIX}/share/adodb
	${INSTALL_DATA_DIR} ${PREFIX}/share/adodb/cute_icons_for_site
	${INSTALL_DATA_DIR} ${PREFIX}/share/adodb/datadict
	${INSTALL_DATA_DIR} ${PREFIX}/share/adodb/drivers
	${INSTALL_DATA_DIR} ${PREFIX}/share/adodb/lang
	${INSTALL_DATA_DIR} ${PREFIX}/share/adodb/perf
	${INSTALL_DATA_DIR} ${PREFIX}/share/adodb/tests
	${INSTALL_DATA_DIR} ${PREFIX}/share/adodb/xsl
	${INSTALL_DATA_DIR} ${PREFIX}/share/adodb/session
	${INSTALL_DATA_DIR} ${PREFIX}/share/doc/adodb

	${INSTALL_DATA} ${WRKSRC}/*.php ${PREFIX}/share/adodb
	${INSTALL_DATA} ${WRKSRC}/*.dtd ${PREFIX}/share/adodb
	${INSTALL_DATA} ${WRKSRC}/cute_icons_for_site/*.gif \
		${PREFIX}/share/adodb/cute_icons_for_site
	${INSTALL_DATA} ${WRKSRC}/datadict/*.php \
		${PREFIX}/share/adodb/datadict
	${INSTALL_DATA} ${WRKSRC}/drivers/*.php ${PREFIX}/share/adodb/drivers
	${INSTALL_DATA} ${WRKSRC}/lang/*.php ${PREFIX}/share/adodb/lang
	${INSTALL_DATA} ${WRKSRC}/perf/*.php ${PREFIX}/share/adodb/perf
	${INSTALL_DATA} ${WRKSRC}/tests/*.php ${PREFIX}/share/adodb/tests
	${INSTALL_DATA} ${WRKSRC}/tests/*.xml ${PREFIX}/share/adodb/tests
	${INSTALL_DATA} ${WRKSRC}/session/*.php ${PREFIX}/share/adodb/session
	${INSTALL_DATA} ${WRKSRC}/session/*.txt ${PREFIX}/share/adodb/session
	${INSTALL_DATA} ${WRKSRC}/session/*.sql ${PREFIX}/share/adodb/session
	${INSTALL_DATA} ${WRKSRC}/session/*.xml ${PREFIX}/share/adodb/session
	${INSTALL_DATA} ${WRKSRC}/xsl/*.xsl ${PREFIX}/share/adodb/xsl
	${INSTALL_DATA} ${WRKSRC}/docs/*.htm ${PREFIX}/share/doc/adodb
	${INSTALL_DATA} ${WRKSRC}/*.txt ${PREFIX}/share/doc/adodb

	${FIND} ${PREFIX}/share/adodb -name \*.\* -type f -print | \
		${XARGS} ${CHMOD} ${SHAREMODE}

.include "../../mk/bsd.pkg.mk"