mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2026-05-12 11:18:11 -07:00
fix homebrew dependency detection
This commit is contained in:
+7
-3
@@ -78,9 +78,13 @@ else
|
||||
endif
|
||||
|
||||
ifeq ($(USE_BREW),1)
|
||||
BREW_PREFIX = $(shell brew --prefix 2>/dev/null)
|
||||
ifeq ($(strip $(BREW_PREFIX)),)
|
||||
USE_BREW = 0
|
||||
ifneq ($(strip $(HOMEBREW_PREFIX)),)
|
||||
BREW_PREFIX = $(HOMEBREW_PREFIX)
|
||||
else
|
||||
BREW_PREFIX = $(shell brew --prefix 2>/dev/null)
|
||||
ifeq ($(strip $(BREW_PREFIX)),)
|
||||
USE_BREW = 0
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
|
||||
+2
-3
@@ -37,8 +37,7 @@ OBJDIR = obj
|
||||
ifeq ($(USE_BREW),1)
|
||||
INCLUDES += -I$(BREW_PREFIX)/include
|
||||
LDLIBS += -L$(BREW_PREFIX)/lib
|
||||
PKG_CONFIG_ENV := PKG_CONFIG_PATH=$(BREW_PREFIX)/opt/qt/lib/pkgconfig
|
||||
PKG_CONFIG_ENV := PKG_CONFIG_PATH=$(BREW_PREFIX)/opt/qt5/lib/pkgconfig
|
||||
PKG_CONFIG_ENV := PKG_CONFIG_PATH=$(BREW_PREFIX)/lib/pkgconfig:$(BREW_PREFIX)/opt/qt/lib/pkgconfig:$(BREW_PREFIX)/opt/qt5/lib/pkgconfig
|
||||
endif
|
||||
|
||||
ifdef ($(USE_MACPORTS),1)
|
||||
@@ -479,7 +478,7 @@ ifeq ($(SKIPPYTHON),1)
|
||||
$(info Python3 library: skipped)
|
||||
else
|
||||
ifeq ($(PYTHON_FOUND),1)
|
||||
$(info Python3 library: Python3 v$(shell pkg-config --modversion python3) found, enabled)
|
||||
$(info Python3 library: Python3 v$(shell $(PKG_CONFIG_ENV) pkg-config --modversion python3) found, enabled)
|
||||
else
|
||||
$(info Python3 library: Python3 not found, disabled)
|
||||
endif
|
||||
|
||||
Reference in New Issue
Block a user