diff options
author | Vincent Richard <[email protected]> | 2004-12-26 11:00:58 +0000 |
---|---|---|
committer | Vincent Richard <[email protected]> | 2004-12-26 11:00:58 +0000 |
commit | 6246c532017763d498f6018e0825c45f5e15d7b0 (patch) | |
tree | 7a06aa86e77c6470c3e00d84a08543d807ccaa31 | |
parent | Import default environment. (diff) | |
download | vmime-6246c532017763d498f6018e0825c45f5e15d7b0.tar.gz vmime-6246c532017763d498f6018e0825c45f5e15d7b0.zip |
Added support for 'pkg-config'.
-rw-r--r-- | ChangeLog | 2 | ||||
-rw-r--r-- | SConstruct | 19 |
2 files changed, 21 insertions, 0 deletions
@@ -6,6 +6,8 @@ VERSION 0.6.1-cvs * Removed relative paths from #include's. + * Added support for 'pkg-config'. + 2004-12-24 Vincent Richard <[email protected]> * Renamed class 'disposition' to 'contentDisposition' and the enum @@ -298,6 +298,8 @@ def GetPackageVersion(): packageName = 'libvmime' packageVersion = GetPackageVersion() +packageRealName = 'VMime' +packageDescription = 'VMime C++ Mail Library (http://vmime.sourceforge.net)' ############# @@ -790,6 +792,23 @@ for i in range(len(libvmime_install_includes)): # Configuration header file env.Install(includeDir, 'src/config.hpp') +# Pkg-config support +vmime_pc = open('vmime.pc', 'w') + +vmime_pc.write("prefix=" + env['prefix'] + "\n") +vmime_pc.write("exec_prefix=" + env['prefix'] + "\n") +vmime_pc.write("libdir=" + env['prefix'] + "/lib\n") +vmime_pc.write("includedir=" + env['prefix'] + "/include\n") +vmime_pc.write("\n") +vmime_pc.write("Name: " + packageRealName + "\n") +vmime_pc.write("Description: " + packageDescription + "\n") +vmime_pc.write("Version: " + packageVersion + "\n") +vmime_pc.write("Requires:\n") +vmime_pc.write("Libs: -L${libdir} -lvmime-posix -lvmime\n") +vmime_pc.write("Cflags: -I${includedir}/vmime\n") + +env.Install(libDir + "/pkgconfig", "vmime.pc") + # Provide "install" target (ie. 'scons install') env.Alias('install', installPaths) |