treewide: replace $(STAGING_DIR)/host and $(HOST_BUILD_PREFIX) with $(STAGING_DIR_HOSTPKG)
As both LEDE and OpenWrt have STAGING_DIR_HOSTPKG now, we can start to rely
on it. See 73b7f55424
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>
This commit is contained in:
parent
876d139c98
commit
4a984a8d60
36 changed files with 61 additions and 61 deletions
|
@ -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))
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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" \
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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) \
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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' \
|
||||
|
|
|
@ -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))
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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) \
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)" \
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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" \
|
||||
|
|
Loading…
Reference in a new issue