Lines 927-932
Link Here
|
927 |
# Most port authors should not need to understand anything after this point. |
927 |
# Most port authors should not need to understand anything after this point. |
928 |
# |
928 |
# |
929 |
|
929 |
|
|
|
930 |
# Look for ${WRKSRC}/.../*.orig files, and (re-)create |
931 |
# ${FILEDIR}/patch-* files from them. |
932 |
|
933 |
.if !target(makepatch) |
934 |
makepatch: |
935 |
@cd ${.CURDIR} && ${MKDIR} ${FILESDIR} |
936 |
@(cd ${WRKSRC}; \ |
937 |
for i in `find . -type f -name '*.orig'`; do \ |
938 |
ORG=$$i; \ |
939 |
NEW=$${i%.orig}; \ |
940 |
OUT=${FILESDIR}`${ECHO} $${NEW} | \ |
941 |
${SED} -e 's|/|__|g' \ |
942 |
-e 's|^\.__|/patch-|'`; \ |
943 |
${ECHO} ${DIFF} -ud $${ORG} $${NEW} '>' $${OUT}; \ |
944 |
${DIFF} -ud $${ORG} $${NEW} > $${OUT} || ${TRUE}; \ |
945 |
done \ |
946 |
) |
947 |
.endif |
948 |
|
949 |
|
930 |
# Start of pre-makefile section. |
950 |
# Start of pre-makefile section. |
931 |
.if !defined(AFTERPORTMK) |
951 |
.if !defined(AFTERPORTMK) |
932 |
|
952 |
|
Lines 965-970
Link Here
|
965 |
CUT?= /usr/bin/cut |
985 |
CUT?= /usr/bin/cut |
966 |
DC?= /usr/bin/dc |
986 |
DC?= /usr/bin/dc |
967 |
DIALOG?= /usr/bin/dialog |
987 |
DIALOG?= /usr/bin/dialog |
|
|
988 |
DIFF?= /usr/bin/diff |
968 |
DIRNAME?= /usr/bin/dirname |
989 |
DIRNAME?= /usr/bin/dirname |
969 |
EGREP?= /usr/bin/egrep |
990 |
EGREP?= /usr/bin/egrep |
970 |
EXPR?= /bin/expr |
991 |
EXPR?= /bin/expr |