summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lang/php/pear.mk27
1 files changed, 3 insertions, 24 deletions
diff --git a/lang/php/pear.mk b/lang/php/pear.mk
index f38b11fd47e..40a84b3ef58 100644
--- a/lang/php/pear.mk
+++ b/lang/php/pear.mk
@@ -1,18 +1,10 @@
-# $NetBSD: pear.mk,v 1.25 2015/08/08 00:11:29 taca Exp $
+# $NetBSD: pear.mk,v 1.26 2015/08/10 01:46:00 taca 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/
#
-# === Package-settable variables ===
-#
-# PEAR_PACKAGE_XML Use package.xml to build package with ${PEAR_CMD}.
-# Default: yes
-#
-#
-# === Variables defined by this file ===
-#
# PEAR_CMD this is the actual script to execute to install the
# package.
#
@@ -24,8 +16,6 @@ _PEAR_PACKAGE_MK= # defined
.include "../../mk/bsd.prefs.mk"
-PEAR_PACKAGE_XML?= yes
-
EXTRACT_SUFX= .tgz
PKGNAME= ${PHP_PKG_PREFIX}-pear-${DISTNAME}
@@ -48,10 +38,6 @@ PEAR_LIB= lib/php
PEAR_DESTDIR= -P ${DESTDIR} -f
.endif
-NO_BUILD= yes
-
-.if empty(PEAR_PACKAGE_XML:M[nN][oO])
-
# Dynamic PLIST, generated via a helper PHP script, which use registry.
PEAR_GENERATE_PLIST= \
${ECHO} "@comment The following lines are automatically generated"; \
@@ -62,6 +48,8 @@ PEAR_GENERATE_PLIST= \
-C -n ${PKGDIR}/../../lang/php/pear_plist.php;
GENERATE_PLIST+= ${PEAR_GENERATE_PLIST}
+NO_BUILD= yes
+
.if ${_USE_DESTDIR} != "no"
PEAR_FILES_SKIP+= ${PREFIX}/lib/php/\.channels/\.alias/.*\.txt
PEAR_FILES_SKIP+= ${PREFIX}/lib/php/\.channels/.*\.reg
@@ -80,15 +68,6 @@ do-install:
${PEAR_CMD} "install" ${PEAR_DESTDIR} -n -O package.xml || exit 1
${RM} -f ${PEAR_FILES_SKIP:S/^/${DESTDIR}&/}
-.else # PEAR_PACKAGE_XML == no
-
-PLIST_SUBST+= PEAR_LIB=${PEAR_LIB:Q}
-
-do-install:
- cd ${WRKSRC}/lib && ${PAX} -wr * ${DESTDIR}${PREFIX}/${PEAR_LIB}/
-
-.endif
-
.include "../../lang/php/phpversion.mk"
.include "${PHPPKGSRCDIR}/buildlink3.mk"