diff options
author | Boris Nagaev <bnagaev@gmail.com> | 2015-10-11 21:22:19 (GMT) |
---|---|---|
committer | Boris Nagaev <bnagaev@gmail.com> | 2015-10-12 19:24:48 (GMT) |
commit | 530d479b4f68e8f30d129f1c1f12866b10b5ef10 (patch) | |
tree | c1ae3a2d5c83f7e3e8b69d5c6c977278dca53530 /Makefile | |
parent | 07551c5c7c0e0319e46036bfbbd34b85f3cafb9a (diff) | |
download | mxe-530d479b4f68e8f30d129f1c1f12866b10b5ef10.zip mxe-530d479b4f68e8f30d129f1c1f12866b10b5ef10.tar.gz mxe-530d479b4f68e8f30d129f1c1f12866b10b5ef10.tar.bz2 |
require patch number to start with a digit
MXE recongized file src/lua-rapidjson-1-use-unix-file-functions.patch
as a patch for lua, however it was intended to be a patch for lua-rapidjson.
Patch filename pattern was src/$(1)-*.patch.
* captured "rapidjson-1-use-unix-file-functions".
Currently * was replaced with [0-9]* to require patch name starting with
a digit.
close #921
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -164,10 +164,12 @@ UNPACK_ARCHIVE = \ UNPACK_PKG_ARCHIVE = \ $(call UNPACK_ARCHIVE,$(PKG_DIR)/$($(1)_FILE)) +PATCHES = $(sort $(wildcard $(TOP_DIR)/src/$(1)-[0-9]*.patch)) + define PREPARE_PKG_SOURCE cd '$(2)' && $(call UNPACK_PKG_ARCHIVE,$(1)) cd '$(2)/$($(1)_SUBDIR)' - $(foreach PKG_PATCH,$(sort $(wildcard $(TOP_DIR)/src/$(1)-*.patch)), + $(foreach PKG_PATCH,$(PATCHES), (cd '$(2)/$($(1)_SUBDIR)' && $(PATCH) -p1 -u) < $(PKG_PATCH)) endef @@ -381,7 +383,7 @@ define PKG_TARGET_RULE .PHONY: $(1) $(1): $(PREFIX)/$(3)/installed/$(1) $(PREFIX)/$(3)/installed/$(1): $(TOP_DIR)/src/$(1).mk \ - $(wildcard $(TOP_DIR)/src/$(1)-*.patch) \ + $(PATCHES) \ $(wildcard $(TOP_DIR)/src/$(1)-test*) \ $(addprefix $(PREFIX)/$(3)/installed/,$(value $(call LOOKUP_PKG_RULE,$(1),DEPS,$(3)))) \ | $(if $(DONT_CHECK_REQUIREMENTS),,check-requirements) \ |