Files
macports-ports/devel/mspdebug/files/patch-Makefile.diff
2019-01-06 11:41:37 +01:00

17 lines
795 B
Diff

https://github.com/dlbeer/mspdebug/commit/6c82bbf017283f442d2b4f6a6ee2771d96893ac2
diff --git a/Makefile b/Makefile
index 89851f0..5a48980 100644
--- Makefile
+++ Makefile
@@ -72,6 +72,9 @@ else
else ifeq ($(shell brew --version > /dev/null 2>&1 && echo ok),ok)
PORTS_CFLAGS := $(shell pkg-config --cflags hidapi)
PORTS_LDFLAGS := $(shell pkg-config --libs hidapi) -framework IOKit -framework CoreFoundation
+ else ifeq ($(shell port version > /dev/null 2>&1 && echo ok),ok)
+ PORTS_CFLAGS := $(shell pkg-config --cflags hidapi libusb)
+ PORTS_LDFLAGS := $(shell pkg-config --libs hidapi libusb) -framework IOKit -framework CoreFoundation
else
PORTS_CFLAGS := -I/opt/local/include
PORTS_LDFLAGS := -L/opt/local/lib -lhidapi -framework IOKit -framework CoreFoundation