Lines Matching defs:patch
26 GPATCH = /usr/bin/patch
34 # patches/{patch-file-name}.patch{version} where {patch-file-name} is a
35 # meaningful name for the patch contents and {version} corresponds to the
42 # PATCH_PATTERN can be overridden to adjust the patch naming scheme that the
48 PATCH_PATTERN ?= *.patch*
64 PCH_SUFFIXES = $(sort $(patsubst .patch_%,%, $(filter-out .patch,$(suffix $(ALL_PATCHES)))))
66 define patch-variables
69 PATCH_PATTERN$(1) ?= %.patch
70 PATCHES$(1) = $(filter %.patch,$(ALL_PATCHES))
72 PATCH_PATTERN$(1) ?= %.patch$(1)
73 PATCHES$(1) = $(filter %.patch$(1),$(ALL_PATCHES))
84 define patch-rules
86 # We should unpack the source that we patch before we patch it.
89 # Adding MAKEFILE_PREREQ because gmake seems to evaluate the need to patch
105 patch:: $$(SOURCE_DIR$(1))/.patched
107 REQUIRED_PACKAGES += text/gnu-patch
113 $(foreach suffix, $(PCH_SUFFIXES), $(eval $(call patch-variables,_$(suffix))))
114 $(eval $(call patch-variables,)) # this must be last so we don't drop *.patch_%.
117 define eval-patch-rules
118 $(foreach suffix, $(PCH_SUFFIXES), $(eval $(call patch-rules,_$(suffix))))
119 $(eval $(call patch-rules,)) # this must be last so we don't drop *.patch_%.