blob: f6d81f2c7af35eb74a572aa5ef9e0466ca1a4c9f (
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
class Recipe(recipe.Recipe):
name = 'librtmp'
version = '2.3'
stype = SourceType.TARBALL
btype = BuildType.MAKEFILE
url = 'http://rtmpdump.mplayerhq.hu/download/rtmpdump-2.3.tgz'
licenses = [License.LGPLv2_1]
srcdir = 'librtmp'
tarball_dirname = 'rtmpdump-%(version)s'
patches = ['0001-Fix-Makefiles-to-support-several-platforms.patch']
deps = ['gnutls', 'libgcrypt']
files_libs = ['librtmp']
files_devel = ['include/librtmp/', 'lib/pkgconfig/librtmp.pc' ]
def prepare (self):
if self.config.target_platform == Platform.WINDOWS:
system = 'mingw'
if self.config.target_platform in [Platform.DARWIN, Platform.IOS]:
system = 'darwin'
if self.config.target_platform in [Platform.LINUX, Platform.ANDROID]:
system = 'posix'
self.make = 'make SYS=%s prefix=$CERBERO_PREFIX CRYPTO=GNUTLS' % (system)
self.make_install = 'make install SYS=%s prefix=$CERBERO_PREFIX CRYPTO=GNUTLS' % (system)
def post_install(self):
deps = ['gcrypt', 'gnutls']
libtool_la = LibtoolLibrary('rtmp', 0, None, None, self.config.libdir,
self.config.target_platform, deps)
libtool_la.save()
|