# -*- Mode: Python -*- vi:si:et:sw=4:sts=4:ts=4:syntax=python from cerbero.tools.libtool import LibtoolLibrary class Recipe(recipe.Recipe): name = 'libffi' version = '3.2.9999' remotes = {'origin': 'https://github.com/{0}/{0}.git'.format(name)} commit = '369ef49f71186fc9d6ab15614488ad466fac3fc1' licenses = [{License.BSD_like: ['LICENSE']}] btype = BuildType.MESON patches = [name + '/libffi-port-to-meson-and-msvc.patch'] files_libs = ['libffi'] files_devel = ['include/ffi*.h', 'lib/pkgconfig/libffi.pc'] def post_install(self): libtool_la = LibtoolLibrary('ffi', 7, None, None, self.config.libdir, self.config.target_platform) libtool_la.save() super().post_install()