summaryrefslogtreecommitdiff
path: root/recipes/libxml2.recipe
blob: 3ef8bb83756c20e0d10d5d8770ff763abb6ba582 (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
# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python


class Recipe(recipe.Recipe):
    name = 'libxml2'
    version = '2.8.0'
    licenses = [License.MIT]
    deps = [ 'zlib' ]
    platform_deps = {
            Platform.WINDOWS: ['libiconv'],
            Platform.ANDROID: ['libiconv'],
            }
    files_libs = ['libxml2']
    files_devel = ['include/libxml2', 'lib/xml2Conf.sh', 'bin/xml2-config',
                   'lib/pkgconfig/libxml-2.0.pc', 'bin/xmllint%(bext)s']


    def prepare(self):
        if self.config.target_platform == Platform.WINDOWS:
            self.configure_options = '--without-threads'
        elif self.config.target_platform == Platform.ANDROID:
            self.configure_options = '--with-python=no'
        elif self.config.target_platform == Platform.IOS:
            self.configure_options = '--with-python=no'