Use pkg-config on OS/X when Fink is available.
This commit is contained in:
parent
e6345b1238
commit
74665132bb
19
Makefile
19
Makefile
|
@ -60,16 +60,19 @@ else
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(UNAME_S),Darwin) # Mac OS X/MacPorts stuff
|
ifeq ($(UNAME_S),Darwin) # Mac OS X/MacPorts stuff
|
||||||
PORTS_CFLAGS := -I/opt/local/include
|
ifeq ($(shell fink -V > /dev/null 2>&1 && echo ok),ok)
|
||||||
PORTS_LDFLAGS := -L/opt/local/lib
|
PORTS_CFLAGS := $(shell pkg-config --cflags libusb)
|
||||||
else
|
PORTS_LDFLAGS := $(shell pkg-config --libs libusb) -ltermcap -pthread
|
||||||
ifneq ($(filter $(UNAME_S),OpenBSD NetBSD DragonFly),)
|
|
||||||
PORTS_CFLAGS := $(shell pkg-config --cflags libusb)
|
|
||||||
PORTS_LDFLAGS := $(shell pkg-config --libs libusb) -ltermcap -pthread
|
|
||||||
else
|
else
|
||||||
PORTS_CFLAGS :=
|
PORTS_CFLAGS := -I/opt/local/include
|
||||||
PORTS_LDFLAGS :=
|
PORTS_LDFLAGS := -L/opt/local/lib
|
||||||
endif
|
endif
|
||||||
|
else ifneq ($(filter $(UNAME_S),OpenBSD NetBSD DragonFly),)
|
||||||
|
PORTS_CFLAGS := $(shell pkg-config --cflags libusb)
|
||||||
|
PORTS_LDFLAGS := $(shell pkg-config --libs libusb) -ltermcap -pthread
|
||||||
|
else
|
||||||
|
PORTS_CFLAGS :=
|
||||||
|
PORTS_LDFLAGS :=
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue