summaryrefslogtreecommitdiff
path: root/mk/patch/patch.mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2007-08-16 16:29:27 +0000
committerjlam <jlam@pkgsrc.org>2007-08-16 16:29:27 +0000
commit8cd21c85a1b5b5bb7a86d30698d94529d8fcb87f (patch)
tree6aa7ab1b9ececb0dee0c7ed516a1dbcdb9c1e7b3 /mk/patch/patch.mk
parent5b6205850d25cb6cdb0b12d0274e0bee25388bd8 (diff)
downloadpkgsrc-8cd21c85a1b5b5bb7a86d30698d94529d8fcb87f.tar.gz
Allow for emulation-specific patches for binary-only packages. The
patches are named emul-${EMUL_PLATFORM}-patch-* and are located in ${PATCHDIR}.
Diffstat (limited to 'mk/patch/patch.mk')
-rw-r--r--mk/patch/patch.mk7
1 files changed, 5 insertions, 2 deletions
diff --git a/mk/patch/patch.mk b/mk/patch/patch.mk
index 4bb0a685f63..1ff9af10091 100644
--- a/mk/patch/patch.mk
+++ b/mk/patch/patch.mk
@@ -1,4 +1,4 @@
-# $NetBSD: patch.mk,v 1.14 2007/08/15 13:56:25 jlam Exp $
+# $NetBSD: patch.mk,v 1.15 2007/08/16 16:29:27 jlam Exp $
#
# The following variables may be set in a package Makefile and control
# how pkgsrc patches are applied.
@@ -256,6 +256,9 @@ do-distribution-patch:
.if defined(PATCHDIR) && exists(${PATCHDIR})
_PKGSRC_PATCHES+= ${PATCHDIR}/patch-*
+. if defined(EMUL_PLATFORM)
+_PKGSRC_PATCHES+= ${PATCHDIR}/emul-${EMUL_PLATFORM}-patch-*
+. endif
.endif
.if defined(LOCALPATCHES) && exists(${LOCALPATCHES}/${PKGPATH})
_PKGSRC_PATCHES+= ${LOCALPATCHES}/${PKGPATH}/*
@@ -282,7 +285,7 @@ do-pkgsrc-patch:
;; \
${PATCHDIR}/patch-local-*) \
;; \
- ${PATCHDIR}/patch-*) \
+ ${PATCHDIR}/patch-*|${PATCHDIR}/emul-*-patch-*) \
if ${TEST} ! -f ${DISTINFO_FILE:Q}; then \
patch_warning "Ignoring patch file $$i: distinfo not found"; \
continue; \