bmake: "../../pkgtools/x11-links/../../pkgtools/x11-links/xorg-version.mk" line 38: warning: Couldn't read shell's output for "/usr/X11/bin/Xquartz -version 2>&1 |			 /usr/bin/awk '/X.org Release / { print $3 }'"
=> Bootstrap dependency digest>=20010302: found digest-20111104
WARNING: [license.mk] Every package should define a LICENSE.
=> Checksum SHA1 OK for apcupsd-3.14.9.tar.gz
=> Checksum RMD160 OK for apcupsd-3.14.9.tar.gz
===> Installing dependencies for apcupsd-3.14.9nb4
==========================================================================
The supported build options for apcupsd are:

	cgi

The currently selected options are:

	cgi

You can select which build options to use by setting PKG_DEFAULT_OPTIONS
or the following variable.  Its current value is shown:

	PKG_OPTIONS.apcupsd (not defined)

==========================================================================
==========================================================================
The following variables will affect the build process of this package,
apcupsd-3.14.9nb4.  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 {gettext-tools>=0.14.5,gettext>=0.10.36<0.14.5}: found gettext-tools-0.18.1.1nb3
=> Build dependency nbpatch-[0-9]*: found nbpatch-20100124
=> Build dependency x11-links>=0.71: found x11-links-0.71
=> Build dependency checkperms>=1.1: found checkperms-1.11
=> Full dependency gd>=2.0.35nb9: found gd-2.0.35nb10
=> Full dependency gettext-lib>=0.18: found gettext-lib-0.18.1.1nb1
bmake: "../../pkgtools/x11-links/../../pkgtools/x11-links/xorg-version.mk" line 38: warning: Couldn't read shell's output for "/usr/X11/bin/Xquartz -version 2>&1 |			 /usr/bin/awk '/X.org Release / { print $3 }'"
===> Overriding tools for apcupsd-3.14.9nb4
===> Extracting for apcupsd-3.14.9nb4
===> Patching for apcupsd-3.14.9nb4
=> Applying pkgsrc patches for apcupsd-3.14.9nb4
===> Creating toolchain wrappers for apcupsd-3.14.9nb4
===> Configuring for apcupsd-3.14.9nb4
=> Fixing conflicting STRIP variable name
WARNING: [subst.mk:strip] Ignoring non-existent file "./src/gapcmon/Makefile.in".
WARNING: [subst.mk:strip] Ignoring non-existent file "./src/cgi/Makefile.in".
WARNING: [subst.mk:strip] Ignoring non-existent file "./src/Makefile.in".
=> 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 for true... /Users/kristerw/pbulk/scratch/sysutils/apcupsd/work/.tools/bin/true
checking for false... /Users/kristerw/pbulk/scratch/sysutils/apcupsd/work/.tools/bin/false
checking build system type... i386-apple-darwin12
checking host system type... i386-apple-darwin12
checking for i386-apple-darwin12-g++... g++
checking for C++ compiler default output file name... a.out
checking whether the C++ compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for i386-apple-darwin12-gcc... gcc
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for a BSD-compatible install... /usr/bin/install -c -o kristerw -g staff
checking for gawk... /usr/bin/awk
checking for library containing strerror... none required
checking for shutdown... /sbin/shutdown
checking for mail... /usr/bin/mail
checking for wall... /usr/bin/wall
checking for sh... /bin/sh
checking for GNU make... make
checking for ranlib... /usr/bin/ranlib
checking for rm... /bin/rm
checking for cp... /bin/cp
checking for echo... (cached) echo
checking for ln... /bin/ln
checking for sed... /usr/bin/sed
checking for ar... /usr/bin/ar
checking for mv... /bin/mv
checking for rst2html.py... no
checking for rst2pdf... no
checking for abort... yes
checking for fork... yes
checking for calloc... yes
checking for getpid... yes
checking for ioctl... yes
checking for kill... yes
checking for rewind... yes
checking for select... yes
checking for setsid... yes
checking for signal... yes
checking for strerror... yes
checking for strncmp... yes
checking for strncpy... yes
checking for tcgetattr... yes
checking for vfprintf... yes
checking for setpgrp... yes
checking for snprintf... yes
checking for vsnprintf... yes
checking for library containing nanosleep... none required
checking for syslog... yes
checking for strftime... yes
checking whether setpgrp takes no argument... no
checking for library containing socket... none required
checking for library containing gethostname... none required
checking for library containing gethostbyname... none required
checking for library containing gethostbyname_r... no
checking for socklen_t... yes
checking for library containing inet_addr... none required
checking for strchr... yes
using libc's strchr
checking for strstr... yes
checking for strcasecmp... yes
checking for memmove... yes
checking for getopt_long... yes
checking for inet_pton... yes
checking for localtime_r... yes
checking for egrep... grep -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 arpa/inet.h usability... yes
checking arpa/inet.h presence... yes
checking for arpa/inet.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking limits.h usability... yes
checking limits.h presence... yes
checking for limits.h... yes
checking netdb.h usability... yes
checking netdb.h presence... yes
checking for netdb.h... yes
checking netinet/in.h usability... yes
checking netinet/in.h presence... yes
checking for netinet/in.h... yes
checking pwd.h usability... yes
checking pwd.h presence... yes
checking for pwd.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for strings.h... (cached) yes
checking sys/ioctl.h usability... yes
checking sys/ioctl.h presence... yes
checking for sys/ioctl.h... yes
checking sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking for sys/types.h... (cached) yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for unistd.h... (cached) yes
checking arpa/nameser.h usability... yes
checking arpa/nameser.h presence... yes
checking for arpa/nameser.h... yes
checking whether stat file-mode macros are broken... no
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 whether struct tm is in sys/time.h or time.h... time.h
checking for struct tm.tm_zone... yes
checking for uid_t in sys/types.h... yes
checking type of array argument to getgroups... gid_t
checking for mode_t... yes
checking for off_t... yes
checking for pid_t... yes
checking return type of signal handlers... void
checking for size_t... yes
checking for uid_t in sys/types.h... (cached) yes
checking for socklen_t... yes
checking for int32_t... yes
checking for X... libraries /usr/X11/lib, headers /usr/X11/include
checking for gethostbyname... yes
checking for connect... yes
checking for remove... yes
checking for shmat... yes
checking for IceConnectionNumber in -lICE... yes
checking whether #! works in shell scripts... yes
Will not install HAL policy file
checking for gdImagePng in -lgd... yes
using PNG file format (/usr/lib).
checking gd.h usability... yes
checking gd.h presence... yes
checking for gd.h... yes
checking for libusb-config... no
checking for usb_init in -lusb... no
configure: error: Unable to find libusb
*** Error code 1

Stop.
bmake: stopped in /Users/kristerw/pbulk/pkgsrc/sysutils/apcupsd
*** Error code 1

Stop.
bmake: stopped in /Users/kristerw/pbulk/pkgsrc/sysutils/apcupsd