Browse code

Makefile.defs: set localbase for macports on macos

(cherry picked from commit 584eabf7de6af9f835678f9c6d6851cce49a3878)

Daniel-Constantin Mierla authored on 20/01/2022 12:02:18
Showing 1 changed files
... ...
@@ -522,7 +522,12 @@ ifeq ($(OS), darwin)
522 522
 	doc_dir = share/doc/$(MAIN_NAME)/
523 523
 	man_dir = man/
524 524
 	data_dir = share/$(MAIN_NAME)/
525
+	MACPORTS = $(shell which port 2>/dev/null)
526
+ifeq ($(MACPORTS),)
525 527
 	LOCALBASE ?= /usr/local
528
+else
529
+	LOCALBASE ?= /opt/local
530
+endif
526 531
 endif
527 532
 
528 533
 LOCALBASE ?= /usr/local