fixup install location of mapnik2.pc for pkg-config

This commit is contained in:
Dane Springmeyer 2010-07-21 01:54:50 +00:00
parent e021f27f96
commit 9800e38764

View file

@ -97,12 +97,12 @@ if 'install' in COMMAND_LINE_TARGETS:
env['create_uninstall_target'](env,os.path.join(target_path,source))
source = 'mapnik.pc'
source = 'mapnik2.pc'
open(source,'w').write(top+pkg_config)
try:
os.chmod(source,0666)
except: pass
target_path = os.path.normpath(install_prefix+'/lib/pkgconfig')
target_path = os.path.normpath(install_prefix+'/'+LIBDIR_SCHEMA+'/pkgconfig')
full_target = os.path.join(target_path,source)
env.Install(target_path,source)
env.Alias('install',target_path)