=> Bootstrap dependency digest>=20010302: found digest-20160304
===> 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 mame-0.183.tar.gz
=> Checksum RMD160 OK for mame-0.183.tar.gz
=> Checksum SHA512 OK for mame-0.183.tar.gz
===> Installing dependencies for mame-0.183
==========================================================================
The following variables will affect the build process of this package,
mame-0.183.  Their current value is shown below:

        * JPEG_DEFAULT = jpeg
        * PYTHON_VERSION_DEFAULT = 27

Based on these variables, the following variables have been set:

        * JPEGBASE (defined, but empty)
        * JPEG_TYPE = jpeg
        * PYPACKAGE = python27

You may want to abort the process now with CTRL-C and change their value
before continuing.  Be sure to run `/usr/bin/make clean' after
the changes.
==========================================================================
=> Tool dependency bsdtar-[0-9]*: found bsdtar-3.3.1
=> Tool dependency gmake>=3.81: found gmake-4.1nb3
=> Tool dependency pkgconf-[0-9]*: found pkgconf-1.0.1
=> Tool dependency checkperms>=1.1: found checkperms-1.11nb1
=> Build dependency python27>=2.7.1nb2: found python27-2.7.13nb1
=> Build dependency dri2proto>=2.1: found dri2proto-2.8
=> Build dependency dri3proto>=1.0: found dri3proto-1.0
=> Build dependency xproto>=7.0.13: found xproto-7.0.31
=> Build dependency presentproto>=1.0: found presentproto-1.1
=> Build dependency glproto>=1.4.11: found glproto-1.4.17
=> Build dependency damageproto>=1.1.0: found damageproto-1.2.1
=> Build dependency fixesproto>=4.0.0: found fixesproto-5.0
=> Build dependency xextproto>=7.0.99.1: found xextproto-7.3.0
=> Build dependency inputproto>=2.3: found inputproto-2.3.2
=> Build dependency kbproto>=1.0.2: found kbproto-1.0.7
=> Build dependency xcb-proto>=1.4: found xcb-proto-1.12
=> Build dependency xf86vidmodeproto>=2.3: found xf86vidmodeproto-2.3.1
=> Build dependency xf86driproto>=2.0.3: found xf86driproto-2.1.1nb1
=> Build dependency xineramaproto>=1.1.1: found xineramaproto-1.2.1
=> Build dependency renderproto>=0.9.3nb1: found renderproto-0.11.1
=> Build dependency randrproto>=1.4: found randrproto-1.5.0
=> Build dependency compositeproto>=0.3.1: found compositeproto-0.4.2
=> Build dependency cwrappers>=20150314: found cwrappers-20170112
=> Full dependency liberation-ttf-[0-9]*: found liberation-ttf-2.00.1nb1
=> Full dependency flac>=1.1.3nb1: found flac-1.3.2
=> Full dependency GConf>=2.32.4nb5: found GConf-2.32.4nb11
=> Full dependency SDL2>=2.0.3nb8: found SDL2-2.0.5nb4
=> Full dependency SDL2_ttf>=2.0.12nb2: found SDL2_ttf-2.0.14
=> Full dependency jpeg>=9: found jpeg-9b
=> Full dependency libXinerama>=1.0.1: found libXinerama-1.1.3
=> Full dependency gtk2+>=2.24.31nb2: found gtk2+-2.24.31nb2
===> Overriding tools for mame-0.183
===> Extracting for mame-0.183
/bin/rm /data/scratch/emulators/mame/work/mame-mame0183/3rdparty/bx/include/compat/freebsd/signal.h
/bin/rm /data/scratch/emulators/mame/work/mame-mame0183/3rdparty/bx/include/compat/freebsd/dirent.h
/bin/mv /data/scratch/emulators/mame/work/mame-mame0183/3rdparty/genie/build/gmake.freebsd /data/scratch/emulators/mame/work/mame-mame0183/3rdparty/genie/build/gmake.bsd
===> Patching for mame-0.183
=> Applying pkgsrc patches for mame-0.183
=> Verifying /data/pkgsrc/emulators/mame/patches/patch-3rdparty_asio_include_asio_detail_config.hpp
=> Applying pkgsrc patch /data/pkgsrc/emulators/mame/patches/patch-3rdparty_asio_include_asio_detail_config.hpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-3rdparty_asio_include_asio_detail_config.hpp,v 1.1 2016/11/05 10:05:26 wiz Exp $
|
|gcc coming with NetBSD does not provide string_view.
|
|--- 3rdparty/asio/include/asio/detail/config.hpp.orig	2016-10-25 23:47:23.000000000 +0000
|+++ 3rdparty/asio/include/asio/detail/config.hpp
--------------------------
Patching file 3rdparty/asio/include/asio/detail/config.hpp using Plan A...
Hunk #1 succeeded at 714.
done
=> Verifying /data/pkgsrc/emulators/mame/patches/patch-3rdparty_bgfx_examples_common_font_font__manager.cpp
=> Applying pkgsrc patch /data/pkgsrc/emulators/mame/patches/patch-3rdparty_bgfx_examples_common_font_font__manager.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-3rdparty_bgfx_examples_common_font_font__manager.cpp,v 1.1 2016/01/14 23:12:01 wiz Exp $
|
|Compatibility with freetype2-2.6.2.
|
|--- 3rdparty/bgfx/examples/common/font/font_manager.cpp.orig	2015-12-30 07:18:51.000000000 +0000
|+++ 3rdparty/bgfx/examples/common/font/font_manager.cpp
--------------------------
Patching file 3rdparty/bgfx/examples/common/font/font_manager.cpp using Plan A...
Hunk #1 succeeded at 17.
done
=> Verifying /data/pkgsrc/emulators/mame/patches/patch-makefile
=> Applying pkgsrc patch /data/pkgsrc/emulators/mame/patches/patch-makefile
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-makefile,v 1.19 2017/01/04 23:05:12 wiz Exp $
|
|Treat all BSDs the same.
|
|--- makefile.orig	2016-10-25 23:47:23.000000000 +0000
|+++ makefile
--------------------------
Patching file makefile using Plan A...
Hunk #1 succeeded at 180 (offset 3 lines).
done
=> Verifying /data/pkgsrc/emulators/mame/patches/patch-scripts_genie.lua
=> Applying pkgsrc patch /data/pkgsrc/emulators/mame/patches/patch-scripts_genie.lua
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-scripts_genie.lua,v 1.6 2017/01/04 23:05:12 wiz Exp $
|
|Precompilation is broken on NetBSD with gcc-5.3.
|Use GNU version of the C++ standard to avoid trouble with alloca on NetBSD.
|
|--- scripts/genie.lua.orig	2016-12-27 21:02:43.000000000 +0000
|+++ scripts/genie.lua
--------------------------
Patching file scripts/genie.lua using Plan A...
Hunk #1 succeeded at 70.
Hunk #2 succeeded at 706.
done
===> Creating toolchain wrappers for mame-0.183
src=/usr/pkg/lib/pkgconfig/fixesproto.pc  dst=/data/scratch/emulators/mame/work/.buildlink/lib/pkgconfig/fixesext.pc;  /bin/mkdir -p /data/scratch/emulators/mame/work/.buildlink/lib/pkgconfig;  if test -f ${src}; then  /bin/ln -sf ${src} ${dst};  fi
src=/usr/pkg/lib/pkgconfig/compositeproto.pc  dst=/data/scratch/emulators/mame/work/.buildlink/lib/pkgconfig/compositeext.pc;  /bin/mkdir -p /data/scratch/emulators/mame/work/.buildlink/lib/pkgconfig;  if test -f ${src}; then  /bin/ln -sf ${src} ${dst};  fi
===> Configuring for mame-0.183
=> Generating pkg-config file for builtin expat package.
=> Checking for portability problems in extracted files