pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/php



Module Name:    pkgsrc
Committed By:   jdolecek
Date:           Sun Jul 24 14:01:55 UTC 2016

Modified Files:
        pkgsrc/lang/php: ext.mk

Log Message:
fix generation of module-specific .ini file for packages which override PKGMODNAME such as php-pdflib; problem reported by Uwe Klaus


To generate a diff of this commit:
cvs rdiff -u -r1.40 -r1.41 pkgsrc/lang/php/ext.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/php/ext.mk
diff -u pkgsrc/lang/php/ext.mk:1.40 pkgsrc/lang/php/ext.mk:1.41
--- pkgsrc/lang/php/ext.mk:1.40 Sun Jul 17 15:49:44 2016
+++ pkgsrc/lang/php/ext.mk      Sun Jul 24 14:01:55 2016
@@ -1,4 +1,4 @@
-# $NetBSD: ext.mk,v 1.40 2016/07/17 15:49:44 jdolecek Exp $
+# $NetBSD: ext.mk,v 1.41 2016/07/24 14:01:55 jdolecek Exp $
 #
 # PHP extension package framework, for both PECL and bundled PHP extensions.
 #
@@ -49,16 +49,16 @@ EXTRACT_SUFX?=              .tgz
 .endif
 
 EGDIR=      ${PREFIX}/share/examples/php
-CONF_FILES= ${EGDIR}/${MODNAME}.ini ${EXT_CONF_DIR}/${MODNAME}.ini
+CONF_FILES= ${EGDIR}/${PKGMODNAME}.ini ${EXT_CONF_DIR}/${PKGMODNAME}.ini
 
 EXT_CONF_DIR=   ${PKG_SYSCONFDIR}/php.d
 MAKE_DIRS+=     ${EXT_CONF_DIR}
 MAKE_DIRS+=     ${EGDIR}
 
 SUBST_CLASSES+=     ext-ini
-SUBST_FILES.ext-ini=  ${MODNAME}.ini
+SUBST_FILES.ext-ini=  ${PKGMODNAME}.ini
 SUBST_MESSAGE.ext-ini=Creating module ini file 
-SUBST_SED.ext-ini+=    -e 's,@MODNAME@,${MODNAME},g'
+SUBST_SED.ext-ini+=    -e 's,@MODNAME@,${PKGMODNAME},g'
 SUBST_SED.ext-ini+=    -e 's,@EXTENSION_FILE@,${EXTENSION_FILE},g'
 SUBST_SED.ext-ini+=    -e 's,@EXTENSION_DIRECTIVE@,${EXTENSION_DIRECTIVE},g'
 SUBST_STAGE.ext-ini=  post-build
@@ -84,10 +84,10 @@ MESSAGE_SUBST+=             MODNAME=${PKGMODNAME}
 MESSAGE_SUBST+=                EXT_CONF_DIR=${EXT_CONF_DIR}
 .if !empty(PHP_ZEND_EXTENSION:U:M[Yy][Ye][Ss])
 EXTENSION_DIRECTIVE=    zend_extension
-EXTENSION_FILE=         ${PREFIX}/${PHP_EXTENSION_DIR}/${MODNAME}.${SHLIB_SUFFIX}
+EXTENSION_FILE=         ${PREFIX}/${PHP_EXTENSION_DIR}/${PKGMODNAME}.${SHLIB_SUFFIX}
 .else
 EXTENSION_DIRECTIVE=    extension
-EXTENSION_FILE=         ${MODNAME}.${SHLIB_SUFFIX}
+EXTENSION_FILE=         ${PKGMODNAME}.${SHLIB_SUFFIX}
 .endif
 MESSAGE_SUBST+=                EXTENSION_DIRECTIVE=${EXTENSION_DIRECTIVE}
 MESSAGE_SUBST+=                EXTENSION_FILE=${EXTENSION_FILE}
@@ -119,7 +119,7 @@ phpize-module:
        fi
 
 pre-build:
-       ${CP} ${.CURDIR}/../../lang/php/ext.ini ${WRKSRC}/${MODNAME}.ini
+       ${CP} ${.CURDIR}/../../lang/php/ext.ini ${WRKSRC}/${PKGMODNAME}.ini
 
 do-install: do-module-install
 
@@ -129,7 +129,7 @@ do-module-install:
                ${DESTDIR}${PREFIX}/${PHP_EXTENSION_DIR}
 
        ${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
-       ${INSTALL_DATA} ${WRKSRC}/${MODNAME}.ini ${DESTDIR}${EGDIR}
+       ${INSTALL_DATA} ${WRKSRC}/${PKGMODNAME}.ini ${DESTDIR}${EGDIR}
 
 .if defined(USE_PHP_EXT_PATCHES)
 PATCHDIR=              ${.CURDIR}/${PHPPKGSRCDIR}/patches



Home | Main Index | Thread Index | Old Index