git update
[packages.git] / net / freeswitch / patches / 002-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_OPTS = foreign
11 @@ -61,7 +65,7 @@ cd-moh-install: uhd-moh-install sounds-m
12  # (1) if the variable is set in `config.status', edit `config.status'
13  #     (which will cause the Makefiles to be regenerated when you run `make');
14  # (2) otherwise, pass the desired values on the `make' command line.
15 -all-recursive: libfreeswitch.la
16 +all-recursive: spandsp-reconf libfreeswitch.la
17  clean-recusive: clean_core
18  install-recursive: install-libLTLIBRARIES install-binPROGRAMS
19  $(RECURSIVE_TARGETS):
20 @@ -299,7 +303,7 @@ endif
21  ##
22  fs_encode_SOURCES = src/fs_encode.c
23  fs_encode_CFLAGS = $(AM_CFLAGS)
24 -fs_encode_LDFLAGS = $(AM_LDFLAGS) $(CORE_LIBS)
25 +fs_encode_LDFLAGS = $(AM_LDFLAGS) -lpthread $(CORE_LIBS)
26  fs_encode_LDADD = libfreeswitch.la -lcrypt -lrt
27  
28  ##
29 @@ -307,7 +311,7 @@ fs_encode_LDADD = libfreeswitch.la -lcry
30  ##
31  tone2wav_SOURCES = src/tone2wav.c
32  tone2wav_CFLAGS  = $(AM_CFLAGS)
33 -tone2wav_LDFLAGS = $(AM_LDFLAGS) $(CORE_LIBS)
34 +tone2wav_LDFLAGS = $(AM_LDFLAGS) -lpthread $(CORE_LIBS)
35  tone2wav_LDADD   = libfreeswitch.la -lcrypt -lrt
36  
37  ##
38 @@ -586,10 +590,13 @@ speex-reconf:
39  
40  tiff-reconf:
41         cd libs/tiff-3.8.2 && autoreconf -fi
42 -       cd libs/tiff-3.8.2 && sh ./configure.gnu
43 +       cd libs/tiff-3.8.2 && sh ./configure.gnu --host=$(GNU_TARGET_NAME)
44         cd libs/spandsp && autoreconf -fi
45 -       cd libs/spandsp && sh ./configure.gnu
46 -       make mod_voipcodecs-clean
47 +       cd libs/spandsp && sh ./configure.gnu --host=$(GNU_TARGET_NAME) --prefix=$(prefix)
48 +       cd libs/tiff-3.8.2 && $(MAKE)
49 +
50 +spandsp-reconf: tiff-reconf
51 +       cd libs/spandsp && $(MAKE)
52  
53  python-reconf:
54         rm -f src/mod/languages/mod_python/Makefile
55 @@ -612,12 +619,6 @@ iks-reconf:
56         cd libs/iksemel && sh ./configure.gnu --prefix=$(prefix)
57         $(MAKE) mod_dingaling-clean
58  
59 -spandsp-reconf:
60 -       cd libs/spandsp && $(MAKE) clean || echo
61 -       cd libs/spandsp && autoreconf -fi
62 -       cd libs/spandsp && sh ./configure.gnu --prefix=$(prefix)
63 -       cd libs/spandsp && $(MAKE)
64 -
65  sofia-reconf:
66         cd libs/sofia-sip && sh ./autogen.sh
67         cd libs/sofia-sip && $(MAKE) clean