diff --git a/recipes/mecab/recipe.py b/recipes/mecab/recipe.py new file mode 100644 index 0000000..71043fc --- /dev/null +++ b/recipes/mecab/recipe.py @@ -0,0 +1,14 @@ + +from SCons.Script import * + +import os + +def cook(env: Environment, git_ref = 'master') -> dict: + repo = env.Cook('GitBranch', repo_name = 'mecab', remote_url = 'https://github.com/taku910/mecab.git', git_ref = git_ref) + checkout_root = repo['checkout_root'] + build_result = env.Cook('AutotoolsProject', os.path.join(checkout_root, 'mecab')) + return { + 'LIBPATH': build_result['LIBPATH'], + 'CPPPATH': build_result['CPPPATH'], + 'LIBS': ['mecab'] + }