eclipse and SPI lib

I'm not sure if this belongs here, but I'm having an issue trying to include the SPI library using Jantje's Eclipse plugin.
I've used "add a library to the selected project" then when trying to compile a project with just

#include "spi_test.h"
#include "SPI.h"
void setup(){}
void loop(){}

I get this from the console:

12:22:03 **** Incremental Build of configuration Release for project spi_test ****
make all 
Building file: C:/Arduino1.5.4/libraries/SPI/arch/sam/SPI.cpp
Starting C++ compile
"C:/Arduino1.5.4/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega2560 -DF_CPU=16000000L -DARDUINO=154 -DARDUINO_AVR_MEGA2560 -DARDUINO_ARCH_    -I"C:\Arduino1.5.4\hardware\arduino\avr\cores\arduino" -I"C:\Arduino1.5.4\hardware\arduino\avr\variants\mega" -I"C:\Arduino1.5.4\libraries\SPI" -MMD -MP -MF"Libraries/SPI/arch/sam/SPI.cpp.d" -MT"Libraries/SPI/arch/sam/SPI.cpp.d" -x c++ "C:/Arduino1.5.4/libraries/SPI/arch/sam/SPI.cpp"  -o  "Libraries/SPI/arch/sam/SPI.cpp.o"
In file included from C:/Arduino1.5.4/libraries/SPI/arch/sam/SPI.cpp:11:

followed by a long list of errors
It looks to me like it is trying to use the "sam/spi..." not "avr/spi..." any ideas why?

By the way, I'm coding for a mega2560 using Juno, Arduino 1.5.4, and the latest version of the plugin