treewide: replace $(STAGING_DIR)/host and $(HOST_BUILD_PREFIX) with $(STAGING_DIR_HOS... 3813/head
authorMatthias Schiffer <mschiffer@universe-factory.net>
Tue, 10 Jan 2017 14:02:50 +0000 (15:02 +0100)
committerMatthias Schiffer <mschiffer@universe-factory.net>
Tue, 10 Jan 2017 17:25:54 +0000 (18:25 +0100)
As both LEDE and OpenWrt have STAGING_DIR_HOSTPKG now, we can start to rely
on it. See 73b7f55424de52d8179a9ad808252fe3bf8dcc9d for more information on
STAGING_DIR_HOSTPKG.

STAGING_DIR_HOSTPKG won't actually be changed before the first LEDE release
(it is equivalent to $(STAGING_DIR)/host), so this simple search/replace
cleanup is safe to apply. Doing this cleanup now will be useful for the
Gluon project (an OpenWrt/LEDE based firmware framework) for experimenting
with modifying STAGING_DIR_HOSTPKG before doing this in the LEDE upstream.

Also fixes a typo in the dbus Makefile ("STAGIND_DIR").

Signed-off-by: Matthias Schiffer <mschiffer@universe-factory.net>
36 files changed:
admin/sudo/Makefile
lang/luajit/Makefile
lang/lualanes/Makefile
lang/luarocks/Makefile
lang/node/Makefile
lang/perl-xml-parser/Makefile
lang/perl/Makefile
lang/perl/perlmod.mk
lang/php7/Makefile
lang/python-cffi/Makefile
lang/python-packages/Makefile
lang/python-pip/Makefile
lang/python-ply/Makefile
lang/python-pycparser/Makefile
lang/python-setuptools/Makefile
lang/python/files/python-host.mk
lang/python3/files/python3-host.mk
lang/ruby/Makefile
libs/boost/Makefile
libs/glib2/Makefile
libs/libgd/Makefile
libs/libgee/Makefile
libs/libgpg-error/Makefile
libs/libmraa/Makefile
libs/libupm/Makefile
libs/libxslt/Makefile
libs/libzdb/Makefile
libs/libzdb/patches/020-filterh-use-host-built-version.patch
libs/postgresql/Makefile
libs/protobuf/Makefile
multimedia/grilo/Makefile
net/nfs-kernel-server/Makefile
net/prosody/Makefile
net/seafile-ccnet/patches/010-Makefile.patch
net/seafile-server/patches/050-libseafile-makefile-fixes.patch
utils/dbus/Makefile

index 05551613e7045ce5b7a964eb9c79fca9e013a35e..e9090eea407115326eb3a7416a302fc5626362ee 100644 (file)
@@ -64,8 +64,8 @@ define Host/Compile
 endef
 
 define Host/Install
-       $(INSTALL_DIR) $(HOST_BUILD_PREFIX)/bin
-       $(CP) $(HOST_BUILD_DIR)/lib/util/mksig{list,name} $(HOST_BUILD_PREFIX)/bin/
+       $(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/bin
+       $(CP) $(HOST_BUILD_DIR)/lib/util/mksig{list,name} $(STAGING_DIR_HOSTPKG)/bin/
 endef
 
 $(eval $(call HostBuild))
index c68f10ac2d66d52024b8b6dbd896fb71f0936442..3606d24162d799408601fe79ebf2ab8c4551dbee 100644 (file)
@@ -75,16 +75,16 @@ endef
 
 define Host/Compile
        $(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) \
-               DPREFIX=$(STAGING_DIR)/host \
+               DPREFIX=$(STAGING_DIR_HOSTPKG) \
                TARGET_CFLAGS="$(HOST_CFLAGS)" \
                TARGET_LDFLAGS="$(HOST_LDFLAGS)"
 endef
 
 define Host/Install
        $(MAKE) $(HOST_JOBS) -C $(HOST_BUILD_DIR) \
-               DPREFIX=$(STAGING_DIR)/host \
+               DPREFIX=$(STAGING_DIR_HOSTPKG) \
                install
-       $(CP) $(STAGING_DIR)/host/bin/luajit-2.1.0-beta2 $(STAGING_DIR)/host/bin/$(PKG_NAME)
+       $(CP) $(STAGING_DIR_HOSTPKG)/bin/luajit-2.1.0-beta2 $(STAGING_DIR_HOSTPKG)/bin/$(PKG_NAME)
 endef
 
 $(eval $(call HostBuild,luajit))
index 616129066f82df1be07e5945bea37739110c4e1a..749709d99a8671695e350eacd1294fd212517dbc 100644 (file)
@@ -42,8 +42,8 @@ endef
 define Build/Compile
        $(MAKE) -C $(PKG_BUILD_DIR) all \
         CC="$(TARGET_CC)" \
-        LUA="$(STAGING_DIR)/host/bin/lua" \
-        LUAC="$(STAGING_DIR)/host/bin/luac" \
+        LUA="$(STAGING_DIR_HOSTPKG)/bin/lua" \
+        LUAC="$(STAGING_DIR_HOSTPKG)/bin/luac" \
         OPT_FLAGS="$(TARGET_CFLAGS) --std=c99 -Dpthread_yield=sched_yield"
 endef
 
index b8b89ae99eeb30e6bafbc624f994de9b16e3c37e..73dbde722bcab4a7d2d41c0eb42805248f79148f 100644 (file)
@@ -41,7 +41,7 @@ endef
 CONFIGURE_ARGS = \
     --prefix=$(CONFIGURE_PREFIX) \
     --sysconfdir=/etc \
-    --with-lua=$(STAGING_DIR)/host
+    --with-lua=$(STAGING_DIR_HOSTPKG)
 
 CONFIGURE_VARS = \
        LUAROCKS_UNAME_S="Linux" \
index 6cb1e205df7b68c323ed18b36d8a0c83f1250168..3a1a2f3eb836181da40cbda8a65f4ff0da2eb0d1 100644 (file)
@@ -72,7 +72,7 @@ HOST_CONFIGURE_VARS:=
 HOST_CONFIGURE_ARGS:= \
        --dest-os=linux \
        --without-snapshot \
-       --prefix=$(HOST_BUILD_PREFIX)
+       --prefix=$(STAGING_DIR_HOSTPKG)
 
 HOST_CONFIGURE_CMD:=python ./configure
 
index e5d3b2c88bbaa4b02669a75dd49d03ee6e049728..57977c19b881a30d696018785f68b33e7d79ea7f 100644 (file)
@@ -25,8 +25,8 @@ HOST_BUILD_DEPENDS:=perl/host expat/host
 
 EXPAT_LIBPATH:=$(STAGING_DIR)/usr/lib
 EXPAT_INCPATH=$(STAGING_DIR)/usr/include
-HOST_EXPAT_LIBPATH:=$(STAGING_DIR)/host/lib
-HOST_EXPAT_INCPATH=$(STAGING_DIR)/host/include
+HOST_EXPAT_LIBPATH:=$(STAGING_DIR_HOSTPKG)/lib
+HOST_EXPAT_INCPATH=$(STAGING_DIR_HOSTPKG)/include
 
 include $(INCLUDE_DIR)/package.mk
 include $(INCLUDE_DIR)/host-build.mk
index 7c7f10d4e0878e539a6310eaa66ebcb59444466d..21f0349d6cdb6fde2fddefdd1acae10b006af9dd 100644 (file)
@@ -35,7 +35,7 @@ PKG_BUILD_PARALLEL:=1
 HOST_BUILD_PARALLEL:=1
 
 # Variables used during configuration/build
-HOST_PERL_PREFIX:=$(STAGING_DIR)/host/usr
+HOST_PERL_PREFIX:=$(STAGING_DIR_HOSTPKG)/usr
 
 # Filter -g3, it will break Compress-Raw-Zlib
 TARGET_CFLAGS_PERL:=$(patsubst -g3,-g,$(TARGET_CFLAGS))
index c64942fedee3b8bc161e029f51caa4f4b1c7cd02..173e890a8bbe8927696178852f9238e6c3c8c268 100644 (file)
@@ -4,12 +4,12 @@
 PERL_VERSION:=5.22
 
 # Build environment
-HOST_PERL_PREFIX:=$(STAGING_DIR)/host/usr
+HOST_PERL_PREFIX:=$(STAGING_DIR_HOSTPKG)/usr
 ifneq ($(CONFIG_USE_GLIBC),)
        EXTRA_LIBS:=bsd
        EXTRA_LIBDIRS:=$(STAGING_DIR)/lib
 endif
-PERL_CMD:=$(STAGING_DIR)/host/usr/bin/perl$(PERL_VERSION).0
+PERL_CMD:=$(STAGING_DIR_HOSTPKG)/usr/bin/perl$(PERL_VERSION).0
 
 MOD_CFLAGS_PERL:=-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(TARGET_CFLAGS) $(TARGET_CPPFLAGS)
 ifdef CONFIG_PERL_THREADS
@@ -26,7 +26,7 @@ define perlmod/host/relink
        rm -f $(1)/Makefile.aperl
        $(MAKE) -C $(1) perl
        $(CP) $(1)/perl $(PERL_CMD)
-       $(CP) $(1)/perl $(STAGING_DIR)/host/usr/bin/perl
+       $(CP) $(1)/perl $(STAGING_DIR_HOSTPKG)/usr/bin/perl
 endef
 
 define perlmod/host/Configure
index d311a7b068a4e27b2eb5e1812e7f5cc73b9defb1..3f3c2cb5640f532a85007238ce01dc1a5e9ced65 100644 (file)
@@ -443,7 +443,7 @@ CONFIGURE_VARS+= \
        ac_cv_c_bigendian_php=$(if $(CONFIG_BIG_ENDIAN),yes,no) \
        php_cv_cc_rpath="no" \
        iconv_impl_name="gnu_libiconv" \
-       ac_cv_php_xml2_config_path="$(STAGING_DIR)/host/bin/xml2-config" \
+       ac_cv_php_xml2_config_path="$(STAGING_DIR_HOSTPKG)/bin/xml2-config" \
 
 define Package/php7/conffiles
 /etc/php.ini
index b8a50009d275e1226cd3cb83812e311ce47846a8..b6d15fd6a9fa1213925e122ef79b371507559894 100644 (file)
@@ -45,7 +45,7 @@ define Build/Compile
 endef
 
 define Host/Compile
-       $(call Build/Compile/HostPyMod,,install --prefix="" --root="$(HOST_BUILD_PREFIX)")
+       $(call Build/Compile/HostPyMod,,install --prefix="" --root="$(STAGING_DIR_HOSTPKG)")
 endef
 
 define Host/Install
index f12b78e4d2b38c991a18a595c4c1810082f2dd9a..701f0e6c4260b155917e777ca26ac9d22ccf8d93 100644 (file)
@@ -69,7 +69,7 @@ CONFIG_PACKAGE_python-packages-envs:=$(call qstrip,$(CONFIG_PACKAGE_python-packa
 CONFIG_PACKAGE_python-packages-extra-deps:=$(call qstrip,$(CONFIG_PACKAGE_python-packages-extra-deps))
 CONFIG_PACKAGE_python-packages-pip-opts:=$(call qstrip,$(CONFIG_PACKAGE_python-packages-pip-opts))
 
-HOST_PYTHON_PIP:=$(STAGING_DIR)/host/bin/pip$(PYTHON_VERSION)
+HOST_PYTHON_PIP:=$(STAGING_DIR_HOSTPKG)/bin/pip$(PYTHON_VERSION)
 
 decr=$(word $(1),0 1 2 3 4 5 6 7 8 9 10)
 recur=$(if $(subst 0,,$(2)),$(call recur,$(1),$(call decr,$(2)),$(call $(1)$(2),$(3))),$(3))
@@ -92,7 +92,7 @@ HOST_PYTHON_PIP_INSTALL=$(HOST_PYTHON_PIP) install \
        $(if $(CONFIG_PACKAGE_python-packages-index-url), --index-url $(CONFIG_PACKAGE_python-packages-index-url)) \
        $(if $(CONFIG_PACKAGE_python-packages-pip-opts), $(CONFIG_PACKAGE_python-packages-pip-opts)) \
 
-HOST_PYTHON_PIP_INSTALL_HOST:=$(call HOST_PYTHON_PIP_INSTALL,$(STAGING_DIR)/host,"")
+HOST_PYTHON_PIP_INSTALL_HOST:=$(call HOST_PYTHON_PIP_INSTALL,$(STAGING_DIR_HOSTPKG),"")
 HOST_PYTHON_PIP_INSTALL_TARGET=$(call HOST_PYTHON_PIP_INSTALL,$(PKG_INSTALL_DIR)/$(call req2dir,$(pkg)),/usr)
 HOST_PYTHON_PIP_INSTALL_CLEANUP:=$(call HOST_PYTHON_PIP_INSTALL,$(PKG_INSTALL_DIR)/_cleanup,/usr)
 
index db40f8f6a300a9452368c9f57b25e061b18f5353..2099e63a95c3b2ae073c37f4dde5d362a5e9b178 100644 (file)
@@ -62,7 +62,7 @@ endef
 
 define Host/Compile
        $(call Build/Compile/HostPyMod,,\
-               install --root="$(STAGING_DIR)/host" --prefix="" \
+               install --root="$(STAGING_DIR_HOSTPKG)" --prefix="" \
                --single-version-externally-managed \
        )
 endef
index ba90ecb30ca0c753d1d9afc122850a46d541525b..0b0e5537f35b1fd7b50e316716453c364faf6a90 100644 (file)
@@ -46,7 +46,7 @@ define Build/Compile
 endef
 
 define Host/Compile
-       $(call Build/Compile/HostPyMod,,install --prefix="" --root="$(HOST_BUILD_PREFIX)")
+       $(call Build/Compile/HostPyMod,,install --prefix="" --root="$(STAGING_DIR_HOSTPKG)")
 endef
 
 define Host/Install
index ff17417e7d440815ddc15721024ecbc565fad57c..37e6c8403883d5385dc5ea4f2560e7aea0b61310 100644 (file)
@@ -47,7 +47,7 @@ define Build/Compile
 endef
 
 define Host/Compile
-       $(call Build/Compile/HostPyMod,,install --prefix="" --root="$(HOST_BUILD_PREFIX)")
+       $(call Build/Compile/HostPyMod,,install --prefix="" --root="$(STAGING_DIR_HOSTPKG)")
 endef
 
 define Host/Install
index 6efc433a44a89839516281b4226018723d00a5d4..1f312229f9b34233c9d0908db28be9f2af8437e9 100644 (file)
@@ -63,7 +63,7 @@ endef
 
 define Host/Compile
        $(call Build/Compile/HostPyMod,,\
-               install --root="$(HOST_BUILD_PREFIX)" --prefix="" \
+               install --root="$(STAGING_DIR_HOSTPKG)" --prefix="" \
                --single-version-externally-managed \
        )
 endef
index ff2ed57d98107fe0d60a0e236262dc5d403d7303..5e9f50999a5a868d30e1149cf182eb6cd7a6cc28 100644 (file)
@@ -73,7 +73,7 @@ endef
 
 define HostPy/Compile/Default
        $(call Build/Compile/HostPyMod,,\
-               install --root="$(HOST_BUILD_PREFIX)" --prefix="" \
+               install --root="$(STAGING_DIR_HOSTPKG)" --prefix="" \
                --single-version-externally-managed \
        )
 endef
index e9677734fb71b8536e9c2968c02e229447319f8c..8ff6dd789a23d7446883ed38dac8eb77478ec3f2 100644 (file)
@@ -73,7 +73,7 @@ endef
 
 define HostPy3/Compile/Default
        $(call Build/Compile/HostPy3Mod,,\
-               install --root="$(HOST_BUILD_PREFIX)" --prefix="" \
+               install --root="$(STAGING_DIR_HOSTPKG)" --prefix="" \
                --single-version-externally-managed \
        )
 endef
index 0bf708ff245ff6fffa0a8b8d2141bc056d790a41..7d56dee33c43ffe2827fe449d69ffd07426ce1a4 100644 (file)
@@ -90,7 +90,7 @@ endef
 define Host/Install
        # When ruby version is updated, make install asks in some cases before replace
        # an existing different file. Remove them before install and avoid the interaction
-       rm -f $(HOST_BUILD_PREFIX)/bin/rake
+       rm -f $(STAGING_DIR_HOSTPKG)/bin/rake
        $(call Host/Install/Default)
 endef
 
index d645a3d3dbce6e3f4791f8b25651ea4dd0ced630..45e9c6282bb6db898051f461b0078784d92f64bb 100644 (file)
@@ -417,11 +417,11 @@ endef
 
 define Host/Install
        $(INSTALL_DIR) \
-               $(STAGING_DIR)/host/bin
+               $(STAGING_DIR_HOSTPKG)/bin
 
        $(CP) \
                $(HOST_BUILD_DIR)/tools/build/src/engine/bin.*/b2 \
-               $(STAGING_DIR)/host/bin/
+               $(STAGING_DIR_HOSTPKG)/bin/
 endef
 
 define Package/boost/Default/install
index 013e23b1608d8d90e32897014e338b49495330e0..48166e8fac989dba5695229afe3c78455f41b053 100644 (file)
@@ -61,7 +61,7 @@ CONFIGURE_ARGS += \
 CONFIGURE_VARS += \
        glib_cv_stack_grows=no \
        glib_cv_uscore=no \
-       ac_cv_path_GLIB_GENMARSHAL=$(STAGING_DIR)/host/bin/glib-genmarshal \
+       ac_cv_path_GLIB_GENMARSHAL=$(STAGING_DIR_HOSTPKG)/bin/glib-genmarshal \
        ac_cv_func_mmap_fixed_mapped=yes \
        ac_cv_func_posix_getpwuid_r=yes \
        ac_cv_func_posix_getgrgid_r=yes
index 0309ff28ce7ee1d28abe3df355e4c7106d558895..3749982641bf7e200f2c550321d4af09eea83085 100644 (file)
@@ -54,7 +54,7 @@ CONFIGURE_ARGS += \
        --without-iconv
 
 CONFIGURE_VARS += \
-       LIBPNG12_CONFIG="$(STAGING_DIR)/host/bin/libpng12-config" \
+       LIBPNG12_CONFIG="$(STAGING_DIR_HOSTPKG)/bin/libpng12-config" \
        ac_cv_header_iconv_h=no
 
 define Build/InstallDev
index 9be56482d03747334790fa069ba7010892117c59..27b353c16679c9517dc9839ff01456efcd6969f9 100644 (file)
@@ -57,10 +57,10 @@ define Build/InstallDev
        $(INSTALL_DATA) \
                $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
                $(1)/usr/lib/pkgconfig/
-       $(INSTALL_DIR) $(STAGING_DIR)/host/share/vala-0.30/vapi/
+       $(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/share/vala-0.30/vapi/
        $(INSTALL_DATA) \
                 $(PKG_INSTALL_DIR)/usr/share/vala/vapi/* \
-                $(STAGING_DIR)/host/share/vala-0.30/vapi
+                $(STAGING_DIR_HOSTPKG)/share/vala-0.30/vapi
 endef
 
 define Package/libgee/install
index 27e5e0954ec07e6da4753ca190a8f0ac6d772ca8..999058632cd2ed7cf16643593950f6323ef81c67 100644 (file)
@@ -51,7 +51,7 @@ define Build/InstallDev
        $(SED) \
                's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
                $(2)/bin/gpg-error-config
-       ln -sf $(STAGING_DIR)/host/bin/gpg-error-config $(1)/usr/bin/gpg-error-config
+       ln -sf $(STAGING_DIR_HOSTPKG)/bin/gpg-error-config $(1)/usr/bin/gpg-error-config
 
        $(INSTALL_DIR) $(1)/usr/include
        $(INSTALL_DATA) \
index 1bff5ff9949795e3ee91746974fd0b40ce2ae5a1..69085691b42f7c58877db6beb7736640473d4127 100644 (file)
@@ -28,8 +28,8 @@ include $(INCLUDE_DIR)/cmake.mk
 
 CMAKE_OPTIONS=-DBUILDARCH=$(CONFIG_ARCH) \
        -DENABLEEXAMPLES=0 \
-       -DNODE_EXECUTABLE=$(STAGING_DIR)/host/bin/node \
-       -DSWIG_DIR=$(STAGING_DIR)/host/bin
+       -DNODE_EXECUTABLE=$(STAGING_DIR_HOSTPKG)/bin/node \
+       -DSWIG_DIR=$(STAGING_DIR_HOSTPKG)/bin
 
 TARGET_CFLAGS+=-I$(STAGING_DIR)/usr/include/node
 
index c1eaad16e6d4bfdbf9b76bb5efc0fe193196abca..cb7add6d983974ae4ab88722aec5aa80d422d423 100644 (file)
@@ -36,8 +36,8 @@ UPM_MODULES:= \
        th02 tm1637 tsl2561 ttp223 ublox6 uln200xa waterlevel wheelencoder wt5001 yg1006 zfm20
 
 CMAKE_OPTIONS=-DBUILDARCH=$(CONFIG_ARCH) \
-       -DNODE_EXECUTABLE=$(STAGING_DIR)/host/bin/node \
-       -DSWIG_DIR=$(STAGING_DIR)/host/bin
+       -DNODE_EXECUTABLE=$(STAGING_DIR_HOSTPKG)/bin/node \
+       -DSWIG_DIR=$(STAGING_DIR_HOSTPKG)/bin
 
 define Package/libupm/Default
   SECTION:=libs
index 955073a0073e2c7c2bf3cf9234011d9317004f9b..5ca407c4abe5e6da490cd7cd169f0c26ce1787f6 100644 (file)
@@ -83,7 +83,7 @@ define Build/InstallDev/Xslt
                $(PKG_INSTALL_DIR)/usr/bin/xslt-config \
                $(2)/bin/
 
-       ln -sf $(STAGING_DIR)/host/bin/xslt-config $(1)/usr/bin/xslt-config
+       ln -sf $(STAGING_DIR_HOSTPKG)/bin/xslt-config $(1)/usr/bin/xslt-config
 
        $(SED) \
                's,^\(prefix\|exec_prefix\)=.*,\1=$(STAGING_DIR)/usr,g' \
index a8fcf30c278035aa5933097c1a2a6e24ce7082ac..c4f38f45bce93c238ca04c27835553be3aee5bf5 100644 (file)
@@ -63,8 +63,8 @@ define Host/Compile
 endef
 
 define Host/Install
-       $(INSTALL_DIR) $(STAGING_DIR)/host/bin
-       $(CP) $(HOST_BUILD_DIR)/tools/bin/filterh $(STAGING_DIR)/host/bin/
+       $(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/bin
+       $(CP) $(HOST_BUILD_DIR)/tools/bin/filterh $(STAGING_DIR_HOSTPKG)/bin/
 endef
 
 $(eval $(call HostBuild))
index 1edfd77b3a7b0cdcbc5d9c7478b4af60641f0c27..7495fbc0bedc76b0a0a382d2d6a92878f0a21e28 100644 (file)
@@ -14,7 +14,7 @@ diff -rupN libzdb-3.0.orig/Makefile.am libzdb-3.0/Makefile.am
  RE2C          = @RE2C@
  RE2CFLAGS       = -b
 -FILTERH         = ./tools/bin/filterh
-+FILTERH         = $(STAGING_DIR)/host/bin/filterh
++FILTERH         = $(STAGING_DIR_HOSTPKG)/bin/filterh
  
  AM_CPPFLAGS     = $(CPPFLAGS) $(DBCPPFLAGS)
  AM_CPPFLAGS     += -Isrc -Isrc/util -Isrc/net -Isrc/db -Isrc/exceptions
index f27fa1e39899c04178e2a5cf27918a42681c8688..05071468d243084ffd76ea9f055497330a134e6e 100644 (file)
@@ -147,14 +147,14 @@ endef
 define Host/Install
        $(INSTALL_DIR) $(STAGING_DIR)/usr/bin/
        $(INSTALL_BIN) $(HOST_BUILD_DIR)/src/bin/pg_config/pg_config $(STAGING_DIR)/usr/bin/
-       $(INSTALL_DIR) $(STAGING_DIR)/host/bin/
-       $(INSTALL_BIN) $(HOST_BUILD_DIR)/src/interfaces/ecpg/preproc/ecpg $(STAGING_DIR)/host/bin/
-       $(INSTALL_BIN) $(HOST_BUILD_DIR)/src/timezone/zic $(STAGING_DIR)/host/bin/
+       $(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/bin/
+       $(INSTALL_BIN) $(HOST_BUILD_DIR)/src/interfaces/ecpg/preproc/ecpg $(STAGING_DIR_HOSTPKG)/bin/
+       $(INSTALL_BIN) $(HOST_BUILD_DIR)/src/timezone/zic $(STAGING_DIR_HOSTPKG)/bin/
 endef
 
 define Build/Configure
        $(Build/Configure/Default)
-       $(SED) 's@ECPG = ../../preproc/ecpg@ECPG = $(STAGING_DIR)/host/bin/ecpg@' $(PKG_BUILD_DIR)/src/interfaces/ecpg/test/Makefile.regress
+       $(SED) 's@ECPG = ../../preproc/ecpg@ECPG = $(STAGING_DIR_HOSTPKG)/bin/ecpg@' $(PKG_BUILD_DIR)/src/interfaces/ecpg/test/Makefile.regress
 endef
 
 TARGET_CFLAGS += $(FPIC) -lpthread
index 1e70a12fce9be730f52805b3a805bc6857825f23..93d538a0a1ab23434def51f4553b4906ddac5db4 100644 (file)
@@ -41,7 +41,7 @@ define Package/protobuf/description
  of its internal RPC protocols and file formats.
 endef
 
-CONFIGURE_ARGS += --with-protoc=$(STAGING_DIR)/host/bin/protoc
+CONFIGURE_ARGS += --with-protoc=$(STAGING_DIR_HOSTPKG)/bin/protoc
 
 define Build/InstallDev
        $(INSTALL_DIR) \
index 66875d5dad35ea9b7a12078aa9c60fc4daa7876d..2daa0d573767169888279f5c2435e0c423f14c75 100644 (file)
@@ -56,13 +56,13 @@ define Build/InstallDev
        $(INSTALL_DATA) \
                $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/*.pc \
                $(1)/usr/lib/pkgconfig/
-       $(INSTALL_DIR) $(STAGING_DIR)/host/share/vala-0.30/vapi/
+       $(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/share/vala-0.30/vapi/
        # Note: this are compiled elsewhere because grilo refuses to
        # generate VAPI files unless gobject-introspection exists;
        # OpenWrt does not yet have a gobject-introspection package.
        $(INSTALL_DATA) \
                ./files/*.vapi \
-               $(STAGING_DIR)/host/share/vala-0.30/vapi
+               $(STAGING_DIR_HOSTPKG)/share/vala-0.30/vapi
 endef
 
 define Package/grilo/install
index 26ff4bdd66235bda64e3611450b9af9704addc1a..e2d68384aba544c48cdebf7f1fcc6a1afa0c63ae 100644 (file)
@@ -93,8 +93,8 @@ MAKE_FLAGS += \
        OPT="$(TARGET_CFLAGS)" \
        INSTALLSUID="install -m 4755" \
        DESTDIR="$(PKG_INSTALL_DIR)" \
-       RPCGEN_PATH=$(STAGING_DIR)/host/bin/rpcgen \
-       RPCGEN=$(STAGING_DIR)/host/bin/rpcgen
+       RPCGEN_PATH=$(STAGING_DIR_HOSTPKG)/bin/rpcgen \
+       RPCGEN=$(STAGING_DIR_HOSTPKG)/bin/rpcgen
 
 HOST_CFLAGS += -Dlinux
 
@@ -125,8 +125,8 @@ define Host/Compile
 endef
 
 define Host/Install
-       $(INSTALL_DIR) $(STAGING_DIR)/host/bin
-       $(INSTALL_BIN) $(HOST_BUILD_DIR)/tools/rpcgen/rpcgen $(STAGING_DIR)/host/bin/rpcgen
+       $(INSTALL_DIR) $(STAGING_DIR_HOSTPKG)/bin
+       $(INSTALL_BIN) $(HOST_BUILD_DIR)/tools/rpcgen/rpcgen $(STAGING_DIR_HOSTPKG)/bin/rpcgen
 endef
 
 define Package/nfs-kernel-server/install
index 0942a626f3973b819b87a722aee31cb5aeef10a8..f5a4ac63ee4ed694d4b7a3a21205b6161176262e 100644 (file)
@@ -50,7 +50,7 @@ define Build/Configure
        # this is *NOT* GNU autoconf stuff
        (cd $(PKG_BUILD_DIR); ./configure \
                --prefix=/usr \
-               --with-lua="$(STAGING_DIR)/host/bin" \
+               --with-lua="$(STAGING_DIR_HOSTPKG)/bin" \
                --with-lua-include="$(STAGING_DIR)/usr/include" \
                --with-lua-lib="$(STAGING_DIR)/usr/lib" \
                --cflags="$(TARGET_CFLAGS)" \
index d8b1ae8a01f9a5d57ee6a4b2c60a32ffdfefebac..a30abbd04edec3b61d077d41644af6704bd6a53b 100644 (file)
@@ -11,12 +11,12 @@ diff -rupN seafile-ccnet-5.1.1.orig/lib/Makefile.am seafile-ccnet-5.1.1/lib/Make
  ccnet-object.h: ${ccnet_object_define}
        rm -f $@
 -      valac --pkg posix ${ccnet_object_define} -C -H ccnet-object.h
-+      "$(STAGING_DIR)/host/bin/valac" --pkg posix ${ccnet_object_define} -C -H ccnet-object.h
++      "$(STAGING_DIR_HOSTPKG)/bin/valac" --pkg posix ${ccnet_object_define} -C -H ccnet-object.h
  
  ccnetobj.c: ${ccnet_object_define}
        rm -f $@
 -      valac -C --pkg posix ${ccnet_object_define}
-+      "$(STAGING_DIR)/host/bin/valac" -C --pkg posix ${ccnet_object_define}
++      "$(STAGING_DIR_HOSTPKG)/bin/valac" -C --pkg posix ${ccnet_object_define}
  
  searpc_gen = searpc-signature.h searpc-marshal.h
  
index d83a0974deceba3c986c6574a48122615b6ea42d..38c5ad4d16c8fcc2bf1b63b82124ede7298d6760 100644 (file)
@@ -12,7 +12,7 @@ diff -rupN seafile-server-5.1.1.orig/lib/Makefile.am seafile-server-5.1.1/lib/Ma
  seafile-object.h: ${seafile_object_define}
        rm -f $@
 -      valac --pkg posix ${seafile_object_define} -C -H seafile-object.h
-+      "$(STAGING_DIR)/host/bin/valac" --pkg posix ${seafile_object_define} -C -H seafile-object.h
++      "$(STAGING_DIR_HOSTPKG)/bin/valac" --pkg posix ${seafile_object_define} -C -H seafile-object.h
  
  DISTCLEANFILES = ${searpc_gen}
  
@@ -30,7 +30,7 @@ diff -rupN seafile-server-5.1.1.orig/lib/Makefile.am seafile-server-5.1.1/lib/Ma
        @rm -f vala.tmp
        @touch vala.tmp
 -      valac -C --pkg posix $^
-+      "$(STAGING_DIR)/host/bin/valac" -C --pkg posix $^
++      "$(STAGING_DIR_HOSTPKG)/bin/valac" -C --pkg posix $^
        @mv -f vala.tmp $@
  
  ${seafile_object_gen}: vala.stamp
index 16ed227e2e87087c8d9c320923f9c36954ce10d3..0560fc6a0103655f040f9c0da0f1e7addac0d17b 100644 (file)
@@ -122,11 +122,11 @@ HOST_CONFIGURE_ARGS+= \
        --disable-verbose-mode \
        --disable-xml-docs \
        --with-dbus-user=root \
-       --with-dbus-daemondir="$(STAGIND_DIR)/host/bin" \
-       --with-system-socket="$(STAGING_DIR)/host/var/run/dbus/system_bus_socket" \
-       --with-system-pid-file="$(STAGING_DIR)/host/var/run/dbus.pid" \
+       --with-dbus-daemondir="$(STAGING_DIR_HOSTPKG)/bin" \
+       --with-system-socket="$(STAGING_DIR_HOSTPKG)/var/run/dbus/system_bus_socket" \
+       --with-system-pid-file="$(STAGING_DIR_HOSTPKG)/var/run/dbus.pid" \
        --without-x \
-       --libexecdir="$(STAGING_DIR)/host/lib/dbus-1"
+       --libexecdir="$(STAGING_DIR_HOSTPKG)/lib/dbus-1"
 
 HOST_CONFIGURE_VARS+= \
        ac_cv_have_abstract_sockets="yes" \