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


class Recipe(recipe.Recipe):
    name = 'gmp'
    version = '5.0.4'
    license = 'LGPL'

    files_libs = ['libgmp']
    files_devel = ['include/gmp.h']

    def prepare(self):
        # --enable-cxx must be set to enable a proper detection of the link system
        # that needs to be used (configure.in is to messy to fix it and this
        # flags solves the problem)
        # On windows this project cannot build a static and a shared library at
        # the same time, so we need to force the build of shared libraries
        if self.config.target_platform == Platform.WINDOWS:
            self.configure_options += '--enable-cxx --disable-static --enable-shared'