summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rw-r--r--share/mk/bsd.port.mk13
1 files changed, 10 insertions, 3 deletions
diff --git a/share/mk/bsd.port.mk b/share/mk/bsd.port.mk
index 8e0bdc660d8..4c8a776e6e3 100644
--- a/share/mk/bsd.port.mk
+++ b/share/mk/bsd.port.mk
@@ -1,6 +1,6 @@
#-*- mode: Fundamental; tab-width: 4; -*-
# ex:ts=4
-# $OpenBSD: bsd.port.mk,v 1.50 1998/11/19 04:20:09 espie Exp $
+# $OpenBSD: bsd.port.mk,v 1.51 1998/11/19 22:15:31 marc Exp $
#
# bsd.port.mk - 940820 Jordan K. Hubbard.
# This file is in the public domain.
@@ -309,7 +309,7 @@ NetBSD_MAINTAINER= agc@netbsd.org
# use in INDEX files and the like.
# checkpatch - Do a "patch -C" instead of a "patch". Note that it may
# 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.
# makesum - Generate files/md5 (only do this for your own ports!).
# addsum - update files/md5 in a non-destructive way (own ports only!)
@@ -515,10 +515,14 @@ PATCH_ARGS+= --batch
PATCH_DIST_ARGS+= --batch
.endif
+# OpenBSD patch does not support the -C option/checkpatch target
+#
+.if (${OPSYS} != "OpenBSD")
.if defined(PATCH_CHECK_ONLY)
PATCH_ARGS+= -C
PATCH_DIST_ARGS+= -C
.endif
+.endif
.if exists(/bin/tar)
EXTRACT_CMD?= /bin/tar
@@ -1526,11 +1530,14 @@ post-${name}:
# Checkpatch
#
# Special target to verify patches
-
+# OpenBSD patch does not support the -C option; thus this target disabled
+#
+.if (${OPSYS} != "OpenBSD")
.if !target(checkpatch)
checkpatch:
@cd ${.CURDIR} && ${MAKE} PATCH_CHECK_ONLY=yes ${.MAKEFLAGS} patch
.endif
+.endif
# Reinstall
#