FreeSWITCH:
[feed/telephony.git] / net / freeswitch / patches / 0000011-Makefile.am.patch
1 --- a/Makefile.am
2 +++ b/Makefile.am
3 @@ -1,3 +1,7 @@
4 +BASE=.
5 +
6 +include $(BASE)/build/openwrt_rules.mk
7 +
8 EXTRA_DIST =
9 SUBDIRS = . src build
10 AUTOMAKE_OPTIONS = foreign subdir-objects
11 @@ -172,7 +176,6 @@ ZRTP_LIBS = -lbn -lzrtp
12 libfreeswitch_la_LDFLAGS += $(ZRTP_LDFLAGS)
13 libfreeswitch_la_LIBADD += $(ZRTP_LIBS)
14 CORE_LIBS += libs/libzrtp/libzrtp.a
15 -LIBS += libs/libzrtp/third_party/bnlib/libbn.a
16 endif
17
18 library_includedir = $(includedir)
19 @@ -311,7 +314,7 @@ endif
20 $(libfreeswitch_la_SOURCES): $(CORE_LIBS) $(switch_builddir)/modules.conf
21
22 src/include/switch_swigable_cpp.h: $(switch_srcdir)/src/include/switch_cpp.h
23 - cat $(switch_srcdir)/src/include/switch_cpp.h | perl $(switch_srcdir)/build/strip.pl > $(switch_srcdir)/src/include/switch_swigable_cpp.h
24 + cat $(switch_srcdir)/src/include/switch_cpp.h | $(STAGING_DIR)/../host/usr/bin/perl $(switch_srcdir)/build/strip.pl > $(switch_srcdir)/src/include/switch_swigable_cpp.h
25 # $(CC) -E $(switch_srcdir)/src/include/switch_cpp.h \
26 # -I$(switch_srcdir)/src/include -I$(switch_srcdir)/libs/libteletone/src \
27 # -DSWITCH_DECLARE_CLASS= -DSWITCH_DECLARE\(x\)=x -DSWITCH_DECLARE_CONSTRUCTOR= \
28 @@ -374,7 +377,7 @@ fs_ivrd_LDFLAGS = $(AM_LDFLAGS) -lpthrea
29 nodist_freeswitch_SOURCES = src/include/switch_version.h
30 freeswitch_SOURCES = src/switch.c
31 freeswitch_CFLAGS = $(AM_CFLAGS) $(CORE_CFLAGS)
32 -freeswitch_LDFLAGS = $(AM_LDFLAGS) -lpthread -rpath $(libdir)
33 +freeswitch_LDFLAGS = $(AM_LDFLAGS) $(LDFLAGS) $(LIBS) -lpthread
34 freeswitch_LDADD = libfreeswitch.la libs/apr/libapr-1.la
35
36 if HAVE_ODBC
37 @@ -633,7 +636,9 @@ sndfile-reconf:
38
39 tiff-reconf:
40 cd libs/tiff-4.0.2 && autoreconf -fi
41 - cd libs/tiff-4.0.2 && sh ./configure.gnu $(MY_DEFAULT_ARGS)
42 + cd libs/tiff-4.0.2 && sh ./configure.gnu $(MY_DEFAULT_ARGS) --host="$(GNU_TARGET_NAME)" --prefix="/usr"
43 + cd libs/spandsp && autoreconf -fi
44 + cd libs/spandsp && sh ./configure.gnu $(MY_DEFAULT_ARGS) --host="$(GNU_TARGET_NAME)" --prefix="/usr"
45 cd libs/tiff-4.0.2 && make
46
47 python-reconf:
48 @@ -653,9 +658,6 @@ iks-reconf:
49 $(MAKE) mod_dingaling-clean
50
51 spandsp-reconf: tiff-reconf
52 - cd libs/spandsp && $(MAKE) clean || echo
53 - cd libs/spandsp && autoreconf -fi
54 - cd libs/spandsp && sh ./configure.gnu $(MY_DEFAULT_ARGS)
55 cd libs/spandsp && $(MAKE)
56
57 sofia-reconf: