summaryrefslogtreecommitdiff
path: root/recipes/libkate.recipe
blob: d528b037384f892d64242c92d172e09f7a6d4e15 (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
# -*- 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 = 'xiph://kate/libkate-%(version)s.tar.gz'
    tarball_checksum = 'c40e81d5866c3d4bf744e76ce0068d8f388f0e25f7e258ce0c8e76d7adc87b68'
    licenses = [{License.BSD_like: ['COPYING']}]
    deps = ['libogg', 'libpng']
    patches = ['libkate/0001-be-more-permissive-with-automake-errors-now-that-we-.patch',
               'libkate/0002-build-skip-tools-tests-and-doc-subdirs.patch']

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

    def prepare(self):
        # Tell internal script to call python3 instead of python on non-Windows
        # platforms since Python 3 is still python.exe on Windows.
        if self.config.platform != Platform.WINDOWS:
            self.append_env('PYTHON', 'python3')
        if self.config.target_distro == Distro.ARCH:
            self.append_env('LDFLAGS', '-Wl,-O1,--sort-common,--as-needed,-z,relro')