2013-01-07 15:26:14 +01:00
|
|
|
# $NetBSD: pear.mk,v 1.23 2013/01/07 14:26:14 taca Exp $
|
2003-12-17 20:02:07 +01:00
|
|
|
#
|
|
|
|
# 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
|
|
|
|
|
2004-03-17 20:07:51 +01:00
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
|
2003-12-17 20:02:07 +01:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2006-06-02 20:27:54 +02:00
|
|
|
PKGNAME= ${PHP_PKG_PREFIX}-pear-${DISTNAME}
|
2003-12-17 20:02:07 +01:00
|
|
|
CATEGORIES+= www
|
|
|
|
|
|
|
|
MASTER_SITE_PEAR_PACKAGE+= \
|
2013-01-07 15:26:14 +01:00
|
|
|
http://download.pear.php.net/package/ \
|
2003-12-17 20:02:07 +01:00
|
|
|
http://pear.php.net/get/
|
|
|
|
MASTER_SITES+= ${MASTER_SITE_PEAR_PACKAGE}
|
|
|
|
|
2004-11-27 13:55:25 +01:00
|
|
|
DIST_SUBDIR= pear
|
|
|
|
|
2004-11-27 10:52:42 +01:00
|
|
|
HOMEPAGE?= http://pear.php.net/package/${DISTNAME:C/-.*//}
|
|
|
|
|
2007-05-05 23:32:12 +02:00
|
|
|
DEPENDS+= ${PHP_PKG_PREFIX}-pear-[0-9]*:../../lang/pear
|
|
|
|
|
2003-12-17 20:02:07 +01:00
|
|
|
PEAR_CMD= ${PREFIX}/bin/pear
|
|
|
|
PEAR_LIB= lib/php
|
2008-06-12 02:20:10 +02:00
|
|
|
.if ${_USE_DESTDIR} != "no"
|
2010-08-25 08:37:20 +02:00
|
|
|
PEAR_DESTDIR= -P ${DESTDIR} -f
|
2008-06-12 02:20:10 +02:00
|
|
|
.endif
|
2003-12-17 20:02:07 +01:00
|
|
|
|
2010-08-29 08:08:07 +02:00
|
|
|
# Dynamic PLIST, generated via a helper PHP script, which use registry.
|
2003-12-17 20:02:07 +01:00
|
|
|
PEAR_GENERATE_PLIST= \
|
|
|
|
${ECHO} "@comment The following lines are automatically generated"; \
|
2011-01-12 09:15:45 +01:00
|
|
|
${SETENV} PEAR_LIB=${PEAR_LIB:Q} WRKSRC=${WRKSRC:Q} TZ=UTC \
|
2010-08-29 08:08:07 +02:00
|
|
|
${INSTALL_ENV} PREFIX=${PREFIX:Q} \
|
2007-05-05 23:32:12 +02:00
|
|
|
${PREFIX}/bin/php -d include_path=".:${PREFIX}/lib/php" \
|
2011-01-12 09:11:49 +01:00
|
|
|
-d log_errors=On -d display_errors=Off \
|
2007-05-05 23:32:12 +02:00
|
|
|
-C -n ${PKGDIR}/../../lang/php/pear_plist.php;
|
2003-12-17 20:02:07 +01:00
|
|
|
GENERATE_PLIST+= ${PEAR_GENERATE_PLIST}
|
|
|
|
|
2005-09-28 23:46:24 +02:00
|
|
|
NO_BUILD= yes
|
2003-12-17 20:02:07 +01:00
|
|
|
|
|
|
|
post-extract:
|
2005-06-14 03:35:09 +02:00
|
|
|
@cd ${WRKSRC} && ${LN} -s ${WRKDIR}/package.xml package.xml
|
2003-12-17 20:02:07 +01:00
|
|
|
|
|
|
|
do-install:
|
2010-03-16 16:34:01 +01:00
|
|
|
cd ${WRKSRC} && ${SETENV} TZ=UTC \
|
2010-08-29 08:08:07 +02:00
|
|
|
${PEAR_CMD} "install" ${PEAR_DESTDIR} -n -O package.xml || exit 1
|
2008-06-12 02:20:10 +02:00
|
|
|
|
|
|
|
.if ${_USE_DESTDIR} != "no"
|
2010-08-29 08:08:07 +02:00
|
|
|
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
|
2008-06-12 02:20:10 +02:00
|
|
|
.endif
|
2003-12-17 20:02:07 +01:00
|
|
|
|
2004-11-01 20:55:57 +01:00
|
|
|
.include "../../lang/php/phpversion.mk"
|
|
|
|
.include "${PHPPKGSRCDIR}/buildlink3.mk"
|
|
|
|
|
2003-12-17 20:02:07 +01:00
|
|
|
.endif # _PEAR_PACKAGE_MK
|