Don't hardcode patch and its arguments. Not quite the same patch as submitted

by Robert Withrow, but he prodded me into thinking about it again.  Thanks, Rob.
This commit is contained in:
Jordan K. Hubbard 1994-09-28 14:19:30 +00:00
parent 045dbe68b0
commit ccd314ec46
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=3162

View file

@ -3,7 +3,7 @@
# bsd.port.mk - 940820 Jordan K. Hubbard. # bsd.port.mk - 940820 Jordan K. Hubbard.
# This file is in the public domain. # This file is in the public domain.
# #
# $Id: bsd.port.mk,v 1.39 1994/09/19 01:08:35 jkh Exp $ # $Id: bsd.port.mk,v 1.40 1994/09/22 07:45:30 swallace Exp $
# #
# Please view me with 4 column tabs! # Please view me with 4 column tabs!
@ -115,6 +115,10 @@ MAKEFILE?= Makefile
NCFTP?= ncftp NCFTP?= ncftp
NCFTPFLAGS?= -N NCFTPFLAGS?= -N
PATCH?= patch
PATCH_STRIP?= -p0
PATCH_ARGS?= -d ${WRKSRC} --quiet -E ${PATCH_STRIP}
EXTRACT_CMD?= tar EXTRACT_CMD?= tar
EXTRACT_SUFX?= .tar.gz EXTRACT_SUFX?= .tar.gz
EXTRACT_ARGS?= -C ${WRKDIR} -xzf EXTRACT_ARGS?= -C ${WRKDIR} -xzf
@ -245,7 +249,7 @@ ${CONFIGURE_COOKIE}:
@if [ -d ${PATCHDIR} ]; then \ @if [ -d ${PATCHDIR} ]; then \
echo "===> Applying patches for ${DISTNAME}" ; \ echo "===> Applying patches for ${DISTNAME}" ; \
for i in ${PATCHDIR}/patch-*; do \ for i in ${PATCHDIR}/patch-*; do \
patch -d ${WRKSRC} --quiet -E -p0 < $$i; \ ${PATCH} ${PATCH_ARGS} < $$i; \
done; \ done; \
fi fi
# We have a small convention for our local configure scripts, which # We have a small convention for our local configure scripts, which