forked from hasufell/hasufell-repository
sipsimple-test
This commit is contained in:
parent
7a27e5a970
commit
376ca99f95
@ -7,6 +7,11 @@ require setup-py [ import=distutils blacklist="2" multibuild=false ]
|
||||
SUMMARY="SIP SIMPLE client SDK is a Software Development Kit"
|
||||
HOMEPAGE="http://sipsimpleclient.org ${HOMEPAGE}"
|
||||
|
||||
DOWNLOADS+="
|
||||
https://github.com/pjsip/pjproject/archive/2.10.tar.gz
|
||||
https://github.com/wernerd/ZRTPCPP/6b3cd8e6783642292bad0c21e3e5e5ce45ff3e03.tar.gz -> ZRTPCPP.tar.gz
|
||||
"
|
||||
|
||||
LICENCES="GPL-3"
|
||||
SLOT="0"
|
||||
PLATFORMS="~amd64 ~x86"
|
||||
@ -49,6 +54,39 @@ DEFAULT_SRC_PREPARE_PATCHES=(
|
||||
"${FILES}"/${PN}-fix-build.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
setup-py_src_prepare
|
||||
|
||||
# MOst of this is straight from get_dependencies.sh but that
|
||||
# wants to download the dependencies directly so we can't use it
|
||||
edo mkdir "${WORK}"/deps/pjsip
|
||||
edo mv "${WORKBASE}"/pjproject*/* "${WORK}"/deps/pjsip/
|
||||
|
||||
edo pushd "${WORK}"/deps/
|
||||
|
||||
# Copy wrapper from old version to third_party/zsrtp/
|
||||
edo mkdir ./pjsip/third_party/zsrtp
|
||||
cp -r zsrtp/include ./pjsip/third_party/zsrtp/
|
||||
cp -r zsrtp/srtp ./pjsip/third_party/zsrtp/
|
||||
cp -r zsrtp/build ./pjsip/third_party/build/zsrtp
|
||||
|
||||
# Copy new version to third_party/zsrtp/
|
||||
mkdir ./pjsip/third_party/zsrtp/zrtp
|
||||
cp -r "${WORKBASE}"/ZRTPCPP/bnlib ./pjsip/third_party/zsrtp/zrtp/
|
||||
cp -r "${WORKBASE}"/ZRTPCPP/common ./pjsip/third_party/zsrtp/zrtp/
|
||||
cp -r "${WORKBASE}"/ZRTPCPP/cryptcommon ./pjsip/third_party/zsrtp/zrtp/
|
||||
cp -r "${WORKBASE}"/ZRTPCPP/srtp ./pjsip/third_party/zsrtp/zrtp/
|
||||
cp -r "${WORKBASE}"/ZRTPCPP/zrtp ./pjsip/third_party/zsrtp/zrtp/
|
||||
cp "${WORKBASE}"/ZRTPCPP/COPYING ./pjsip/third_party/zsrtp/zrtp/
|
||||
cp "${WORKBASE}"/ZRTPCPP/README.md ./pjsip/third_party/zsrtp/zrtp/
|
||||
|
||||
for p in patches/*.patch; do
|
||||
expatch -p0 "${p}"
|
||||
done
|
||||
|
||||
edo popd
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# breaks horribly with 'ld'
|
||||
export LD=${CC}
|
||||
|
Loading…
Reference in New Issue
Block a user