Module: kamailio Branch: master Commit: 584eabf7de6af9f835678f9c6d6851cce49a3878 URL: https://github.com/kamailio/kamailio/commit/584eabf7de6af9f835678f9c6d6851cc...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2022-01-20T13:02:44+01:00
Makefile.defs: set localbase for macports on macos
---
Modified: src/Makefile.defs
---
Diff: https://github.com/kamailio/kamailio/commit/584eabf7de6af9f835678f9c6d6851cc... Patch: https://github.com/kamailio/kamailio/commit/584eabf7de6af9f835678f9c6d6851cc...
---
diff --git a/src/Makefile.defs b/src/Makefile.defs index 84f9438bc4..d2d7c60814 100644 --- a/src/Makefile.defs +++ b/src/Makefile.defs @@ -524,7 +524,12 @@ ifeq ($(OS), darwin) doc_dir = share/doc/$(MAIN_NAME)/ man_dir = man/ data_dir = share/$(MAIN_NAME)/ + MACPORTS = $(shell which port 2>/dev/null) +ifeq ($(MACPORTS),) LOCALBASE ?= /usr/local +else + LOCALBASE ?= /opt/local +endif endif
LOCALBASE ?= /usr/local