Explorar o código

Makefile.defs: set localbase for macports on macos

Daniel-Constantin Mierla %!s(int64=3) %!d(string=hai) anos
pai
achega
584eabf7de
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      src/Makefile.defs

+ 5 - 0
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