diff options
author | bapt <bapt@FreeBSD.org> | 2013-06-13 20:41:03 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2013-06-13 20:41:03 +0800 |
commit | 65d6e6422c8a069f572e2d1272ad97954ea27911 (patch) | |
tree | b1836ca40cc4ceef72a4a07430bef2789e945674 /Mk/bsd.port.mk | |
parent | c7025dd92dbf10f4badf84d88490b6c12c5ee0d7 (diff) | |
download | freebsd-ports-gnome-65d6e6422c8a069f572e2d1272ad97954ea27911.tar.gz freebsd-ports-gnome-65d6e6422c8a069f572e2d1272ad97954ea27911.tar.zst freebsd-ports-gnome-65d6e6422c8a069f572e2d1272ad97954ea27911.zip |
Fix patching
Reported by: kwm
Diffstat (limited to 'Mk/bsd.port.mk')
-rw-r--r-- | Mk/bsd.port.mk | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk index 6f668fe3d56f..d8dd2ca11123 100644 --- a/Mk/bsd.port.mk +++ b/Mk/bsd.port.mk @@ -3593,25 +3593,27 @@ do-patch: @${ECHO_MSG} "===> Applying distribution patches for ${PKGNAME}" .for i in ${_PATCHFILES} . if defined(PATCH_DEBUG_TMP) && ${PATCH_DEBUG_TMP} == yes - @${ECHO_MSG} "===> Applying distribution patch $$i" + @${ECHO_MSG} "===> Applying distribution patch $i" . endif - @case $i in \ + @(cd ${_DISTDIR}; \ + case $i in \ *.Z|*.gz) ${GZCAT} $i ;; \ *.bz2) ${BZCAT} $i ;; \ *.xz) ${XZCAT} $i ;; \ *) ${CAT} $i ;; \ - esac | ${PATCH} ${PATCH_DIST_ARGS} + esac | ${PATCH} ${PATCH_DIST_ARGS} ) . endfor .endif .if defined(EXTRA_PATCHES) . for i in ${EXTRA_PATCHES} - @${ECHO_MSG} "===> Applying extra patch $i" ; \ + @${ECHO_MSG} "===> Applying extra patch $i" + @(cd ${_DISTDIR}; \ case $i in \ *.Z|*.gz) ${GZCAT} $i ;; \ *.bz2) ${BZCAT} $i ;; \ *.xz) ${XZCAT} $i ;; \ *) ${CAT} $i ;; \ - esac | ${PATCH} ${PATCH_DIST_ARGS} + esac | ${PATCH} ${PATCH_DIST_ARGS} ) . endfor .endif @set -e ;\ |