Browse Source

Makefile.defs: set localbase for macports on macos

Daniel-Constantin Mierla 3 years ago
parent
commit
584eabf7de
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/Makefile.defs

+ 5 - 0
src/Makefile.defs

@@ -524,7 +524,12 @@ ifeq ($(OS), darwin)
 	doc_dir = share/doc/$(MAIN_NAME)/
 	doc_dir = share/doc/$(MAIN_NAME)/
 	man_dir = man/
 	man_dir = man/
 	data_dir = share/$(MAIN_NAME)/
 	data_dir = share/$(MAIN_NAME)/
+	MACPORTS = $(shell which port 2>/dev/null)
+ifeq ($(MACPORTS),)
 	LOCALBASE ?= /usr/local
 	LOCALBASE ?= /usr/local
+else
+	LOCALBASE ?= /opt/local
+endif
 endif
 endif
 
 
 LOCALBASE ?= /usr/local
 LOCALBASE ?= /usr/local