blob: 8e60102d95589c87d596f0f229ae455103585656 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
--- 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
|