blob: 840f20049c7a99d17a5ecc9d048ae46d41e10242 (
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
|
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
class Recipe(recipe.Recipe):
name = 'a52dec'
version = '0.7.4'
stype = SourceType.TARBALL
# This URL doesn't support https, so we don't use it
#url = 'http://liba52.sourceforge.net/files/a52dec-%(version)s.tar.gz'
url = 'https://gstreamer.freedesktop.org/src/mirror/a52dec-%(version)s.tar.gz'
tarball_checksum = 'a21d724ab3b3933330194353687df82c475b5dfb997513eef4c25de6c865ec33'
licenses = [License.GPLv2Plus]
configure_options = '--with-pic --enable-shared'
# Needed on Windows because the configure script that ships with the
# tarball is ancient and outputs incorrect linker flags
autoreconf = True
files_libs = ['liba52']
files_bins = ['a52dec']
files_devel = ['include/a52dec']
def prepare(self):
if self.config.target_platform == Platform.ANDROID:
self.configure_options += ' --disable-oss'
self.append_env('CFLAGS', '-fPIC')
# Don't enable always-inline, breaks the build on windows and macos (space is significant)
self.set_env('ac_cv_c_inline', 'inline ')
|