Commit 51ee34499cc82938905864003b2f04eb71790581
authorStephen Drake <steve@synergyconsultingnz.com>
Fri, 18 Dec 2015 05:12:00 +0000 (18:12 +1300)
committerStephen Drake <steve@synergyconsultingnz.com>
Mon, 18 Jan 2016 05:05:28 +0000 (18:05 +1300)
Updated Macports support based on Homebrew support.  Set correct paths
for MacPorts-provided avr-gcc and libelf.

Makefile.common

index cfdb37d30ab097fdcf5a5af20952b116ecbf2225..a46b57822d9568f6713bcdd752064ceb5167e8cb 100644 (file)
@@ -51,8 +51,17 @@ ifeq (${shell uname}, Darwin)
  AVR           := ${AVR_ROOT}/bin/avr-
  # Thats for MacPorts libelf
  ifeq (${shell test -d /opt/local && echo Exists}, Exists)
-  IPATH                += /opt/local/include
-  LFLAGS               = -L/opt/local/lib/
+  ifneq (${shell test -d /opt/local/avr && echo Exists}, Exists)
+   $(error Please install avr-gcc: port install avr-gcc avr-libc)
+  endif
+  ifneq (${shell test -d /opt/local/include/libelf && echo Exists}, Exists)
+   $(error Please install libelf: port install libelf)
+  endif
+  CC           = clang
+  IPATH                += /opt/local/include /opt/local/include/libelf
+  LFLAGS       = -L/opt/local/lib/
+  AVR_INC      := /opt/local/avr
+  AVR          := /opt/local/bin/avr-
  else
   # That's for Homebrew libelf and avr-gcc support
   ifeq (${shell test -d /usr/local/Cellar && echo Exists}, Exists)