b0cdaa3dc1672a66018bad9ef2b16e9fbab8fc6b
[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 @@ -69,7 +73,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  
20 @@ -621,7 +625,9 @@ sndfile-reconf:
21  
22  tiff-reconf:
23         cd libs/tiff-4.0.2 && autoreconf -fi
24 -       cd libs/tiff-4.0.2 && sh ./configure.gnu
25 +       cd libs/tiff-4.0.2 && sh ./configure.gnu --host="$(GNU_TARGET_NAME)" --prefix="/usr"
26 +       cd libs/spandsp && autoreconf -fi
27 +       cd libs/spandsp && sh ./configure.gnu --host="$(GNU_TARGET_NAME)" --prefix="/usr"
28         cd libs/tiff-4.0.2 && make
29  
30  python-reconf:
31 @@ -646,9 +652,6 @@ iks-reconf:
32         $(MAKE) mod_dingaling-clean
33  
34  spandsp-reconf: tiff-reconf
35 -       cd libs/spandsp && $(MAKE) clean || echo
36 -       cd libs/spandsp && autoreconf -fi
37 -       cd libs/spandsp && sh ./configure.gnu --prefix=$(prefix)
38         cd libs/spandsp && $(MAKE)
39  
40  sofia-reconf: