summaryrefslogtreecommitdiff
path: root/recipes/proxy-libintl.recipe
blob: 7efad1bafd72d5af9d8f90fec86a394991862309 (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
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
from cerbero.tools.libtool import LibtoolLibrary

class Recipe(recipe.Recipe):
    name = 'proxy-libintl'
    version = '0.1'
    licenses = [License.LGPLv2Plus]
    stype = SourceType.TARBALL
    btype = BuildType.MESON
    url = 'https://github.com/frida/proxy-libintl/archive/%(version)s.tar.gz'
    tarball_checksum = '202d90855943091b11ac91863ff5884f0eaf80318a32dc8504fcfdafc65992ed'
    patches = [name + '/0001-libintl.h-Fix-detection-with-AM_GNU_GETTEXT.patch',
               name + '/0001-meson-Use-same-library-versioning-on-macOS-as-gettex.patch',
               name + '/0001-Rename-symbols-for-compatibility-with-gettext.patch',]

    files_libs = ['libintl']
    files_devel = [
            'include/libintl.h',
            'lib/libintl.la'
            ]

    def post_install(self):
        libtool_la = LibtoolLibrary('intl', 8, None, None, self.config.libdir,
                self.config.target_platform)
        libtool_la.save()
        super().post_install()