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

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

    files_devel = ['include/ladspa.h']

    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)