[packages] php5: fix paths in php-config, used by pecl module builds
[packages] php5: fix paths in php-config, used by pecl module builds

Signed-off-by: Michael Heimpold <mhei@heimpold.de>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@35278 3c298f89-4303-0410-b956-a3cf2f4a3e73

--- a/lang/php5/Makefile
+++ b/lang/php5/Makefile
@@ -471,6 +471,7 @@
 	$(CP) $(PKG_BUILD_DIR)/staging/* $(STAGING_DIR_HOST)
 	sed -i -e "s#prefix='/usr'#prefix='$(STAGING_DIR_HOST)/usr'#" $(STAGING_DIR_HOST)/usr/bin/phpize
 	sed -i -e "s#exec_prefix=\"\`eval echo /usr\`\"#exec_prefix='$(STAGING_DIR_HOST)/usr'#" $(STAGING_DIR_HOST)/usr/bin/phpize
+	sed -i -e "s#prefix=\"/usr\"#prefix=\"$(STAGING_DIR_HOST)/usr\"#" $(STAGING_DIR_HOST)/usr/bin/php-config
 endef
 
 define BuildModule

--- a/lang/php5/pecl.mk
+++ b/lang/php5/pecl.mk
@@ -19,6 +19,9 @@
 	$(Build/Configure/Default)
 endef
 
+CONFIGURE_ARGS+= \
+	--with-php-config=$(STAGING_DIR_HOST)/usr/bin/php-config
+
 define PECLPackage
 
   define Package/php5-pecl-$(1)

comments