| @@ -1,14 +1,14 @@ | | | @@ -1,14 +1,14 @@ |
1 | # $NetBSD: pear.mk,v 1.21 2011/01/12 08:11:49 obache Exp $ | | 1 | # $NetBSD: pear.mk,v 1.22 2011/01/12 08:15:45 obache Exp $ |
2 | # | | 2 | # |
3 | # This Makefile fragment is intended to be included by packages that build | | 3 | # This Makefile fragment is intended to be included by packages that build |
4 | # and install pear packages. | | 4 | # and install pear packages. |
5 | # | | 5 | # |
6 | # If you don't know what pear is, you can visit: http://pear.php.net/ | | 6 | # If you don't know what pear is, you can visit: http://pear.php.net/ |
7 | # | | 7 | # |
8 | # PEAR_CMD this is the actual script to execute to install the | | 8 | # PEAR_CMD this is the actual script to execute to install the |
9 | # package. | | 9 | # package. |
10 | # | | 10 | # |
11 | # PEAR_LIB directory under ${PREFIX} where Pear modules are installed | | 11 | # PEAR_LIB directory under ${PREFIX} where Pear modules are installed |
12 | # | | 12 | # |
13 | | | 13 | |
14 | .if !defined(_PEAR_PACKAGE_MK) | | 14 | .if !defined(_PEAR_PACKAGE_MK) |
| @@ -30,27 +30,27 @@ DIST_SUBDIR= pear | | | @@ -30,27 +30,27 @@ DIST_SUBDIR= pear |
30 | HOMEPAGE?= http://pear.php.net/package/${DISTNAME:C/-.*//} | | 30 | HOMEPAGE?= http://pear.php.net/package/${DISTNAME:C/-.*//} |
31 | | | 31 | |
32 | DEPENDS+= ${PHP_PKG_PREFIX}-pear-[0-9]*:../../lang/pear | | 32 | DEPENDS+= ${PHP_PKG_PREFIX}-pear-[0-9]*:../../lang/pear |
33 | | | 33 | |
34 | PEAR_CMD= ${PREFIX}/bin/pear | | 34 | PEAR_CMD= ${PREFIX}/bin/pear |
35 | PEAR_LIB= lib/php | | 35 | PEAR_LIB= lib/php |
36 | .if ${_USE_DESTDIR} != "no" | | 36 | .if ${_USE_DESTDIR} != "no" |
37 | PEAR_DESTDIR= -P ${DESTDIR} -f | | 37 | PEAR_DESTDIR= -P ${DESTDIR} -f |
38 | .endif | | 38 | .endif |
39 | | | 39 | |
40 | # Dynamic PLIST, generated via a helper PHP script, which use registry. | | 40 | # Dynamic PLIST, generated via a helper PHP script, which use registry. |
41 | PEAR_GENERATE_PLIST= \ | | 41 | PEAR_GENERATE_PLIST= \ |
42 | ${ECHO} "@comment The following lines are automatically generated"; \ | | 42 | ${ECHO} "@comment The following lines are automatically generated"; \ |
43 | ${SETENV} PEAR_LIB=${PEAR_LIB:Q} WRKSRC=${WRKSRC:Q} \ | | 43 | ${SETENV} PEAR_LIB=${PEAR_LIB:Q} WRKSRC=${WRKSRC:Q} TZ=UTC \ |
44 | ${INSTALL_ENV} PREFIX=${PREFIX:Q} \ | | 44 | ${INSTALL_ENV} PREFIX=${PREFIX:Q} \ |
45 | ${PREFIX}/bin/php -d include_path=".:${PREFIX}/lib/php" \ | | 45 | ${PREFIX}/bin/php -d include_path=".:${PREFIX}/lib/php" \ |
46 | -d log_errors=On -d display_errors=Off \ | | 46 | -d log_errors=On -d display_errors=Off \ |
47 | -C -n ${PKGDIR}/../../lang/php/pear_plist.php; | | 47 | -C -n ${PKGDIR}/../../lang/php/pear_plist.php; |
48 | GENERATE_PLIST+= ${PEAR_GENERATE_PLIST} | | 48 | GENERATE_PLIST+= ${PEAR_GENERATE_PLIST} |
49 | | | 49 | |
50 | NO_BUILD= yes | | 50 | NO_BUILD= yes |
51 | | | 51 | |
52 | post-extract: | | 52 | post-extract: |
53 | @cd ${WRKSRC} && ${LN} -s ${WRKDIR}/package.xml package.xml | | 53 | @cd ${WRKSRC} && ${LN} -s ${WRKDIR}/package.xml package.xml |
54 | | | 54 | |
55 | do-install: | | 55 | do-install: |
56 | cd ${WRKSRC} && ${SETENV} TZ=UTC \ | | 56 | cd ${WRKSRC} && ${SETENV} TZ=UTC \ |