The original Makefile contained DOS line endings in it, which although my patches could deal with fine they got lost in the original posting and rendered the original patch unusable.
So i just decided to fix the problem at the source and modify the actual distfile Makefile and remove the Makefile patch all together. Below (and in the attachment) are the new diffs. Now portcheck also completes with no issues. Index: sysutils/cdirip/Makefile =================================================================== RCS file: sysutils/cdirip/Makefile diff -N sysutils/cdirip/Makefile --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sysutils/cdirip/Makefile 4 Jun 2020 01:39:31 -0000 @@ -0,0 +1,25 @@ +# $OpenBSD: Makefile,v 1.0 2020/06/02 04:36:48 alexfree Exp $ + +ONLY_FOR_ARCHS = i386 amd64 macppc +COMMENT = maniplulate and extract .cdi files +DISTNAME = cdirip-0.6.2 +COMPILER = base-clang base-gcc ports-gcc +CATEGORIES = sysutils +HOMEPAGE = https://github.com/jozip/cdirip/ + +MAINTAINER = Alex Free <ale...@mail.com> + +PERMIT_PACKAGE = No | not stated in copyright +PERMIT_DISTFILES = No | not stated in copyright + +MASTER_SITES = https://home.macintosh.garden/~alexfree/distfiles/ + +USE_GMAKE = Yes + +MAKE_FILE = Makefile.linux + +BUILD_DEPENDS = devel/gmake + +do-install: + ${INSTALL_SCRIPT} ${WRKSRC}/cdirip ${PREFIX}/bin/cdirip +.include <bsd.port.mk> Index: sysutils/cdirip/distinfo =================================================================== RCS file: sysutils/cdirip/distinfo diff -N sysutils/cdirip/distinfo --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sysutils/cdirip/distinfo 4 Jun 2020 01:39:31 -0000 @@ -0,0 +1,2 @@ +SHA256 (cdirip-0.6.2.tar.gz) = 1wg7niqZePOR4UqXNPbxdD57/mTLi1oyMjreSGRjFkA= +SIZE (cdirip-0.6.2.tar.gz) = 11424 Index: sysutils/cdirip/pkg/DESCR =================================================================== RCS file: sysutils/cdirip/pkg/DESCR diff -N sysutils/cdirip/pkg/DESCR --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sysutils/cdirip/pkg/DESCR 4 Jun 2020 01:39:31 -0000 @@ -0,0 +1 @@ +Extract DiscJugglar .cdi files for use with other burning software. Index: sysutils/cdirip/pkg/PLIST =================================================================== RCS file: sysutils/cdirip/pkg/PLIST diff -N sysutils/cdirip/pkg/PLIST --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ sysutils/cdirip/pkg/PLIST 4 Jun 2020 01:39:31 -0000 @@ -0,0 +1,2 @@ +@comment $OpenBSD: PLIST,v$ +@bin bin/cdirip
final
Description: Binary data