.include "Makefile.version"
.include <bsd.port.pre.mk>
BASE_MEMPCPY!= grep mempcpy ${CROSS_SYSROOT}/usr/include/string.h
.if empty(BASE_MEMPCPY)
EXTRA_PATCHES+= ${PATCHDIR}/extra-patch-no-mempcpy-nasm
.endif
.if ${ARCH} == "amd64"
PLIST_SUB+= AMD64=""
.else
--- third_party/nasm/config/config-linux.h.orig 2021-01-07 00:39:33 UTC
+++ third_party/nasm/config/config-linux.h
@@ -336,7 +336,7 @@
#define HAVE_MEMORY_H 1
/* Define to 1 if you have the `mempcpy' function. */
-#define HAVE_MEMPCPY 1
+/* #undef HAVE_MEMPCPY */
/* Define to 1 if you have a working `mmap' system call. */
#define HAVE_MMAP 1
/* Define to 1 if you have the `faccessat' function. */
#define HAVE_FACCESSAT 1
@@ -411,7 +411,7 @@
#define HAVE_SYSCONF 1