2005-03-25 13:45:09 +01:00
|
|
|
# $NetBSD: pear.mk,v 1.6 2005/03/25 12:45:09 jmmv 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
|
|
|
|
|
|
|
|
PKGNAME= pear-${DISTNAME}
|
|
|
|
CATEGORIES+= www
|
|
|
|
|
|
|
|
MASTER_SITE_PEAR_PACKAGE+= \
|
|
|
|
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/-.*//}
|
|
|
|
|
2003-12-17 20:02:07 +01:00
|
|
|
PEAR_CMD= ${PREFIX}/bin/pear
|
|
|
|
PEAR_LIB= lib/php
|
|
|
|
|
2004-04-03 06:39:47 +02:00
|
|
|
# whether @dirrm for baseinstalldir should be included in PLIST
|
|
|
|
PEAR_DIRRM_BASEDIR?= # empty
|
2004-04-02 23:54:49 +02:00
|
|
|
|
2004-04-03 06:39:47 +02:00
|
|
|
# Dynamic PLIST, generated via a helper PHP script, which parses the package
|
|
|
|
# XML config file.
|
2003-12-17 20:02:07 +01:00
|
|
|
PEAR_GENERATE_PLIST= \
|
|
|
|
${ECHO} "@comment The following lines are automatically generated"; \
|
2004-04-03 06:39:47 +02:00
|
|
|
PEAR_LIB="${PEAR_LIB}" WRKSRC="${WRKSRC}" \
|
|
|
|
PEAR_DIRRM_BASEDIR="${PEAR_DIRRM_BASEDIR}" \
|
2004-12-12 12:03:33 +01:00
|
|
|
${PREFIX}/bin/php -C -n ${PKGDIR}/../../lang/php/pear_plist.php;
|
2003-12-17 20:02:07 +01:00
|
|
|
GENERATE_PLIST+= ${PEAR_GENERATE_PLIST}
|
|
|
|
|
|
|
|
NO_BUILD= # defined
|
|
|
|
|
|
|
|
post-extract:
|
|
|
|
@cd ${WRKSRC} && ${LN} -s ${WRKDIR}/package.xml
|
|
|
|
|
|
|
|
do-install:
|
2004-12-12 10:41:14 +01:00
|
|
|
cd ${WRKSRC} && ${PEAR_CMD} install package.xml || exit 1
|
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
|