summaryrefslogtreecommitdiff
path: root/recipes/libvorbis.recipe
blob: 623e9129853f4d151331d0aa4b0c6e33b746b71e (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
from cerbero.utils import shell


class Recipe(recipe.Recipe):
    name = 'libvorbis'
    version = '1.3.6'
    stype = SourceType.TARBALL
    url = 'xiph://vorbis/libvorbis-%(version)s.tar.xz'
    tarball_checksum = 'af00bb5a784e7c9e69f56823de4637c350643deedaf333d0fa86ecdba6fcb415'
    licenses = [{License.BSD_like: ['COPYING']}]
    deps = ['libogg']

    files_libs = ['libvorbis', 'libvorbisenc', 'libvorbisfile']
    files_devel = [
        'include/vorbis', '%(libdir)s/pkgconfig/vorbis.pc',
        '%(libdir)s/pkgconfig/vorbisenc.pc', '%(libdir)s/pkgconfig/vorbisfile.pc']

    def prepare(self):
        self.append_env('LDFLAGS', '-lm')
        if self.config.target_platform != Platform.WINDOWS:
            self.autoreconf = True
            self.patches += [
                'libvorbis/0004-configure-check-for-endianness.patch',
                'libvorbis/0005-darwin-do-not-build-for-a-generic-arm-architecture.patch',
                'libvorbis/0001-build-check-if-mno-ieee-fp-is-supported.patch',
            ]