Path: blob/develop/subprojects/packagefiles/maxima/meson.build
6378 views
project('maxima', 'c',1meson_version : '>=0.63.0',2)34mod = import('unstable-external_project')56cc = meson.get_compiler('c')7ecl = find_program('ecl', required: false)8dependencies = []9if ecl.found()10ecl = ecl.full_path()11else12ecl_proj = subproject('ecl')13ecl = ecl_proj.get_variable('ecl_dep').get_variable('ecl_bin')14# It is not possible to have an external project directly depend on another external project (actually on an InternalDependency)15# So we need to create a dummy library as the middleman16ec_lib = library('ecl_lib',17dependencies : [ecl_proj.get_variable('ecl_dep').partial_dependency(sources : true)],18)19dependencies += [ec_lib]20endif21proj = mod.add_project('configure',22configure_options : [23'--enable-ecl',24'--with-ecl=' + ecl,25'--disable-build-docs',26# Maxima configure checks for git and, if it finds it, uses27# versions information from the repo. See #15529. We disable this.28'git_found=false',29],30depends: dependencies,31)3233maxima_fas_dep = proj.dependency('maxima').partial_dependency(sources : true)34maxima_dep = declare_dependency(35variables: {36'MAXIMA_FAS': meson.current_build_dir() + '/build/src/binary-ecl/maxima.fas',37'MAXIMA_SHARE': meson.current_build_dir() + '/dist/usr/local/share/maxima/5.47.0/share',38'MAXIMA_BIN': meson.current_build_dir() + '/dist/usr/local/bin/maxima',39},40dependencies: maxima_fas_dep41)42meson.override_dependency('maxima', maxima_dep)434445