214 'PKG_CONFIG_LIBDIR': "%(home_dir)s/lib/pkgconfig", |
214 'PKG_CONFIG_LIBDIR': "%(home_dir)s/lib/pkgconfig", |
215 } |
215 } |
216 install_raptor2 = gen_install_comp_lib('raptor2', 'RAPTOR2', [], redland_base_env) |
216 install_raptor2 = gen_install_comp_lib('raptor2', 'RAPTOR2', [], redland_base_env) |
217 install_rasqal = gen_install_comp_lib('rasqal', "RASQAL", [], redland_base_env) |
217 install_rasqal = gen_install_comp_lib('rasqal', "RASQAL", [], redland_base_env) |
218 install_redland = gen_install_comp_lib('redland', 'REDLAND', [], dict(redland_base_env.items() + {'CFLAGS':'-I%(home_dir)s/include'}.items())) |
218 install_redland = gen_install_comp_lib('redland', 'REDLAND', [], dict(redland_base_env.items() + {'CFLAGS':'-I%(home_dir)s/include'}.items())) |
219 install_redland_bindings = gen_install_comp_lib('redland-bindings', "REDLAND_BINDINGS", ['--with-python=%(home_dir)s/bin/python', '--with-python-ldflags=-L'+os.path.abspath(os.path.join(os.path.dirname(os.__file__),'..'))+' -lpython'+".".join(map(str,sys.version_info[0:2]))+' -Wl,-dylib'], redland_base_env) |
219 python_ld_flags = '-L'+os.path.abspath(os.path.join(os.path.dirname(os.__file__),'..'))+' -lpython'+".".join(map(str,sys.version_info[0:2])) |
|
220 if sys.platform == 'darwin': |
|
221 python_ld_flags += ' -Wl,-dylib' |
|
222 elif 'linux' in sys.platform: |
|
223 python_ld_flags += '-nostartfiles -Wl,-shared' |
|
224 install_redland_bindings = gen_install_comp_lib('redland-bindings', "REDLAND_BINDINGS", ['--with-python=%(home_dir)s/bin/python', '--with-python-ldflags='+python_ld_flags], redland_base_env) |
220 |
225 |
221 def install_pystemmer(option_str, extra_env, res_source_key, home_dir, lib_dir, tmp_dir, src_dir, res_env, logger, call_subprocess, filter_python_develop): |
226 def install_pystemmer(option_str, extra_env, res_source_key, home_dir, lib_dir, tmp_dir, src_dir, res_env, logger, call_subprocess, filter_python_develop): |
222 print "install PYSTEMMER from " + res_env.URLS['PYSTEMMER'][res_source_key] |
227 print "install PYSTEMMER from " + res_env.URLS['PYSTEMMER'][res_source_key] |
223 pystemmer_src = os.path.join(src_dir,"pystemmer.zip") |
228 pystemmer_src = os.path.join(src_dir,"pystemmer.zip") |
224 shutil.copy(res_env.URLS['PYSTEMMER'][res_source_key], pystemmer_src) |
229 shutil.copy(res_env.URLS['PYSTEMMER'][res_source_key], pystemmer_src) |