2
0
Эх сурвалжийг харах

Makefile.defs: set localbase for macports on macos

Daniel-Constantin Mierla 3 жил өмнө
parent
commit
584eabf7de
1 өөрчлөгдсөн 5 нэмэгдсэн , 0 устгасан
  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