a52dec.recipe 1.07 KB
Newer Older
1
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
Andoni Morales Alastruey's avatar
Andoni Morales Alastruey committed
2
3
4
5

class Recipe(recipe.Recipe):
    name = 'a52dec'
    version = '0.7.4'
Sebastian Dröge's avatar
Sebastian Dröge committed
6
    stype = SourceType.TARBALL
7
8
9
    # 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'
10
    tarball_checksum = 'a21d724ab3b3933330194353687df82c475b5dfb997513eef4c25de6c865ec33'
11
    licenses = [License.GPLv2Plus]
12
    configure_options = '--with-pic --enable-shared'
13
    autoreconf = True
14
    patches = ['a52dec/0002-Fix-link-cross-compiling-to-x86-in-darwin-platforms.patch',
Sebastian Dröge's avatar
Sebastian Dröge committed
15
16
               'a52dec/0003-Disable-AC_C_ALWAYS_INLINE.patch',
               'a52dec/0004-configure-let-us-decide-if-we-really-want-PIC-or-not.patch']
17
18
19
20

    files_libs = ['liba52']
    files_bins = ['a52dec']
    files_devel = ['include/a52dec']
21
22

    def prepare(self):
23
24
        if self.config.target_platform == Platform.ANDROID:
            self.configure_options += ' --disable-oss'
25
        self.append_env('CFLAGS', '-fPIC')