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

class Recipe(recipe.Recipe):
    name = 'ladspa'
    version = '1.15'
    licenses = [License.LGPLv2_1Plus]
    btype = BuildType.CUSTOM
    stype = SourceType.TARBALL
    url = 'https://www.ladspa.org/download/ladspa_sdk_%(version)s.tgz'
    tarball_dirname = 'ladspa_sdk_%(version)s'
    tarball_checksum = '4229959b09d20c88c8c86f4aa76427843011705df22d9c28b38359fd1829fded'

    files_devel = ['include/ladspa.h']
    library_type = LibraryType.NONE

    def install(self):
        include_path =  os.path.join(self.config.prefix, 'include')
        if not os.path.exists(include_path):
            os.makedirs(include_path)

        ladspa_h = os.path.join(self.build_dir, 'src', 'ladspa.h')
        shutil.copy(ladspa_h, include_path)