summaryrefslogtreecommitdiff
path: root/recipes/libkate.recipe
blob: 80eb02a7940404a351ad30aea7ba5c7f6bf0871b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python


class Recipe(recipe.Recipe):
    name = 'libkate'
    version = '0.4.1'
    stype = SourceType.TARBALL
    url = 'https://downloads.xiph.org/releases/kate/libkate-%(version)s.tar.gz'
    tarball_checksum = 'c40e81d5866c3d4bf744e76ce0068d8f388f0e25f7e258ce0c8e76d7adc87b68'
    licenses = [License.BSD_like]
    deps = ['libogg', 'libpng']
    patches = ['libkate/0001-be-more-permissive-with-automake-errors-now-that-we-.patch']

    files_libs = ['libkate', 'liboggkate']
    files_devel = ['include/kate', 'lib/pkgconfig/kate.pc', 'lib/pkgconfig/oggkate.pc']
    autoreconf = True

    def prepare(self):
        if self.config.target_distro == Distro.ARCH:
            self.append_env('LDFLAGS', '-Wl,-O1,--sort-common,--as-needed,-z,relro')