=> Bootstrap dependency digest>=20010302: found digest-20111104
=> Bootstrap dependency fetch-[0-9]*: found fetch-1.7
=> Checksum SHA1 OK for djview-4.8.tar.gz
=> Checksum RMD160 OK for djview-4.8.tar.gz
===> Installing dependencies for djview4-4.8nb1
==========================================================================
The following variables will affect the build process of this package,
djview4-4.8nb1.  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/pkg/bin/bmake clean' after
the changes.
==========================================================================
=> Build dependency pkg-config>=0.19: found pkg-config-0.25nb1
=> Build dependency kbproto>=1.0.2: found kbproto-1.0.5
=> Build dependency xproto>=7.0.9: found xproto-7.0.18
=> Build dependency xcb-proto>=1.4: found xcb-proto-1.6
=> Build dependency fixesproto>=3.0.0: found fixesproto-5.0
=> Build dependency xextproto>=7.0: found xextproto-7.2.0
=> Build dependency inputproto>=1.4: found inputproto-2.0
=> Build dependency renderproto>=0.9.3nb1: found renderproto-0.11
=> Build dependency randrproto>=1.2.0: found randrproto-1.3.1
=> Build dependency xineramaproto>=1.1.1: found xineramaproto-1.2
=> Build dependency qt4-tools>=4.7.4nb2: found qt4-tools-4.7.4nb2
=> Build dependency checkperms>=1.1: found checkperms-1.11
=> Full dependency djvulibre-lib>=3.5.24: found djvulibre-lib-3.5.24
=> Full dependency qt4-libs>=4.7.4nb2: found qt4-libs-4.7.4nb2
=> Full dependency tiff>=3.9.2nb1: found tiff-3.9.5
===> Overriding tools for djview4-4.8nb1
===> Extracting for djview4-4.8nb1
===> Patching for djview4-4.8nb1
=> Applying pkgsrc patches for djview4-4.8nb1
===> Creating toolchain wrappers for djview4-4.8nb1
src=/usr/pkg/lib/pkgconfig/fixesproto.pc  dst=/tmp/pkgsrc/graphics/djview4/work/.buildlink/lib/pkgconfig/fixesext.pc;  /bin/mkdir -p /tmp/pkgsrc/graphics/djview4/work/.buildlink/lib/pkgconfig;  if test -f ${src}; then  /bin/ln -sf ${src} ${dst};  fi
===> Configuring for djview4-4.8nb1
=> 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 build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking whether make sets $(MAKE)... yes
checking whether ln -s works... yes
checking for rm... /bin/rm
checking for touch... /usr/bin/touch
checking for mkdir... /bin/mkdir -p
checking for rsvg... false
checking for convert... false
checking for a BSD-compatible install... /usr/bin/install -c -o pbulk -g pbulk
checking for x86_64-unknown-linux-gcc... gcc
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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking if g++ accepts -Wall... yes
checking if g++ accepts -O2... yes
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... (cached) /bin/grep
checking for egrep... (cached) /bin/egrep
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/x86_64-unknown-linux-gnu/bin/ld
checking if the linker (/usr/x86_64-unknown-linux-gnu/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 the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/x86_64-unknown-linux-gnu/bin/ld option to reload object files... -r
checking for x86_64-unknown-linux-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for x86_64-unknown-linux-ar... no
checking for ar... ar
checking for x86_64-unknown-linux-strip... no
checking for strip... strip
checking for x86_64-unknown-linux-ranlib... no
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking how to run the C preprocessor... gcc -E
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 for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... (cached) yes
checking whether g++ accepts -g... (cached) yes
checking how to run the C++ preprocessor... g++ -E
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... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/x86_64-unknown-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.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... no
checking for ld used by g++... /usr/x86_64-unknown-linux-gnu/bin/ld -m elf_x86_64
checking if the linker (/usr/x86_64-unknown-linux-gnu/bin/ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/x86_64-unknown-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/x86_64-unknown-linux-gnu/bin/ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for ANSI C header files... (cached) yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
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 for unistd.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking for pid_t... yes
checking vfork.h usability... no
checking vfork.h presence... no
checking for vfork.h... no
checking for fork... yes
checking for vfork... yes
checking for working fork... yes
checking for working vfork... (cached) yes
checking for sigaction... yes
checking for strerror... yes
checking for waitpid... yes
checking for wait3... yes
checking for pkg-config... /tmp/pkgsrc/graphics/djview4/work/.tools/bin/pkg-config
checking for X... libraries , headers 
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
Program qmake reports Qt version 4.7.4.
checking for rcc-qt4... no
checking for rcc... /usr/pkg/qt4/bin/rcc
checking for lupdate-qt4... no
checking for lupdate... /usr/pkg/qt4/bin/lupdate
checking for lrelease-qt4... no
checking for lrelease... /usr/pkg/qt4/bin/lrelease
checking for ddjvuapi... found
setting DDJVUAPI_LIBS=-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -ldjvulibre  
setting DDJVUAPI_CFLAGS=-pthread -I/usr/pkg/include  
checking for the libtiff library... yes
setting TIFF_CFLAGS=
setting TIFF_LIBS=-ltiff
checking for X... libraries , headers 
checking for gethostbyname... (cached) yes
checking for connect... (cached) yes
checking for remove... (cached) yes
checking for shmat... (cached) yes
checking for IceConnectionNumber in -lICE... (cached) yes
checking for glib... not found by pkg-config
checking X11/Shell.h usability... yes
checking X11/Shell.h presence... yes
checking for X11/Shell.h... yes
checking X11/IntrinsicP.h usability... yes
checking X11/IntrinsicP.h presence... yes
checking for X11/IntrinsicP.h... yes
configure: WARNING: GLib not found. Compiling plugin without XEmbed.
checking whether Q_WS_X11 is declared... yes
checking for xdg-mime... no
checking for xdg-icon-resource... no
checking for xdg-desktop-menu... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating nsdejavu/Makefile
config.status: creating desktopfiles/Makefile
config.status: creating config.h
config.status: executing libtool commands
config.status: executing qmake_src commands
config.status: running /usr/pkg/qt4/bin/qmake -spec "/usr/pkg/qt4/mkspecs/netbsd-g++" CONFIG+=autoconf CONFIG+=release QMAKE_UIC="/usr/pkg/qt4/bin/uic" QMAKE_MOC="/usr/pkg/qt4/bin/moc" QMAKE_RCC="/usr/pkg/qt4/bin/rcc" LIBS+="-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -ldjvulibre   -ltiff " QMAKE_LFLAGS+="-L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/qt4/lib -Wl,-R/usr/pkg/qt4/lib -L/usr/lib -Wl,-R/usr/lib" QMAKE_CFLAGS+=" -pipe -fstack-protector -Wno-format -fno-builtin -I/usr/pkg/include -I/usr/pkg/qt4/include -I/usr/include -I/usr/pkg/include/freetype2 -I.././src -I.. -pthread -I/usr/pkg/include   " QMAKE_CXXFLAGS+=" -pipe -fstack-protector -Wno-format -fno-builtin -I/usr/pkg/include -I/usr/pkg/qt4/include -I/usr/include -I/usr/pkg/include/freetype2 -I.././src -I.. -pthread -I/usr/pkg/include   " QMAKE_CPPFLAGS+="-I/usr/pkg/include -I/usr/pkg/qt4/include -I/usr/include -I/usr/pkg/include/freetype2 -I.././src -I.. -pthread -I/usr/pkg/include   " VPATH=".././src".

Configuration is done.
Compile with command:
    $ make
Then install the binaries in /usr/pkg with command:
    # make install