http://www.freebsd.org/cgi/query-pr.cgi?pr=170522&cat=ports --- sysutils/apcupsd/Makefile.orig 2011-11-19 15:34:51.000000000 -0500 +++ sysutils/apcupsd/Makefile 2012-11-15 04:36:18.427538317 -0500 @@ -35,6 +35,7 @@ CPPFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib LDFLAGS+= -L${LOCALBASE}/lib CFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib +CONFIGURE_ENV+= LIBS="-lstdc++" MAN5= apcupsd.conf.5 MAN8= apcaccess.8 apccontrol.8 apctest.8 apcupsd.8