updated to FS git HEAD 5e3a6fc5e6f40be5d68c8b3cfbbfa3227fe06c2f
[openwrt/svn-archive/archive.git] / net / freeswitch / patches / 205-src-mod-endpoints-mod_gsmopen-Makefile.patch
1 --- a/src/mod/endpoints/mod_gsmopen/Makefile
2 +++ b/src/mod/endpoints/mod_gsmopen/Makefile
3 @@ -1,5 +1,15 @@
4 +BASE=../../../..
5 MODNAME=mod_gsmopen
6 -LOCAL_CFLAGS += -I../../../../libs/spandsp/src -I../../../..//libs/tiff-4.0.2/libtiff -DGSMOPEN_C_VER=\"`git log -1 --format="%h" gsmopen_protocol.cpp`\" -DMODGSMOPEN_C_VER=\"`git log -1 --format="%h" mod_gsmopen.cpp`\"
7 -LOCAL_LDFLAGS=-L../../../../libs/spandsp/src -lspandsp -lctb-0.16 -lgsmme
8 +SVNDEF := -D'GSMOPEN_SVN_VERSION="$(shell svnversion -n .)"'
9 +
10 +TIFF_DIR="$(shell ls -d $(switch_srcdir)/libs/tiff*)"
11 +TIFF_BUILDDIR=$(TIFF_DIR)
12 +TIFF_LA=$(TIFF_BUILDDIR)/libtiff/libtiff.la
13 +
14 +SPANDSP_DIR=$(switch_srcdir)/libs/spandsp
15 +SPANDSP_BUILDDIR=$(switch_builddir)/libs/spandsp
16 +SPANDSP_LA=$(SPANDSP_BUILDDIR)/src/libspandsp.la
17 +LOCAL_CFLAGS += $(SVNDEF) -I$(BASE)/libs/spandsp/src -I$(TIFF_DIR)/libtiff -I$(BASE)/src/mod/endpoints/mod_gsmopen/libctb-0.16/include -fpermissive
18 +LOCAL_LDFLAGS=-L$(BASE)/libs/spandsp/src -lspandsp -L$(BASE)/src/mod/endpoints/mod_gsmopen/libctb-0.16/lib -lctb-0.16
19 LOCAL_OBJS=gsmopen_protocol.o
20 include ../../../../build/modmake.rules