=> 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 tessdata-3.04.00.tar.gz
=> Checksum RMD160 OK for tessdata-3.04.00.tar.gz
=> Checksum SHA512 OK for tessdata-3.04.00.tar.gz
=> Checksum SHA1 OK for tesseract-3.05.00.tar.gz
=> Checksum RMD160 OK for tesseract-3.05.00.tar.gz
=> Checksum SHA512 OK for tesseract-3.05.00.tar.gz
===> Installing dependencies for tesseract-3.05.00nb1
==========================================================================
The following variables will affect the build process of this package,
tesseract-3.05.00nb1.  Their current value is shown below:

        * JPEG_DEFAULT = jpeg

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

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

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 libtool-base>=2.4.2nb9: found libtool-base-2.4.6
=> Tool dependency automake>=1.9: found automake-1.15nb4
=> Tool dependency autoconf>=2.58: found autoconf-2.69nb7
=> Tool dependency pkgconf-[0-9]*: found pkgconf-1.0.1
=> Tool dependency checkperms>=1.1: found checkperms-1.11nb1
=> Build dependency x11-links>=1.04: found x11-links-1.05
=> Build dependency cwrappers>=20150314: found cwrappers-20170112
=> Full dependency pango>=1.40.3nb2: found pango-1.40.3nb2
=> Full dependency cairo>=1.14.2nb1: found cairo-1.14.8
=> Full dependency leptonica>=1.74.1nb1: found leptonica-1.74.1nb1
=> Full dependency icu>=58.1: found icu-58.2
===> Overriding tools for tesseract-3.05.00nb1
===> Extracting for tesseract-3.05.00nb1
tar: Global extended headers posix ustar archive. Extracting as plain files. Following files might be in the wrong directory or have wrong attributes.
tar: Global extended headers posix ustar archive. Extracting as plain files. Following files might be in the wrong directory or have wrong attributes.
/bin/mv /data/scratch/graphics/tesseract/work/tessdata-3.04.00/* /data/scratch/graphics/tesseract/work/tesseract-3.05.00/tessdata
===> Patching for tesseract-3.05.00nb1
=> Applying pkgsrc patches for tesseract-3.05.00nb1
=> Verifying /data/pkgsrc-current/graphics/tesseract/patches/patch-tessdata_Makefile.am
=> Applying pkgsrc patch /data/pkgsrc-current/graphics/tesseract/patches/patch-tessdata_Makefile.am
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-tessdata_Makefile.am,v 1.1 2017/02/21 17:51:18 fhajny Exp $
|
|Revert a trunk commit that broke install-lang for tesseract<4.
|
|--- tessdata/Makefile.am.orig	2017-02-16 17:59:48.000000000 +0000
|+++ tessdata/Makefile.am
--------------------------
Patching file tessdata/Makefile.am using Plan A...
Hunk #1 succeeded at 44.
done
=> Verifying /data/pkgsrc-current/graphics/tesseract/patches/patch-viewer_scrollview.cpp
=> Applying pkgsrc patch /data/pkgsrc-current/graphics/tesseract/patches/patch-viewer_scrollview.cpp
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|$NetBSD: patch-viewer_scrollview.cpp,v 1.1 2013/04/29 21:31:12 joerg Exp $
|
|--- viewer/scrollview.cpp.orig	2013-04-29 19:49:57.000000000 +0000
|+++ viewer/scrollview.cpp
--------------------------
Patching file viewer/scrollview.cpp using Plan A...
Hunk #1 succeeded at 26 (offset -13 lines).
done
===> Creating toolchain wrappers for tesseract-3.05.00nb1
src=/usr/X11R7/lib/pkgconfig/fixesproto.pc  dst=/data/scratch/graphics/tesseract/work/.buildlink/lib/pkgconfig/fixesext.pc;  /bin/mkdir -p /data/scratch/graphics/tesseract/work/.buildlink/lib/pkgconfig;  if test -f ${src}; then  /bin/ln -sf ${src} ${dst};  fi
===> Configuring for tesseract-3.05.00nb1
cd /data/scratch/graphics/tesseract/work/tesseract-3.05.00 && /usr/bin/env LIBLEPT_HEADERSDIR=/usr/pkg/include FREETYPE_CONFIG=/usr/X11R7/bin/freetype-config PTHREAD_CFLAGS=\ -pthread\  PTHREAD_LDFLAGS=\ -pthread PTHREAD_LIBS= PTHREADBASE=/usr LIBTOOL="/data/scratch/graphics/tesseract/work/.cwrapper/bin/libtool " INSTALL_INFO= MAKEINFO=/data/scratch/graphics/tesseract/work/.tools/bin/makeinfo FLEX= BISON= AWK=/usr/bin/awk CAT=/bin/cat ac_cv_path_CAT=/bin/cat CHMOD=/bin/chmod CMP=/usr/bin/cmp CP=/bin/cp DIFF=/usr/bin/diff ECHO=echo ac_cv_path_ECHO=echo EGREP=/usr/bin/egrep ac_cv_path_EGREP=/usr/bin/egrep SETENV=/usr/bin/env ENV_PROG=/usr/bin/env ac_cv_path_ENV=/usr/bin/env FALSE=false ac_cv_path_FALSE=false FIND=/usr/bin/find GREP=/usr/bin/grep ac_cv_path_GREP=/usr/bin/grep HOSTNAME=/bin/hostname LN=/bin/ln LS=/bin/ls MKDIR=/bin/mkdir\ -p MV=/bin/mv RM=/bin/rm RMDIR=/bin/rmdir SED=/usr/bin/sed SORT=/usr/bin/sort TAR=/bin/tar TEST=test ac_cv_path_TEST=test TOUCH=/usr/bin/touch TR=/usr/bin/tr TRUE=true ac_cv_path_TRUE=true PKG_CONFIG=/data/scratch/graphics/tesseract/work/.tools/bin/pkg-config PKG_CONFIG_LIBDIR=/data/scratch/graphics/tesseract/work/.buildlink/lib/pkgconfig:/data/scratch/graphics/tesseract/work/.buildlink/share/pkgconfig PKG_CONFIG_LOG=/data/scratch/graphics/tesseract/work/.pkg-config.log PKG_CONFIG_PATH= MAKE=make gt_cv_func_gnugettext_libintl="yes" gt_cv_func_gnugettext1_libintl="yes" gt_cv_func_gnugettext2_libintl="yes" CWRAPPERS_CONFIG_DIR=/data/scratch/graphics/tesseract/work/.cwrapper/config CC=gcc CFLAGS=-O2\ -I/usr/pkg/include\ -I/usr/X11R7/include\ -I/usr/include\ -I/usr/X11R7/include/freetype2\ -I/usr/X11R7/include/libdrm CPPFLAGS=-I/usr/pkg/include\ -I/usr/X11R7/include\ -I/usr/include\ -I/usr/X11R7/include/freetype2\ -I/usr/X11R7/include/libdrm CXX=c++ CXXFLAGS=-O2\ -I/usr/pkg/include\ -I/usr/X11R7/include\ -I/usr/include\ -I/usr/X11R7/include/freetype2\ -I/usr/X11R7/include/libdrm COMPILER_RPATH_FLAG=-Wl,-R F77=g77 FC=g77 FFLAGS=-O LANG=C LC_ALL=C LC_COLLATE=C LC_CTYPE=C LC_MESSAGES=C LC_MONETARY=C LC_NUMERIC=C LC_TIME=C LDFLAGS=-L/usr/pkg/lib\ -Wl,-R/usr/pkg/lib\ -L/usr/X11R7/lib\ -Wl,-R/usr/X11R7/lib\ -L/usr/lib\ -Wl,-R/usr/lib LINKER_RPATH_FLAG=-R PATH=/data/scratch/graphics/tesseract/work/.cwrapper/bin:/data/scratch/graphics/tesseract/work/.buildlink/bin:/data/scratch/graphics/tesseract/work/.gcc/bin:/data/scratch/graphics/tesseract/work/.tools/bin:/usr/pkg/bin:/usr/bin:/bin:/usr/pkg/bin:/usr/local/bin:/usr/pkg/bin:/usr/X11R7/bin PREFIX=/usr/pkg MAKELEVEL=0 CONFIG_SITE= PKG_SYSCONFDIR=/usr/pkg/etc HOME=/data/scratch/graphics/tesseract/work/.home CWRAPPERS_CONFIG_DIR=/data/scratch/graphics/tesseract/work/.cwrapper/config CONFIG_SHELL=/bin/sh LIBS= ac_given_INSTALL=/usr/bin/install\ -c\ -o\ pbulkXXX\ -g\ users lt_cv_sys_max_cmd_len=262144 /bin/sh ./autogen.sh
Running aclocal
Running libtoolize
rm: config/ltmain.sh: No such file or directory
rm: config/ltmain.sh: No such file or directory
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, 'config'.
libtoolize: copying file 'config/ltmain.sh'
rm: m4/libtool.m4: No such file or directory
rm: m4/libtool.m4: No such file or directory
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
rm: m4/ltoptions.m4: No such file or directory
rm: m4/ltoptions.m4: No such file or directory
libtoolize: copying file 'm4/ltoptions.m4'
rm: m4/ltsugar.m4: No such file or directory
rm: m4/ltsugar.m4: No such file or directory
libtoolize: copying file 'm4/ltsugar.m4'
rm: m4/ltversion.m4: No such file or directory
rm: m4/ltversion.m4: No such file or directory
libtoolize: copying file 'm4/ltversion.m4'
rm: m4/lt~obsolete.m4: No such file or directory
rm: m4/lt~obsolete.m4: No such file or directory
libtoolize: copying file 'm4/lt~obsolete.m4'
Running autoheader
Running automake --add-missing --copy
configure.ac:312: installing 'config/compile'
configure.ac:87: installing 'config/config.guess'
configure.ac:87: installing 'config/config.sub'
configure.ac:69: installing 'config/install-sh'
configure.ac:69: installing 'config/missing'
api/Makefile.am: installing 'config/depcomp'
Running autoconf

All done.
To build the software now, do something like:

$ ./configure [--enable-debug] [...other options]
=> Generating pkg-config file for builtin expat package.
=> Modifying GNU configure scripts to avoid --recheck
=> Replacing config-guess with pkgsrc versions
=> Replacing config-sub with pkgsrc versions
=> Replacing install-sh with pkgsrc version
=> Checking for portability problems in extracted files
checking whether the C++ compiler works... yes
checking for C++ compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether c++ accepts -g... yes
git: not found
checking for a BSD-compatible install... /usr/bin/install -c -o pbulkXXX -g users
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... config/install-sh -c -d
checking for gawk... /usr/bin/awk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking whether make supports nested variables... yes
checking dependency style of c++... gcc3
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... x86_64--netbsd
checking host system type... x86_64--netbsd
checking --enable-graphics argument... yes
checking whether to disable cube... no
checking --enable-embedded argument... no
checking --enable-opencl argument... no
checking how to run the C++ preprocessor... c++ -E
checking for grep that handles long lines and -e... (cached) /usr/bin/grep
checking for egrep... (cached) /usr/bin/egrep
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking CL/cl.h usability... no
checking CL/cl.h presence... no
checking for CL/cl.h... no
checking OpenCL/cl.h usability... no
checking OpenCL/cl.h presence... no
checking for OpenCL/cl.h... no
checking tiffio.h usability... yes
checking tiffio.h presence... yes
checking for tiffio.h... yes
checking for clGetPlatformIDs in -lOpenCL... no
checking --enable-visibility argument... no
checking --enable-multiple-libraries argument... no
checking whether to use tessdata-prefix... yes
checking whether to enable debugging... no
checking how to print strings... printf
checking for x86_64--netbsd-gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /data/scratch/graphics/tesseract/work/.cwrapper/bin/ld
checking if the linker (/data/scratch/graphics/tesseract/work/.cwrapper/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... (cached) 262144
checking how to convert x86_64--netbsd file names to x86_64--netbsd format... func_convert_file_noop
checking how to convert x86_64--netbsd file names to toolchain format... func_convert_file_noop
checking for /data/scratch/graphics/tesseract/work/.cwrapper/bin/ld option to reload object files... -r
checking for x86_64--netbsd-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... match_pattern /lib[^/]+(\.so|_pic\.a)$
checking for x86_64--netbsd-dlltool... no
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for x86_64--netbsd-ar... no
checking for ar... ar
checking for archiver @FILE support... @
checking for x86_64--netbsd-strip... no
checking for strip... strip
checking for x86_64--netbsd-ranlib... no
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for x86_64--netbsd-mt... no
checking for mt... mt
checking if mt is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... rm: conftest*: No such file or directory
yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/data/scratch/graphics/tesseract/work/.cwrapper/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... rm: conftest*: No such file or directory
no
checking dynamic linker characteristics... NetBSD ld.elf_so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... c++ -E
checking for ld used by c++... /data/scratch/graphics/tesseract/work/.cwrapper/bin/ld
checking if the linker (/data/scratch/graphics/tesseract/work/.cwrapper/bin/ld) is GNU ld... yes
checking whether the c++ linker (/data/scratch/graphics/tesseract/work/.cwrapper/bin/ld) supports shared libraries... yes
checking for c++ option to produce PIC... -fPIC -DPIC
checking if c++ PIC flag -fPIC -DPIC works... yes
checking if c++ static flag -static works... yes
checking if c++ supports -c -o file.o... rm: conftest*: No such file or directory
yes
checking if c++ supports -c -o file.o... (cached) yes
checking whether the c++ linker (/data/scratch/graphics/tesseract/work/.cwrapper/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... NetBSD ld.elf_so
checking how to hardcode library paths into programs... immediate
checking whether byte ordering is bigendian... no
checking if compiling with clang... no
checking whether compiler supports C++11... yes
checking for snprintf... yes
checking for library containing sem_init... -lpthread
checking for ANSI C header files... (cached) yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking sys/ipc.h usability... yes
checking sys/ipc.h presence... yes
checking for sys/ipc.h... yes
checking sys/shm.h usability... yes
checking sys/shm.h presence... yes
checking for sys/shm.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking malloc.h usability... yes
checking malloc.h presence... yes
checking for malloc.h... yes
checking for stdbool.h that conforms to C99... no
checking for _Bool... no
checking whether #! works in shell scripts... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for getline... yes
checking for wchar_t... yes
checking for long long int... yes
checking for off_t... yes
checking for mbstate_t... yes
checking for leptonica... yes
checking for l_generateCIDataForPdf in -llept... yes
checking leptonica headers version >= 1.74... yes
checking unicode/uchar.h usability... yes
checking unicode/uchar.h presence... yes
checking for unicode/uchar.h... yes
checking pkg-config is at least version 0.9.0... yes
checking for pango... yes
checking for cairo... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating tesseract.pc
config.status: creating api/Makefile
config.status: creating ccmain/Makefile
config.status: creating opencl/Makefile
config.status: creating ccstruct/Makefile
config.status: creating ccutil/Makefile
config.status: creating classify/Makefile
config.status: creating cube/Makefile
config.status: creating cutil/Makefile
config.status: creating dict/Makefile
config.status: creating neural_networks/runtime/Makefile
config.status: creating textord/Makefile
config.status: creating viewer/Makefile
config.status: creating wordrec/Makefile
config.status: creating tessdata/Makefile
config.status: creating tessdata/configs/Makefile
config.status: creating tessdata/tessconfigs/Makefile
config.status: creating testing/Makefile
config.status: creating java/Makefile
config.status: creating java/com/Makefile
config.status: creating java/com/google/Makefile
config.status: creating java/com/google/scrollview/Makefile
config.status: creating java/com/google/scrollview/events/Makefile
config.status: creating java/com/google/scrollview/ui/Makefile
config.status: creating doc/Makefile
config.status: creating training/Makefile
config.status: creating config_auto.h
config.status: executing depfiles commands
config.status: executing libtool commands
rm: libtoolT: No such file or directory

Configuration is done.
You can now build and install tesseract by running:

$ make
$ sudo make install

Training tools can be build and installed (after building of tesseract) with:

$ make training
$ sudo make training-install

=> Modifying libtool scripts to use pkgsrc libtool
=> Modifying libtool scripts to use pkgsrc depcomp