summaryrefslogtreecommitdiff
path: root/recipes/build-tools/libtool.recipe
blob: fa79510465843e05d15d61e8eab3fbd614ce93c7 (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
28
29
30
31
32
33
34
35
36
37
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python
import shutil
from cerbero.utils import shell

class Recipe(recipe.Recipe):
    name = 'libtool'
    version = '2.4.6'
    licenses = [License.GPLv2Plus]
    stype = SourceType.TARBALL
    url = 'gnu://'
    tarball_checksum = '7c87a8c2c8c0fc9cd5019e402bed4292462d00a718a7cd5f11218153bf28b26f'
    deps = ['m4']
    patches = ['libtool/0001-Add-support-for-weak_framework-linking-on-Darwin.patch',
               'libtool/0001-support-gcc-toolchain-argument.patch']

    files_bin = ['bin/libtool', 'bin/libtoolize']
    files_libs = ['libltdl']
    files_share = ['share/libtool']
    files_aclocal = [
        'share/aclocal/argz.m4',
        'share/aclocal/libtool.m4',
        'share/aclocal/ltdl.m4',
        'share/aclocal/ltoptions.m4',
        'share/aclocal/ltsugar.m4',
        'share/aclocal/ltversion.m4',
        'share/aclocal/lt~obsolete.m4']

    async def extract(self):
        if os.path.exists(self.build_dir):
            shutil.rmtree(self.build_dir)
        await super(recipe.Recipe, self).extract()

    async def configure(self):
        shell.touch(os.path.join(self.build_dir, 'doc', 'libtool.1'))
        shell.touch(os.path.join(self.build_dir, 'doc', 'libtoolize.1'))
        await super(recipe.Recipe, self).configure()