pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/php * allow to specify phpize sub directory with ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/07eeac847c7e
branches:  trunk
changeset: 603736:07eeac847c7e
user:      obache <obache%pkgsrc.org@localhost>
date:      Sat May 12 08:23:34 2012 +0000

description:
* allow to specify phpize sub directory with PHPSETUPSUBDIR.
* allow to override DIST_SUBDIR

diffstat:

 lang/php/ext.mk |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (35 lines):

diff -r f55ed4715969 -r 07eeac847c7e lang/php/ext.mk
--- a/lang/php/ext.mk   Sat May 12 07:51:43 2012 +0000
+++ b/lang/php/ext.mk   Sat May 12 08:23:34 2012 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: ext.mk,v 1.25 2012/01/27 01:55:27 obache Exp $
+# $NetBSD: ext.mk,v 1.26 2012/05/12 08:23:34 obache Exp $
 #
 # PHP extension package framework, for both PECL and bundled PHP extensions.
 #
@@ -24,6 +24,7 @@
 .include "${PHPPKGSRCDIR}/Makefile.common"
 
 PKGMODNAME?=           ${MODNAME:S/-/_/}
+PHPSETUPSUBDIR?=       #empty
 MODULESDIR?=           ${WRKSRC}/modules
 PLIST_SUBST+=          MODNAME=${PKGMODNAME}
 
@@ -49,7 +50,7 @@
 MASTER_SITES?=         http://pecl.php.net/get/
 PECL_DISTNAME?=                ${MODNAME}-${PECL_VERSION}
 DISTNAME=              ${PECL_DISTNAME}
-DIST_SUBDIR=           php-${MODNAME}
+DIST_SUBDIR?=          php-${MODNAME}
 EXTRACT_SUFX?=         .tgz
 .endif
 
@@ -89,7 +90,7 @@
 phpize-module:
        @cookie=${WRKDIR}/.phpize_module_done;                          \
        if [ ! -f $${cookie} ]; then                                    \
-               cd ${WRKSRC} &&                                         \
+               cd ${WRKSRC}/${PHPSETUPSUBDIR} &&                       \
                ${SETENV}                                               \
                        AUTOCONF=${TOOLS_DIR:Q}/bin/autoconf            \
                        AUTOHEADER=${TOOLS_DIR:Q}/bin/autoheader        \



Home | Main Index | Thread Index | Old Index