--- Makefile.orig 2011-06-14 11:27:10.000000000 +1000 +++ Makefile 2011-07-29 05:26:08.226244817 +1000 @@ -16,7 +16,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -CC = gcc +CC ?= gcc INSTALL = /usr/bin/install PREFIX ?= /usr/local LDFLAGS ?= -s @@ -38,8 +38,14 @@ PORTS_CFLAGS = `pkg-config --cflags libusb` PORTS_LDFLAGS = `pkg-config --libs libusb` -ltermcap else + ifeq ($(UNAME),FreeBSD) # FreeBSD Ports stuff +# This is only needed prior to FreeBSD 8.x to find libusb + PORTS_CFLAGS = -I${LOCALBASE}/include + PORTS_LDFLAGS = -L${LOCALBASE}/lib + else PORTS_CFLAGS = PORTS_LDFLAGS = + endif endif endif