mirror of
https://github.com/motioneye-project/motioneyeos.git
synced 2025-07-26 04:36:33 +00:00
pkg-{download, generic, luarocks}: use existing $($(PKG)_DL_DIR)
Let the infrastructure use the already existing variable $(PKG)_DL_DIR Signed-off-by: Maxime Hadjinlian <maxime.hadjinlian@gmail.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
01c1889f9f
commit
d506f873e4
@ -96,7 +96,7 @@ define DOWNLOAD
|
|||||||
-H '$(PKGDIR)/$($(PKG)_RAWNAME).hash' \
|
-H '$(PKGDIR)/$($(PKG)_RAWNAME).hash' \
|
||||||
-n '$($(PKG)_BASENAME_RAW)' \
|
-n '$($(PKG)_BASENAME_RAW)' \
|
||||||
-N '$($(PKG)_RAWNAME)' \
|
-N '$($(PKG)_RAWNAME)' \
|
||||||
-o '$(DL_DIR)/$(notdir $(1))' \
|
-o '$($(PKG)_DL_DIR)/$(notdir $(1))' \
|
||||||
$(if $($(PKG)_GIT_SUBMODULES),-r) \
|
$(if $($(PKG)_GIT_SUBMODULES),-r) \
|
||||||
$(DOWNLOAD_URIS) \
|
$(DOWNLOAD_URIS) \
|
||||||
$(QUIET) \
|
$(QUIET) \
|
||||||
|
@ -133,7 +133,7 @@ $(BUILD_DIR)/%/.stamp_downloaded:
|
|||||||
$(foreach hook,$($(PKG)_PRE_DOWNLOAD_HOOKS),$(call $(hook))$(sep))
|
$(foreach hook,$($(PKG)_PRE_DOWNLOAD_HOOKS),$(call $(hook))$(sep))
|
||||||
# Only show the download message if it isn't already downloaded
|
# Only show the download message if it isn't already downloaded
|
||||||
$(Q)for p in $($(PKG)_ALL_DOWNLOADS); do \
|
$(Q)for p in $($(PKG)_ALL_DOWNLOADS); do \
|
||||||
if test ! -e $(DL_DIR)/`basename $$p` ; then \
|
if test ! -e $($(PKG)_DL_DIR)/`basename $$p` ; then \
|
||||||
$(call MESSAGE,"Downloading") ; \
|
$(call MESSAGE,"Downloading") ; \
|
||||||
break ; \
|
break ; \
|
||||||
fi ; \
|
fi ; \
|
||||||
@ -185,7 +185,7 @@ $(BUILD_DIR)/%/.stamp_patched:
|
|||||||
@$(call step_start,patch)
|
@$(call step_start,patch)
|
||||||
@$(call MESSAGE,"Patching")
|
@$(call MESSAGE,"Patching")
|
||||||
$(foreach hook,$($(PKG)_PRE_PATCH_HOOKS),$(call $(hook))$(sep))
|
$(foreach hook,$($(PKG)_PRE_PATCH_HOOKS),$(call $(hook))$(sep))
|
||||||
$(foreach p,$($(PKG)_PATCH),$(APPLY_PATCHES) $(@D) $(DL_DIR) $(notdir $(p))$(sep))
|
$(foreach p,$($(PKG)_PATCH),$(APPLY_PATCHES) $(@D) $($(PKG)_DL_DIR) $(notdir $(p))$(sep))
|
||||||
$(Q)( \
|
$(Q)( \
|
||||||
for D in $(PATCH_BASE_DIRS); do \
|
for D in $(PATCH_BASE_DIRS); do \
|
||||||
if test -d $${D}; then \
|
if test -d $${D}; then \
|
||||||
@ -613,7 +613,7 @@ $(2)_TARGET_DIRCLEAN = $$($(2)_DIR)/.stamp_dircleaned
|
|||||||
|
|
||||||
# default extract command
|
# default extract command
|
||||||
$(2)_EXTRACT_CMDS ?= \
|
$(2)_EXTRACT_CMDS ?= \
|
||||||
$$(if $$($(2)_SOURCE),$$(INFLATE$$(suffix $$($(2)_SOURCE))) $$(DL_DIR)/$$($(2)_SOURCE) | \
|
$$(if $$($(2)_SOURCE),$$(INFLATE$$(suffix $$($(2)_SOURCE))) $$($(2)_DL_DIR)/$$($(2)_SOURCE) | \
|
||||||
$$(TAR) --strip-components=$$($(2)_STRIP_COMPONENTS) \
|
$$(TAR) --strip-components=$$($(2)_STRIP_COMPONENTS) \
|
||||||
-C $$($(2)_DIR) \
|
-C $$($(2)_DIR) \
|
||||||
$$(foreach x,$$($(2)_EXCLUDES),--exclude='$$(x)' ) \
|
$$(foreach x,$$($(2)_EXCLUDES),--exclude='$$(x)' ) \
|
||||||
@ -901,7 +901,7 @@ ifeq ($$($(2)_REDISTRIBUTE),YES)
|
|||||||
# patches, as they are handled specially afterwards.
|
# patches, as they are handled specially afterwards.
|
||||||
$$(foreach e,$$($(2)_ACTUAL_SOURCE_TARBALL) $$(notdir $$($(2)_EXTRA_DOWNLOADS)),\
|
$$(foreach e,$$($(2)_ACTUAL_SOURCE_TARBALL) $$(notdir $$($(2)_EXTRA_DOWNLOADS)),\
|
||||||
$$(Q)support/scripts/hardlink-or-copy \
|
$$(Q)support/scripts/hardlink-or-copy \
|
||||||
$$(DL_DIR)/$$(e) \
|
$$($(2)_DL_DIR)/$$(e) \
|
||||||
$$($(2)_REDIST_SOURCES_DIR)$$(sep))
|
$$($(2)_REDIST_SOURCES_DIR)$$(sep))
|
||||||
# Save patches and generate the series file
|
# Save patches and generate the series file
|
||||||
$$(Q)while read f; do \
|
$$(Q)while read f; do \
|
||||||
|
@ -52,7 +52,7 @@ ifndef $(2)_EXTRACT_CMDS
|
|||||||
define $(2)_EXTRACT_CMDS
|
define $(2)_EXTRACT_CMDS
|
||||||
mkdir -p $$($(2)_DIR)/luarocks-extract
|
mkdir -p $$($(2)_DIR)/luarocks-extract
|
||||||
cd $$($(2)_DIR)/luarocks-extract && \
|
cd $$($(2)_DIR)/luarocks-extract && \
|
||||||
$$(LUAROCKS_RUN_ENV) $$(LUAROCKS_RUN_CMD) unpack --force $$(DL_DIR)/$$($(2)_SOURCE)
|
$$(LUAROCKS_RUN_ENV) $$(LUAROCKS_RUN_CMD) unpack --force $$($(2)_DL_DIR)/$$($(2)_SOURCE)
|
||||||
mv $$($(2)_DIR)/luarocks-extract/*/* $$($(2)_DIR)
|
mv $$($(2)_DIR)/luarocks-extract/*/* $$($(2)_DIR)
|
||||||
endef
|
endef
|
||||||
endif
|
endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user