blob: 73237ec093dbc706fdc28f27f5c754a0871798ff (
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
63
64
65
66
67
68
69
70
71
|
# $NetBSD: pear.mk,v 1.22 2011/01/12 08:15:45 obache Exp $
#
# This Makefile fragment is intended to be included by packages that build
# and install pear packages.
#
# If you don't know what pear is, you can visit: http://pear.php.net/
#
# PEAR_CMD this is the actual script to execute to install the
# package.
#
# PEAR_LIB directory under ${PREFIX} where Pear modules are installed
#
.if !defined(_PEAR_PACKAGE_MK)
_PEAR_PACKAGE_MK= # defined
.include "../../mk/bsd.prefs.mk"
EXTRACT_SUFX= .tgz
PKGNAME= ${PHP_PKG_PREFIX}-pear-${DISTNAME}
CATEGORIES+= www
MASTER_SITE_PEAR_PACKAGE+= \
http://pear.php.net/get/
MASTER_SITES+= ${MASTER_SITE_PEAR_PACKAGE}
DIST_SUBDIR= pear
HOMEPAGE?= http://pear.php.net/package/${DISTNAME:C/-.*//}
DEPENDS+= ${PHP_PKG_PREFIX}-pear-[0-9]*:../../lang/pear
PEAR_CMD= ${PREFIX}/bin/pear
PEAR_LIB= lib/php
.if ${_USE_DESTDIR} != "no"
PEAR_DESTDIR= -P ${DESTDIR} -f
.endif
# Dynamic PLIST, generated via a helper PHP script, which use registry.
PEAR_GENERATE_PLIST= \
${ECHO} "@comment The following lines are automatically generated"; \
${SETENV} PEAR_LIB=${PEAR_LIB:Q} WRKSRC=${WRKSRC:Q} TZ=UTC \
${INSTALL_ENV} PREFIX=${PREFIX:Q} \
${PREFIX}/bin/php -d include_path=".:${PREFIX}/lib/php" \
-d log_errors=On -d display_errors=Off \
-C -n ${PKGDIR}/../../lang/php/pear_plist.php;
GENERATE_PLIST+= ${PEAR_GENERATE_PLIST}
NO_BUILD= yes
post-extract:
@cd ${WRKSRC} && ${LN} -s ${WRKDIR}/package.xml package.xml
do-install:
cd ${WRKSRC} && ${SETENV} TZ=UTC \
${PEAR_CMD} "install" ${PEAR_DESTDIR} -n -O package.xml || exit 1
.if ${_USE_DESTDIR} != "no"
CHECK_FILES_SKIP+= ${PREFIX}/lib/php/\.channels/\.alias/.*\.txt
CHECK_FILES_SKIP+= ${PREFIX}/lib/php/\.channels/.*\.reg
CHECK_FILES_SKIP+= ${PREFIX}/lib/php/\.depdb
CHECK_FILES_SKIP+= ${PREFIX}/lib/php/\.depdblock
CHECK_FILES_SKIP+= ${PREFIX}/lib/php/\.filemap
CHECK_FILES_SKIP+= ${PREFIX}/lib/php/\.lock
.endif
.include "../../lang/php/phpversion.mk"
.include "${PHPPKGSRCDIR}/buildlink3.mk"
.endif # _PEAR_PACKAGE_MK
|