gettext-tools.recipe 1.04 KB
Newer Older
1
2
3
4
5
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
from cerbero.utils import shell

class Recipe(recipe.Recipe):
    name = 'gettext-tools'
Sebastian Dröge's avatar
Sebastian Dröge committed
6
    version = '0.19.8.1'
7
8
    licenses = [License.GPLv3]
    srcdir = 'gettext-tools'
9
10
    stype = SourceType.TARBALL
    tarball_dirname = 'gettext-%(version)s'
Sebastian Dröge's avatar
Sebastian Dröge committed
11
    url = 'http://ftp.gnu.org/pub/gnu/gettext/gettext-0.19.8.1.tar.gz'
12
    platform_deps = {
13
            Platform.DARWIN:  ['sed'],
14
            Platform.WINDOWS: ['libiconv', 'mingw-runtime'],}
15
    configure_options = ' --disable-java --disable-csharp --disable-native-java --without-csv'
16
    patches = ['../gettext/0001-Fix-linker-error-redefinition-of-vasprintf.patch',
17
18
               '../gettext/0001-Undefine-__USE_MINGW_ANSI_STDIO-as-otherwise-stdio.h.patch',
               '../gettext/0001-Fix-build-invalid-instruction-on-macOS-10.13.patch' ]
19
20
21

    def prepare(self):
        if self.config.target_platform == Platform.WINDOWS:
22
            self.configure_options += ' --enable-threads=win32'
23
            self.append_env['LDFLAGS'] = '-liconv'