summaryrefslogtreecommitdiff
path: root/devel/lm4tools/files/patch-lmicdiusb--Makefile
blob: 2331924d60d8e8e1cbf54dd76e1170cfe3f7f8e8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- lmicdiusb/Makefile.orig	2013-09-24 05:12:04.000000000 +0400
+++ lmicdiusb/Makefile	2014-01-24 13:20:08.000000000 +0400
@@ -43,6 +43,12 @@
 	LDFLAGS += -framework AppKit -framework Carbon -framework IOKit
 endif
 
+ifeq ($(shell uname),FreeBSD)
+	LIBUSB_CFLAGS :=
+	LIBUSB_LIBDIR := /usr/lib
+	LIBUSB_LIBS := -lusb
+endif
+
 ifeq ($(shell uname),Linux)
 	LIBUSB_CFLAGS ?= $(shell pkg-config --cflags libusb-1.0)
 	LIBUSB_LIBDIR ?= $(shell pkg-config --variable=libdir libusb-1.0)