summaryrefslogtreecommitdiff
path: root/recipes/libsrtp.recipe
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2020-06-09 09:24:03 +0530
committerGStreamer Merge Bot <gitlab-merge-bot@gstreamer-foundation.org>2020-06-10 01:10:36 +0000
commita8a489f23c3d2d9269a5c8f360b43ab61caa43a9 (patch)
tree84e26bdafab774d4cc864b2f562ea9551b2ea5a7 /recipes/libsrtp.recipe
parent24e1290aaf4918c931ad542b3e66d9eb683855e2 (diff)
libsrtp.recipe: Bump to 2.3.0 and port to Meson
Port is living at: https://gitlab.freedesktop.org/gstreamer/meson-ports/libsrtp Till upstream decides whether to merge it or not: https://github.com/cisco/libsrtp/pull/495 Part-of: <https://gitlab.freedesktop.org/gstreamer/cerbero/-/merge_requests/504>
Diffstat (limited to 'recipes/libsrtp.recipe')
-rw-r--r--recipes/libsrtp.recipe27
1 files changed, 16 insertions, 11 deletions
diff --git a/recipes/libsrtp.recipe b/recipes/libsrtp.recipe
index e4c3ee4b..277c8aa1 100644
--- a/recipes/libsrtp.recipe
+++ b/recipes/libsrtp.recipe
@@ -1,19 +1,29 @@
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
from cerbero.tools.libtool import LibtoolLibrary
-from cerbero.utils import shell
import shutil
class Recipe(recipe.Recipe):
name = 'libsrtp'
- version = '2.2.0'
+ version = '2.3.0'
stype = SourceType.TARBALL
- make = ['make', 'all', 'shared_library']
url = 'https://github.com/cisco/%(name)s/archive/v%(version)s.tar.gz'
- tarball_checksum = '44fd7497bce78767e96b54a11bca520adb2ad32effd515f04bce602b60a1a50b'
+ tarball_checksum = '94093a5d04c5f4743e8d81182b76938374df6d393b45322f24960d250b0110e8'
licenses = [{License.BSD_like: ['LICENSE']}]
+
+ btype = BuildType.MESON
+ meson_options = {
+ # XXX: should we use openssl?
+ 'crypto-library': 'none',
+ 'doc': 'disabled',
+ 'tests': 'enabled',
+ 'pcap-tests': 'disabled'
+ }
+
patches = [
- 'libsrtp/0002-ios-Remove-flags-incompatible-with-fembed-bitcode.patch',
+ # https://gitlab.freedesktop.org/gstreamer/meson-ports/libsrtp
+ # https://github.com/cisco/libsrtp/pull/495
+ 'libsrtp/libsrtp-meson-port.patch',
# https://github.com/cisco/libsrtp/pull/486
'libsrtp/0001-Fix-building-with-gcc-10.patch',
]
@@ -21,10 +31,6 @@ class Recipe(recipe.Recipe):
files_libs = ['libsrtp2']
files_devel = ['include/srtp2', 'lib/pkgconfig/libsrtp2.pc']
- def prepare(self):
- # Don't accidentially build with pcap support
- self.set_env('ac_cv_lib_pcap_pcap_create', 'no')
-
async def install(self):
await super(Recipe, self).install()
libdir = os.path.join(self.config.prefix,
@@ -32,8 +38,7 @@ class Recipe(recipe.Recipe):
shutil.copy(os.path.join(self.build_dir, 'srtp.def'), libdir)
def post_install(self):
- # XXX: Don't forget to keep this in sync with the library version!
- libtool_la = LibtoolLibrary('srtp2', 1, None, None, self.config.libdir,
+ libtool_la = LibtoolLibrary('srtp2', None, None, None, self.config.libdir,
self.config.target_platform)
libtool_la.save()
super().post_install()