baresip: build fix 213/head
authorSebastian Kemper <sebastian_ml@gmx.net>
Sun, 26 Nov 2017 22:04:17 +0000 (23:04 +0100)
committerSebastian Kemper <sebastian_ml@gmx.net>
Sun, 26 Nov 2017 22:05:20 +0000 (23:05 +0100)
The package currently fails to build because librem headers cannot be
found. For reasons unknown baresip searches in SYSROOT instead of
SYSROOT_ALT for them. Fix this by patching the Makefile.

Signed-off-by: Sebastian Kemper <sebastian_ml@gmx.net>
net/baresip/patches/002-fix-rem-include.patch [new file with mode: 0644]

diff --git a/net/baresip/patches/002-fix-rem-include.patch b/net/baresip/patches/002-fix-rem-include.patch
new file mode 100644 (file)
index 0000000..d2b85c1
--- /dev/null
@@ -0,0 +1,16 @@
+--- a/Makefile
++++ b/Makefile
+@@ -48,11 +48,11 @@ endif
+ CFLAGS    += -I. -Iinclude -I$(LIBRE_INC) -I$(SYSROOT)/include
+ CFLAGS    += -I$(LIBREM_PATH)/include
+-CFLAGS    += -I$(SYSROOT)/local/include/rem -I$(SYSROOT)/include/rem
++CFLAGS    += -I$(SYSROOT)/local/include/rem -I$(SYSROOT_ALT)/include/rem
+ CXXFLAGS  += -I. -Iinclude -I$(LIBRE_INC)
+ CXXFLAGS  += -I$(LIBREM_PATH)/include
+-CXXFLAGS  += -I$(SYSROOT)/local/include/rem -I$(SYSROOT)/include/rem
++CXXFLAGS  += -I$(SYSROOT)/local/include/rem -I$(SYSROOT_ALT)/include/rem
+ CXXFLAGS  += $(EXTRA_CXXFLAGS)
+ # XXX: common for C/C++