=> 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 openttd-1.7.1-source.tar.xz
=> Checksum RMD160 OK for openttd-1.7.1-source.tar.xz
=> Checksum SHA512 OK for openttd-1.7.1-source.tar.xz
===> Installing dependencies for openttd-1.7.1nb4
==========================================================================
The following variables will affect the build process of this package,
openttd-1.7.1nb4.  Their current value is shown below:

        * VARBASE = /var

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 gmake>=3.81: found gmake-4.1nb4
=> Tool dependency pkgconf-[0-9]*: found pkgconf-1.4.1nb1
=> Tool dependency checkperms>=1.1: found checkperms-1.12
=> Build dependency xorgproto>=2016.1: found xorgproto-2018.4
=> Build dependency xcb-proto>=1.4: found xcb-proto-1.13
=> Build dependency cwrappers>=20150314: found cwrappers-20180325
=> Full dependency SDL>=1.2.15nb17: found SDL-1.2.15nb24
=> Full dependency lzo>=2.01: found lzo-2.10
=> Full dependency xz>=5.0.0: found xz-5.2.4
=> Full dependency fontconfig>=2.13.0: found fontconfig-2.13.0nb1
=> Full dependency freetype2>=2.4.11: found freetype2-2.9.1nb1
=> Full dependency hicolor-icon-theme>=0.9nb1: found hicolor-icon-theme-0.17
=> Full dependency png>=1.6.0nb1: found png-1.6.34
=> Full dependency desktop-file-utils>=0.10nb1: found desktop-file-utils-0.23nb1
=> Full dependency icu>=61.1: found icu-61.1
===> Overriding tools for openttd-1.7.1nb4
===> Extracting for openttd-1.7.1nb4
===> Patching for openttd-1.7.1nb4
=> Applying pkgsrc patches for openttd-1.7.1nb4
=> Verifying /data/pkgsrc/games/openttd/patches/patch-config.lib
=> Applying pkgsrc patch /data/pkgsrc/games/openttd/patches/patch-config.lib
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-config.lib,v 1.1 2017/06/28 18:18:36 adam Exp $
|
|Compile 'strip' test with CFLAGS, so -isysroot can be passed on OSX.
|Correct library detection on NetBSD.
|On Darwin, be able to locate iconv.h inside the SDK.
|
|--- config.lib.orig	2017-06-13 18:35:00.000000000 +0000
|+++ config.lib
--------------------------
Patching file config.lib using Plan A...
Hunk #1 succeeded at 2095.
Hunk #2 succeeded at 2601.
Hunk #3 succeeded at 2873.
done
=> Verifying /data/pkgsrc/games/openttd/patches/patch-src_core_alloc__func.hpp
=> Applying pkgsrc patch /data/pkgsrc/games/openttd/patches/patch-src_core_alloc__func.hpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-src_core_alloc__func.hpp,v 1.1 2017/06/28 18:18:36 adam Exp $
|
|Prefer built-in alloca() to avoid crashes.
|
|--- src/core/alloc_func.hpp.orig	2017-06-26 13:04:45.346333800 +0000
|+++ src/core/alloc_func.hpp
--------------------------
Patching file src/core/alloc_func.hpp using Plan A...
Hunk #1 succeeded at 131.
done
===> Creating toolchain wrappers for openttd-1.7.1nb4
===> Configuring for openttd-1.7.1nb4
=> Generating pkg-config file for builtin expat package.
=> Checking for portability problems in extracted files
checking awk... awk
detecting OS... NETBSD
checking build system type... x86_64--netbsd
checking host system type... x86_64--netbsd
checking universal build... no
checking build cc... clang
checking host cc... clang
checking build c++... clang++
checking host c++... clang++
checking host strip... strip
checking builtin depend... yes
checking makedepend... disabled
detecting cpu-type... 64 bits
detecting SSE... found
checking static... no
checking unicode... no
using debug level... no
using desync debug level... no
using link time optimization... no
checking OSX sysroot... not OSX, skipping
checking allegro... not found
checking sdl... found
checking COCOA... not OSX, skipping
checking GDI video driver... not Windows, skipping
checking dedicated... not selected
checking console application... not Windows, skipping
checking network... found
checking squirrel... found
checking translator... no
checking assert... disabled
checking zlib... found
checking liblzma... found
checking lzo2... found
checking libxdg-basedir... not found
checking libpng... found
checking freetype2... found
checking fontconfig... found
checking icu-lx... not found
checking icu-i18n... found
checking psp-config... not PSP, skipping
checking libtimidity... not found
checking direct-music... not Windows, skipping
checking sort... sort
checking endianness... AUTO
suppress language errors... no
checking stripping... strip -s
checking distcc... no (only used when forced)
checking ccache... no (only used when forced)
grfcodec: not found
checking grfcodec... not found
nforenum: not found
checking nforenum... not found
checking OSX application bundle... not OSX, skipping
checking revision... source tarball
checking iconv... found
checking if iconv has non-const inbuf... no
checking whether to link to iconv... yes
personal home directory... .openttd
shared data directory... /var/games/openttd
installation directory... /data/scratch/games/openttd/work/.destdir
icon theme directory... share/icons/hicolor
manual page directory... man/man6
menu item directory... share/applications
using CFLAGS_BUILD...  -fno-strict-aliasing -Wall -W -Wextra -Wno-unused-parameter -Wno-unused-value -Wno-multichar -Wno-self-assign -Wno-parentheses-equality -Wno-unused-variable -std=c++11 -DNETBSD -DNDEBUG
using CXXFLAGS_BUILD... 
using LDFLAGS_BUILD...  -rdynamic
using CFLAGS... -O2 -fomit-frame-pointer -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/libdrm -I/usr/pkg/include/freetype2 -fno-strict-aliasing -Wall -W -Wextra -Wno-unused-parameter -Wno-unused-value -Wno-multichar -Wno-self-assign -Wno-parentheses-equality -Wno-unused-variable -std=c++11 -DNETBSD -DWITH_SSE -DUNIX -DWITH_SDL -I/usr/pkg/include/SDL  -D_REENTRANT -D_THREAD_SAFE  -DWITH_ZLIB   -DWITH_LZMA -I/usr/pkg/include   -DWITH_LZO -D_SQ64 -I/data/scratch/games/openttd/work/openttd-1.7.1/src/3rdparty/squirrel/include -DWITH_PNG -I/usr/pkg/include/libpng16   -DWITH_FONTCONFIG -I/usr/pkg/include -I/usr/pkg/include/freetype2 -I/usr/pkg/include/uuid   -DWITH_FREETYPE -I/usr/pkg/include/freetype2   -DWITH_ICU_SORT -I/usr/pkg/include   -DWITH_ICONV -DENABLE_NETWORK -DNDEBUG -DWITH_PERSONAL_DIR -DPERSONAL_DIR=\\".openttd\\" -DWITH_SHARED_DIR -DSHARED_DIR=\\"/var/games/openttd\\" -DGLOBAL_DATA_DIR=\\"/usr/pkg/share/openttd\\"
using CXXFLAGS... -O2 -I/usr/pkg/include -I/usr/include -I/usr/pkg/include/libdrm -I/usr/pkg/include/freetype2
using LDFLAGS... -lstdc++ -lpthread -lc -L/usr/pkg/lib -Wl,-rpath,/usr/pkg/lib -lSDL -lpthread  -lz   -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -llzma   -llzo2 -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lpng16 -lz   -L/usr/pkg/lib -lfontconfig -Wl,-R/usr/pkg/lib -lfreetype   -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lfreetype   -L/usr/pkg/lib -licui18n -Wl,-R/usr/pkg/lib -licuuc -licudata   -liconv -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -rdynamic
Generating Makefile...
Generating menu item...
Generating lang/Makefile...
Generating setting/Makefile...
Generating grf/Makefile...
Generating objs/Makefile...