baresip: bump to 1.1.0
[feed/telephony.git] / net / baresip / patches / 002-fix-rem-include.patch
1 --- a/Makefile
2 +++ b/Makefile
3 @@ -45,63 +45,11 @@ SYSROOT_LOCAL := $(shell [ -d /usr/local
4 endif
5 endif
6
7 -ifndef LIBREM_PATH
8 -LIBREM_PATH := $(shell [ -d ../rem ] && echo "../rem")
9 -endif
10 -
11 -ifeq ($(LIBREM_PATH),)
12 -ifneq ($(SYSROOT_LOCAL),)
13 -LIBREM_PATH := $(shell [ -f $(SYSROOT_LOCAL)/include/rem/rem.h ] && \
14 - echo "$(SYSROOT_LOCAL)")
15 -endif
16 -endif
17 -
18 -ifeq ($(LIBREM_PATH),)
19 -LIBREM_PATH := $(shell [ -f $(SYSROOT)/include/rem/rem.h ] && \
20 - echo "$(SYSROOT)")
21 -endif
22 -
23 # Include path
24 -LIBREM_INC := $(shell [ -f $(LIBREM_PATH)/include/rem.h ] && \
25 - echo "$(LIBREM_PATH)/include")
26 -ifeq ($(LIBREM_INC),)
27 -LIBREM_INC := $(shell [ -f $(LIBREM_PATH)/include/rem/rem.h ] && \
28 - echo "$(LIBREM_PATH)/include/rem")
29 -endif
30 -ifeq ($(LIBREM_INC),)
31 -LIBREM_INC := $(shell [ -f /usr/local/include/rem/rem.h ] && \
32 - echo "/usr/local/include/rem")
33 -endif
34 -ifeq ($(LIBREM_INC),)
35 -LIBREM_INC := $(shell [ -f /usr/include/rem/rem.h ] && echo "/usr/include/rem")
36 -endif
37 +LIBREM_INC := $(SYSROOT_ALT)/include/rem
38
39 # Library path
40 -ifeq ($(LIBREM_SO),)
41 -LIBREM_SO := $(shell [ -f $(LIBREM_PATH)/librem.a ] && \
42 - echo "$(LIBREM_PATH)")
43 -endif
44 -ifeq ($(LIBREM_SO),)
45 -LIBREM_SO :=$(shell [ -f $(LIBREM_PATH)/librem$(LIB_SUFFIX) ] && \
46 - echo "$(LIBREM_PATH)")
47 -endif
48 -ifeq ($(LIBREM_SO),)
49 -LIBREM_SO := $(shell [ -f $(LIBREM_PATH)/lib/librem$(LIB_SUFFIX) ] && \
50 - echo "$(LIBREM_PATH)/lib")
51 -endif
52 -ifeq ($(LIBREM_SO),)
53 -LIBREM_SO := $(shell [ -f /usr/local/lib/librem$(LIB_SUFFIX) ] \
54 - && echo "/usr/local/lib")
55 -endif
56 -ifeq ($(LIBREM_SO),)
57 -LIBREM_SO := $(shell [ -f /usr/lib/librem$(LIB_SUFFIX) ] && \
58 - echo "/usr/lib")
59 -endif
60 -ifeq ($(LIBREM_SO),)
61 -LIBREM_SO := $(shell [ -f /usr/lib64/librem$(LIB_SUFFIX) ] && \
62 - echo "/usr/lib64")
63 -endif
64 -
65 +LIBREM_SO := $(SYSROOT_ALT)/include/rem
66
67 CFLAGS += -I. -Iinclude -I$(LIBRE_INC)
68 CFLAGS += -I$(LIBREM_INC)