mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 06:58:39 +01:00
treewide: use $(STAGING_DIR)/host instead of $(STAGING_DIR_HOST), sync with changes in trunk
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
This commit is contained in:
+4
-4
@@ -491,10 +491,10 @@ define Build/InstallDev
|
||||
mkdir -p $(PKG_BUILD_DIR)/staging/usr/bin
|
||||
make -C $(PKG_BUILD_DIR) install INSTALL_ROOT=$(PKG_BUILD_DIR)/staging
|
||||
rm -f $(PKG_BUILD_DIR)/staging/usr/bin/php
|
||||
$(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
|
||||
$(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
|
||||
|
||||
+2
-2
@@ -15,11 +15,11 @@ endef
|
||||
|
||||
define Build/Prepare
|
||||
$(Build/Prepare/Default)
|
||||
( cd $(PKG_BUILD_DIR); $(STAGING_DIR_HOST)/usr/bin/phpize )
|
||||
( cd $(PKG_BUILD_DIR); $(STAGING_DIR)/host/usr/bin/phpize )
|
||||
endef
|
||||
|
||||
CONFIGURE_ARGS+= \
|
||||
--with-php-config=$(STAGING_DIR_HOST)/usr/bin/php-config
|
||||
--with-php-config=$(STAGING_DIR)/host/usr/bin/php-config
|
||||
|
||||
define PECLPackage
|
||||
|
||||
|
||||
Reference in New Issue
Block a user