File whatsapp-purple-cflags.patch of Package purple-whatsapp

--- a/libaxolotl-cpp/libcurve25519/Makefile
+++ b/libaxolotl-cpp/libcurve25519/Makefile
@@ -5,7 +5,7 @@ AR=ar
 
 TARGET=libcurve25519.a
 INCLUDES=-I./src/ed25519/ -I./src/ed25519/additions/ -I./src/ed25519/nacl_includes/
-CFLAGS=-DLIBCURVE25519_LIBRARY -O2 -fPIC 
+CFLAGS=-DLIBCURVE25519_LIBRARY -O2 -fPIC $(CPPFLAGS)
 
 HEADERS=curve.h curve_global.h
 #    src/ed25519/main/main.c
diff -paur a/Makefile b/Makefile
--- a/Makefile	2016-01-29 03:43:07.000000000 +0300
+++ b/Makefile	2016-12-18 20:42:22.054039090 +0300
@@ -41,6 +41,7 @@ CXX = g++
 LD = $(CXX)
 CFLAGS_PURPLE = $(shell $(PKG_CONFIG) --cflags purple)
 CFLAGS ?= \
+    $(CPPFLAGS) \
     $(ARCHFLAGS) \
     -O2 \
     -Wall \
@@ -59,10 +60,10 @@ LDFLAGS ?= $(ARCHFLAGS)
 LDFLAGS += -shared -pipe
 
 libaxolotl-cpp/libcurve25519/libcurve25519.a:
-	+make -C libaxolotl-cpp/libcurve25519
+	+make -C libaxolotl-cpp/libcurve25519 CPPFLAGS="$(CPPFLAGS)"
 
 libaxolotl-cpp/libaxolotl.a:	libaxolotl-cpp/libcurve25519/libcurve25519.a
-	+make -C libaxolotl-cpp
+	+make -C libaxolotl-cpp EXTRA_INCLUDES="$(CPPFLAGS)"
 
 AxolotlMessages.pb.h:	AxolotlMessages.proto
 	protoc --cpp_out=. AxolotlMessages.proto