add experimental support for macs with macports installed

currently requires symlinking python{version}(-embed).pc to
python(embed).pc or python3(-embed).pc
under /opt/local/lib/pkgconfig
This commit is contained in:
İlteriş Yağıztegin Eroğlu 2021-07-03 17:07:53 +03:00
commit 24a2a94341
2 changed files with 29 additions and 9 deletions

View file

@ -59,7 +59,10 @@ else
endif
ifeq ($(USE_BREW),1)
BREW_PREFIX = $(shell brew --prefix)
BREW_PREFIX = $(shell brew --prefix 2>/dev/null)
ifeq ($(BREW_PREFIX),)
MACPORTS_PREFIX = /opt/local
endif
endif
ifeq ($(DEBUG),1)