packages/baresip: update to 0.3.0 (thanks to Alfred E. Heggestad), make it modular...
[openwrt/svn-archive/archive.git] / net / baresip / patches / 101-cross.patch
1 --- a/Makefile
2 +++ b/Makefile
3 @@ -15,6 +15,7 @@ USE_VIDEO := 1
4 PROJECT := baresip
5 VERSION := 0.3.0
6
7 +ifndef LIBRE_MK
8 LIBRE_MK := $(shell [ -f ../re/mk/re.mk ] && \
9 echo "../re/mk/re.mk")
10 ifeq ($(LIBRE_MK),)
11 @@ -29,11 +30,14 @@ ifeq ($(LIBRE_MK),)
12 LIBRE_MK := $(shell [ -f /usr/local/share/re/re.mk ] && \
13 echo "/usr/local/share/re/re.mk")
14 endif
15 +endif
16
17 include $(LIBRE_MK)
18 include mk/modules.mk
19
20 +ifndef LIBREM_PATH
21 LIBREM_PATH := $(shell [ -d ../rem ] && echo "../rem")
22 +endif
23
24
25 CFLAGS += -I. -Iinclude -I$(LIBRE_INC) -I$(SYSROOT)/include