mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-09 01:36:52 +08:00
Merge pull request #1737 from gtalusan/master
fix homebrew dependency detection
This commit is contained in:
commit
e303293477
2 changed files with 9 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue