... | ... |
@@ -524,7 +524,12 @@ ifeq ($(OS), darwin) |
524 | 524 |
doc_dir = share/doc/$(MAIN_NAME)/ |
525 | 525 |
man_dir = man/ |
526 | 526 |
data_dir = share/$(MAIN_NAME)/ |
527 |
+ MACPORTS = $(shell which port 2>/dev/null) |
|
528 |
+ifeq ($(MACPORTS),) |
|
527 | 529 |
LOCALBASE ?= /usr/local |
530 |
+else |
|
531 |
+ LOCALBASE ?= /opt/local |
|
532 |
+endif |
|
528 | 533 |
endif |
529 | 534 |
|
530 | 535 |
LOCALBASE ?= /usr/local |