...@@ -14,16 +14,16 @@ else ...@@ -14,16 +14,16 @@ else
endif endif
endif endif
.PHONY: gdal xmlsec .PHONY: gdal xmlsec libffi
check_libs: gdal xmlsec check_libs: gdal xmlsec libffi
gdal: gdal:
ifeq ($(GDAL_AVAILABLE),) ifeq ($(GDAL_AVAILABLE),)
@echo "${RED}--------------------------------------------------------------------------------------------${NC}" @echo "${RED}--------------------------------------------------------------------------------------------${NC}"
@echo "---> ${RED}GDAL not found. Please use the command below to install it. ${NC}\n" @echo "---> ${RED}GDAL not found. Please use the command below to install it. ${NC}\n"
ifeq ($(CCFLAGS),OSX) ifeq ($(CCFLAGS),OSX)
@echo "\t${RED}brew install gdal --HEAD${NC}" @echo "\t${RED}brew install gdal${NC}"
endif endif
ifeq ($(CCFLAGS),LINUX) ifeq ($(CCFLAGS),LINUX)
@echo "\t${RED}sudo add-apt-repository ppa:ubuntugis/ppa; sudo apt-get update; sudo apt-get install gdal-bin && sudo apt-get -y install python-gdal${NC}" @echo "\t${RED}sudo add-apt-repository ppa:ubuntugis/ppa; sudo apt-get update; sudo apt-get install gdal-bin && sudo apt-get -y install python-gdal${NC}"
...@@ -45,7 +45,7 @@ ifeq ($(shell brew ls --versions libxmlsec1),) ...@@ -45,7 +45,7 @@ ifeq ($(shell brew ls --versions libxmlsec1),)
@echo "${RED}--------------------------------------------------------------------------------------------${NC}" @echo "${RED}--------------------------------------------------------------------------------------------${NC}"
exit 1 exit 1
else else
@echo "Found xmlsec. Skipping" @echo "Found xmlsec version: $(shell brew ls --versions libxmlsec1). Skipping"
endif endif
endif endif
ifeq ($(CCFLAGS),LINUX) ifeq ($(CCFLAGS),LINUX)
...@@ -84,3 +84,17 @@ else ...@@ -84,3 +84,17 @@ else
@echo "Found xmlsec. Skipping" @echo "Found xmlsec. Skipping"
endif endif
endif endif
libffi:
ifeq ($(CCFLAGS),OSX)
ifeq ($(shell brew ls --versions libffi),)
@echo "${RED}--------------------------------------------------------------------------------------------${NC}"
@echo "---> ${RED}LIBFFI not found. Please use the command below to install it. ${NC}\n"
@echo "\t${RED}brew install libffi${NC}"
@echo ""
@echo "${RED}--------------------------------------------------------------------------------------------${NC}"
exit 1
else
@echo "Found libffi version: $(shell brew ls --versions libffi). Skipping"
endif
endif
\ No newline at end of file