fixed libzrtp
[packages.git] / net / freeswitch / patches / 003-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
10  AUTOMAKE_OPTIONS = foreign
11 @@ -165,7 +169,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 @@ -423,7 +426,7 @@ $(switch_builddir)/quiet_libtool: $(swit
20         @cat libtool | sed -e 's|$$show "$$command"|if test -z "$$suppress_output" ; then $$show "Compiling $$srcfile ..." ; fi|' > $(switch_builddir)/quiet_libtool
21  
22  build/print_git_revision: build/print_git_revision.c
23 -       $(CC) -o $@ $<
24 +       $(HOSTCC) -o $@ $<
25  
26  src/include/switch_version.h: src/include/switch_version.h.in Makefile build/print_git_revision $(libfreeswitch_la_SOURCES) $(library_include_HEADERS)
27         @cat $< > $@; \
28 @@ -649,7 +652,9 @@ sndfile-reconf:
29  
30  tiff-reconf:
31         cd libs/tiff-4.0.2 && autoreconf -fi
32 -       cd libs/tiff-4.0.2 && sh ./configure.gnu
33 +       cd libs/tiff-4.0.2 && sh ./configure.gnu --host="$(GNU_TARGET_NAME)" --prefix="/usr"
34 +       cd libs/spandsp && autoreconf -fi
35 +       cd libs/spandsp && sh ./configure.gnu --host="$(GNU_TARGET_NAME)" --prefix="/usr"
36         cd libs/tiff-4.0.2 && make
37  
38  python-reconf:
39 @@ -674,9 +679,6 @@ iks-reconf:
40         $(MAKE) mod_dingaling-clean
41  
42  spandsp-reconf: tiff-reconf
43 -       cd libs/spandsp && $(MAKE) clean || echo
44 -       cd libs/spandsp && autoreconf -fi
45 -       cd libs/spandsp && sh ./configure.gnu --prefix=$(prefix)
46         cd libs/spandsp && $(MAKE)
47  
48  sofia-reconf: