blob: e9e9f040c99811ccf3434ffba3cb31fe9decbf86 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
# -*- 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 = '1.6.0'
stype = SourceType.TARBALL
url = 'https://github.com/cisco/%(name)s/archive/v%(version)s.tar.gz'
licenses = [License.BSD_like]
patches = ['libsrtp/0001-Don-t-create-a-symlink-if-there-is-no-SHAREDLIBVERSI.patch',
'libsrtp/0002-ios-Remove-flags-incompatible-with-fembed-bitcode.patch']
files_libs = ['libsrtp']
files_devel = ['include/srtp', 'lib/pkgconfig/libsrtp.pc']
def prepare(self):
# Don't accidentially build with pcap support
self.set_env('ac_cv_lib_pcap_pcap_create', 'no')
self.make += ' all shared_library'
def install(self):
super(Recipe, self).install()
libdir = os.path.join(self.config.prefix,
'lib' + self.config.lib_suffix)
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('srtp', 1, None, None, self.config.libdir,
self.config.target_platform)
libtool_la.save()
|