[sr-dev] git:master:584eabf7: Makefile.defs: set localbase for macports on macos
Daniel-Constantin Mierla
miconda at gmail.com
Thu Jan 20 13:02:58 CET 2022
Module: kamailio
Branch: master
Commit: 584eabf7de6af9f835678f9c6d6851cce49a3878
URL: https://github.com/kamailio/kamailio/commit/584eabf7de6af9f835678f9c6d6851cce49a3878
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/584eabf7de6af9f835678f9c6d6851cce49a3878.diff
Patch: https://github.com/kamailio/kamailio/commit/584eabf7de6af9f835678f9c6d6851cce49a3878.patch
---
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
More information about the sr-dev
mailing list