TARGET_CFLAGS += $(FPIC)
ifneq ($(HOST_OS),Linux)
- TARGET_CFLAGS += -I$(STAGING_DIR)/host/include
+ TARGET_CFLAGS += -I$(STAGING_DIR_HOSTPKG)/include
endif
ifdef CONFIG_USE_MUSL
TARGET_CFLAGS += -D__UCLIBC__
$(INSTALL_DIR) $(1)/usr/share/aclocal
$(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/share/aclocal/* $(1)/usr/share/aclocal/
- $(SED) '/read dummy/d' $(STAGING_DIR)/host/bin/gettextize
+ $(SED) '/read dummy/d' $(STAGING_DIR_HOSTPKG)/bin/gettextize
endef
define Package/libintl-full/install
endef
define Host/Install
- $(INSTALL_DIR) $(STAGING_DIR)/host/include
- $(INSTALL_DATA) ./src/include/libintl.h $(STAGING_DIR)/host/include/
+ $(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/include
+ $(INSTALL_DATA) ./src/include/libintl.h $(STAGING_DIR_HOSTPKG)/include/
- $(INSTALL_DIR) $(STAGING_DIR)/host/share/aclocal
- $(INSTALL_DATA) ./src/m4/* $(STAGING_DIR)/host/share/aclocal/
+ $(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/share/aclocal
+ $(INSTALL_DATA) ./src/m4/* $(STAGING_DIR_HOSTPKG)/share/aclocal/
endef
define Package/libintl/install
endef
define Host/Install
- $(INSTALL_DIR) $(STAGING_DIR)/host/lib
- $(INSTALL_DATA) $(HOST_BUILD_DIR)/libiconv.a $(STAGING_DIR)/host/lib/
+ $(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/lib
+ $(INSTALL_DATA) $(HOST_BUILD_DIR)/libiconv.a $(STAGING_DIR_HOSTPKG)/lib/
- $(INSTALL_DIR) $(STAGING_DIR)/host/include
- $(INSTALL_DATA) ./src/include/iconv.h $(STAGING_DIR)/host/include/
+ $(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/include
+ $(INSTALL_DATA) ./src/include/iconv.h $(STAGING_DIR_HOSTPKG)/include/
- $(INSTALL_DIR) $(STAGING_DIR)/host/share/aclocal
- $(INSTALL_DATA) ./src/m4/* $(STAGING_DIR)/host/share/aclocal/
+ $(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/share/aclocal
+ $(INSTALL_DATA) ./src/m4/* $(STAGING_DIR_HOSTPKG)/share/aclocal/
endef
$(eval $(call HostBuild))
include $(INCLUDE_DIR)/package.mk
-CONFIGURE_PREFIX=$(STAGING_DIR)/host
+CONFIGURE_PREFIX=$(STAGING_DIR_HOSTPKG)
export GLOBAL_LIBDIR=$(STAGING_DIR)/usr/lib
define Package/libltdl
$(CP) $(PKG_INSTALL_DIR)/usr/bin/ncursesw6-config $(2)/bin/
$(SED) 's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' -e 's/$$$$INCS //g' \
$(2)/bin/ncursesw6-config
- ln -sf $(STAGING_DIR)/host/bin/ncursesw6-config $(1)/usr/bin/ncursesw6-config
+ ln -sf $(STAGING_DIR_HOSTPKG)/bin/ncursesw6-config $(1)/usr/bin/ncursesw6-config
endef
define Host/Compile
endef
define Host/Install
- $(INSTALL_DIR) $(STAGING_DIR)/host/bin/
- $(MAKE) -C $(HOST_BUILD_DIR) PREFIX=$(STAGING_DIR)/host/ install
+ $(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/bin/
+ $(MAKE) -C $(HOST_BUILD_DIR) PREFIX=$(STAGING_DIR_HOSTPKG)/ install
endef
define Host/Compile
endef
define Host/Install
- $(INSTALL_BIN) $(HOST_BUILD_DIR)/bsdiff $(STAGING_DIR)/host/bin/
+ $(INSTALL_BIN) $(HOST_BUILD_DIR)/bsdiff $(STAGING_DIR_HOSTPKG)/bin/
endef
$(eval $(call HostBuild))
all
HOST_CONFIGURE_ARGS+= \
- --prefix=$(STAGING_DIR)/host
+ --prefix=$(STAGING_DIR_HOSTPKG)
define Host/Install
- $(INSTALL_DIR) $(STAGING_DIR)/host/bin/
- $(MAKE) -C $(HOST_BUILD_DIR) PREFIX=$(STAGING_DIR)/host/ install
+ $(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/bin/
+ $(MAKE) -C $(HOST_BUILD_DIR) PREFIX=$(STAGING_DIR_HOSTPKG)/ install
endef
$(eval $(call HostBuild))
endef
define Host/Configure
- $(SED) 's,"/usr/local/","$(STAGING_DIR)/host/",' $(HOST_BUILD_DIR)/src/luaconf.h
+ $(SED) 's,"/usr/local/","$(STAGING_DIR_HOSTPKG)/",' $(HOST_BUILD_DIR)/src/luaconf.h
endef
ifeq ($(HOST_OS),Darwin)
define Host/Install
$(MAKE) -C $(HOST_BUILD_DIR) \
- INSTALL_TOP="$(STAGING_DIR)/host" \
+ INSTALL_TOP="$(STAGING_DIR_HOSTPKG)" \
install
endef