version 1.50, 1998/11/19 04:20:09 |
version 1.51, 1998/11/19 22:15:31 |
|
|
# use in INDEX files and the like. |
# use in INDEX files and the like. |
# checkpatch - Do a "patch -C" instead of a "patch". Note that it may |
# checkpatch - Do a "patch -C" instead of a "patch". Note that it may |
# give incorrect results if multiple patches deal with |
# give incorrect results if multiple patches deal with |
# the same file. |
# the same file. NOT AVAILABLE WITH OPENBSD! |
# checksum - Use files/md5 to ensure that your distfiles are valid. |
# checksum - Use files/md5 to ensure that your distfiles are valid. |
# makesum - Generate files/md5 (only do this for your own ports!). |
# makesum - Generate files/md5 (only do this for your own ports!). |
# addsum - update files/md5 in a non-destructive way (own ports only!) |
# addsum - update files/md5 in a non-destructive way (own ports only!) |
|
|
PATCH_DIST_ARGS+= --batch |
PATCH_DIST_ARGS+= --batch |
.endif |
.endif |
|
|
|
# OpenBSD patch does not support the -C option/checkpatch target |
|
# |
|
.if (${OPSYS} != "OpenBSD") |
.if defined(PATCH_CHECK_ONLY) |
.if defined(PATCH_CHECK_ONLY) |
PATCH_ARGS+= -C |
PATCH_ARGS+= -C |
PATCH_DIST_ARGS+= -C |
PATCH_DIST_ARGS+= -C |
.endif |
.endif |
|
.endif |
|
|
.if exists(/bin/tar) |
.if exists(/bin/tar) |
EXTRACT_CMD?= /bin/tar |
EXTRACT_CMD?= /bin/tar |
|
|
# Checkpatch |
# Checkpatch |
# |
# |
# Special target to verify patches |
# Special target to verify patches |
|
# OpenBSD patch does not support the -C option; thus this target disabled |
|
# |
|
.if (${OPSYS} != "OpenBSD") |
.if !target(checkpatch) |
.if !target(checkpatch) |
checkpatch: |
checkpatch: |
@cd ${.CURDIR} && ${MAKE} PATCH_CHECK_ONLY=yes ${.MAKEFLAGS} patch |
@cd ${.CURDIR} && ${MAKE} PATCH_CHECK_ONLY=yes ${.MAKEFLAGS} patch |
|
.endif |
.endif |
.endif |
|
|
# Reinstall |
# Reinstall |