diff options
author | tnn <tnn@pkgsrc.org> | 2007-09-07 13:26:20 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2007-09-07 13:26:20 +0000 |
commit | 58bf01e50ff767798d136c94e9faa85886e870ce (patch) | |
tree | 5cfcd6d56c7367326ea3515374e4ac21db0d7d4e | |
parent | 5a140cf4b8f43d2b94887d6dab61f4d151254d0f (diff) | |
download | pkgsrc-58bf01e50ff767798d136c94e9faa85886e870ce.tar.gz |
Fix installation of php extensions on HPUX.
-rw-r--r-- | lang/php/ext.mk | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lang/php/ext.mk b/lang/php/ext.mk index 4ef6ddaa13a..3f85b27d717 100644 --- a/lang/php/ext.mk +++ b/lang/php/ext.mk @@ -1,4 +1,4 @@ -# $NetBSD: ext.mk,v 1.17 2007/06/11 17:59:23 heinz Exp $ +# $NetBSD: ext.mk,v 1.18 2007/09/07 13:26:20 tnn Exp $ # # PHP extension package framework, for both PECL and bundled PHP extensions. # @@ -61,6 +61,12 @@ MESSAGE_SUBST+= PHP_EXTENSION_DIR=${PHP_EXTENSION_DIR} MESSAGE_SRC+= ${.CURDIR}/MESSAGE .endif +.if ${OBJECT_FMT} == "SOM" +SHLIB_SUFFIX= sl +.else +SHLIB_SUFFIX= so +.endif + pre-configure: phpize-module phpize-module: @@ -80,7 +86,7 @@ do-install: do-module-install do-module-install: ${INSTALL_DATA_DIR} ${DESTDIR:Q}${PREFIX:Q}/${PHP_EXTENSION_DIR} - ${INSTALL_DATA} ${MODULESDIR}/${PKGMODNAME}.so \ + ${INSTALL_DATA} ${MODULESDIR}/${PKGMODNAME}.${SHLIB_SUFFIX} \ ${DESTDIR:Q}${PREFIX:Q}/${PHP_EXTENSION_DIR} .if defined(USE_PHP_EXT_PATCHES) |