mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-01 18:59:25 +00:00
fix srtp build
This commit is contained in:
parent
dd8f4dc1bb
commit
51915a4bac
4 changed files with 12 additions and 21 deletions
3
.gitmodules
vendored
3
.gitmodules
vendored
|
|
@ -31,3 +31,6 @@
|
|||
[submodule "submodules/mssilk"]
|
||||
path = submodules/mssilk
|
||||
url = git://git.linphone.org/mssilk.git
|
||||
[submodule "submodules/externals/srtp"]
|
||||
path = submodules/externals/srtp
|
||||
url = git://git.linphone.org/srtp.git
|
||||
|
|
|
|||
|
|
@ -65,8 +65,6 @@ speex_dir?=externals/speex
|
|||
|
||||
gsm_dir?=externals/gsm
|
||||
|
||||
srtp_dir?=externals/srtp
|
||||
|
||||
zrtpcpp_dir?=externals/zrtpcpp
|
||||
|
||||
MSILBC_SRC_DIR:=$(BUILDER_SRC_DIR)/msilbc
|
||||
|
|
|
|||
|
|
@ -1,17 +1,8 @@
|
|||
srtp_version?=1.4.4
|
||||
#srtp_url?=http://srtp.sourceforge.net/srtp-$(srtp_version).tgz
|
||||
srtp_url=http://sourceforge.net/projects/srtp/files/srtp/$(srtp_version)/srtp-$(srtp_version).tgz/download
|
||||
srtp_tgz_file=srtp-$(srtp_version).tgz
|
||||
|
||||
$(BUILDER_SRC_DIR)/externals/$(srtp_tgz_file):
|
||||
cd $(BUILDER_SRC_DIR)/externals \
|
||||
&& wget $(srtp_url) -O $(srtp_tgz_file)
|
||||
|
||||
$(BUILDER_SRC_DIR)/$(srtp_dir)/configure: $(BUILDER_SRC_DIR)/externals/$(srtp_tgz_file)
|
||||
cd $(BUILDER_SRC_DIR)/externals \
|
||||
&& tar zxvf $(srtp_tgz_file) \
|
||||
&& cd srtp && patch -p0 < $(BUILDER_SRC_DIR)/build/builders.d/srtp.patch
|
||||
srtp_dir?=externals/srtp
|
||||
|
||||
$(BUILDER_SRC_DIR)/$(srtp_dir)/configure:
|
||||
cd $(BUILDER_SRC_DIR)/$(srtp_dir) \
|
||||
&& autoconf
|
||||
$(BUILDER_BUILD_DIR)/$(srtp_dir)/Makefile: $(BUILDER_SRC_DIR)/$(srtp_dir)/configure
|
||||
mkdir -p $(BUILDER_BUILD_DIR)/$(srtp_dir)
|
||||
cd $(BUILDER_BUILD_DIR)/$(srtp_dir)/\
|
||||
|
|
@ -19,17 +10,15 @@ $(BUILDER_BUILD_DIR)/$(srtp_dir)/Makefile: $(BUILDER_SRC_DIR)/$(srtp_dir)/config
|
|||
$(BUILDER_SRC_DIR)/$(srtp_dir)/configure -prefix=$(prefix) --host=$(host) ${library_mode}
|
||||
|
||||
build-srtp: $(BUILDER_BUILD_DIR)/$(srtp_dir)/Makefile
|
||||
cp -rf $(BUILDER_SRC_DIR)/$(srtp_dir)/include $(BUILDER_BUILD_DIR)/$(srtp_dir)
|
||||
cp -rf $(BUILDER_SRC_DIR)/$(srtp_dir)/crypto/include $(BUILDER_BUILD_DIR)/$(srtp_dir)
|
||||
-cd $(BUILDER_BUILD_DIR)/$(srtp_dir) && make uninstall && make clean
|
||||
cd $(BUILDER_BUILD_DIR)/$(srtp_dir) && make libsrtp.a && make install
|
||||
cd $(BUILDER_BUILD_DIR)/$(srtp_dir) && make libsrtp.a && make uninstall install
|
||||
|
||||
clean-srtp:
|
||||
cd $(BUILDER_BUILD_DIR)/$(srtp_dir) && make clean
|
||||
-cd $(BUILDER_BUILD_DIR)/$(srtp_dir) && make clean
|
||||
|
||||
veryclean-srtp:
|
||||
-cd $(BUILDER_BUILD_DIR)/$(srtp_dir) && make distclean
|
||||
-rm -f $(BUILDER_SRC_DIR)/$(srtp_dir)/configure
|
||||
|
||||
clean-makefile-srtp:
|
||||
cd $(BUILDER_BUILD_DIR)/$(srtp_dir) && rm -f Makefile
|
||||
-cd $(BUILDER_BUILD_DIR)/$(srtp_dir) && rm -f Makefile
|
||||
|
||||
|
|
|
|||
1
submodules/externals/srtp
vendored
Submodule
1
submodules/externals/srtp
vendored
Submodule
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 9d08cb3299af0be8893d898a4cf3358ad26874b7
|
||||
Loading…
Add table
Reference in a new issue