=> Bootstrap dependency digest>=20010302: found digest-20190127
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'.
=> Checksum SHA1 OK for libretro-beetle-psx-20200526-12014e1f317ae8bda1c9ccce319d9dd78f253d2f.tar.gz
=> Checksum RMD160 OK for libretro-beetle-psx-20200526-12014e1f317ae8bda1c9ccce319d9dd78f253d2f.tar.gz
=> Checksum SHA512 OK for libretro-beetle-psx-20200526-12014e1f317ae8bda1c9ccce319d9dd78f253d2f.tar.gz
===> Installing dependencies for libretro-beetle-psx-hw-20200526
=> Tool dependency gmake>=3.81: found gmake-4.2.1nb1
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Build dependency xorgproto>=2016.1: found xorgproto-2020.1
=> Build dependency xcb-proto>=1.4: found xcb-proto-1.14
=> Build dependency cwrappers>=20150314: found cwrappers-20180325
=> Full dependency MesaLib>=20.0.1nb1: found MesaLib-20.0.6
===> Skipping vulnerability checks.
WARNING: No /var/db/pkg/pkg-vulnerabilities file found.
WARNING: To fix run: `/usr/sbin/pkg_admin -K /var/db/pkg fetch-pkg-vulnerabilities'.
===> Overriding tools for libretro-beetle-psx-hw-20200526
===> Extracting for libretro-beetle-psx-hw-20200526
===> Patching for libretro-beetle-psx-hw-20200526
=> Applying pkgsrc patches for libretro-beetle-psx-hw-20200526
=> Verifying /data/pkgsrc/emulators/libretro-beetle-psx-hw/../../emulators/libretro-beetle-psx/patches/patch-libretro-common_rthreads_rthreads.c
=> Applying pkgsrc patch /data/pkgsrc/emulators/libretro-beetle-psx-hw/../../emulators/libretro-beetle-psx/patches/patch-libretro-common_rthreads_rthreads.c
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-libretro-common_rthreads_rthreads.c,v 1.1 2018/09/07 00:45:24 nia Exp $
|
|FreeBSD needs _POSIX_C_SOURCE=200112L for CLOCK_REALTIME.
|
|--- libretro-common/rthreads/rthreads.c.orig	2018-08-08 18:35:14.000000000 +0000
|+++ libretro-common/rthreads/rthreads.c
--------------------------
Patching file libretro-common/rthreads/rthreads.c using Plan A...
Hunk #1 succeeded at 22.
done
=> Verifying /data/pkgsrc/emulators/libretro-beetle-psx-hw/../../emulators/libretro-beetle-psx/patches/patch-libretro.cpp
=> Applying pkgsrc patch /data/pkgsrc/emulators/libretro-beetle-psx-hw/../../emulators/libretro-beetle-psx/patches/patch-libretro.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-libretro.cpp,v 1.1 2020/05/30 15:01:19 nia Exp $
|
|libretro.cpp: In function 'int lightrec_init_mmap()':
|libretro.cpp:1683:4: error: 'S_IRUSR' was not declared in this scope
|    S_IRUSR | S_IWUSR);
|    ^~~~~~~
|libretro.cpp:1683:14: error: 'S_IWUSR' was not declared in this scope
|    S_IRUSR | S_IWUSR);
|
|--- libretro.cpp.orig	2020-05-26 17:40:28.000000000 +0000
|+++ libretro.cpp
--------------------------
Patching file libretro.cpp using Plan A...
Hunk #1 succeeded at 39.
done
===> Creating toolchain wrappers for libretro-beetle-psx-hw-20200526
===> Configuring for libretro-beetle-psx-hw-20200526
=> Checking for portability problems in extracted files