diff options
| author | Francesco Romano | 2014-04-02 16:49:43 +0200 |
|---|---|---|
| committer | Jack Nagel | 2014-04-02 20:49:48 -0500 |
| commit | 654442dcc3355fe3497e21f8548327152a6d8a8a (patch) | |
| tree | b68ea111c4cb6762dc42fa255c416341b03befbe /Library | |
| parent | d07ecc18c7db2768308fa6878c73429bb131fad6 (diff) | |
| download | homebrew-654442dcc3355fe3497e21f8548327152a6d8a8a.tar.bz2 | |
tinyxml: add pkgconfig file
Closes #28072.
Closes #28077.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/tinyxml.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Library/Formula/tinyxml.rb b/Library/Formula/tinyxml.rb index 673edae71..c9a031345 100644 --- a/Library/Formula/tinyxml.rb +++ b/Library/Formula/tinyxml.rb @@ -34,5 +34,20 @@ class Tinyxml < Formula ENV.universal_binary if build.universal? system "cmake", ".", *std_cmake_args system "make", "install" + (lib+"pkgconfig/tinyxml.pc").write pc_file + end + + def pc_file; <<-EOS.undent + prefix=#{opt_prefix} + exec_prefix=${prefix} + libdir=${exec_prefix}/lib + includedir=${prefix}/include + + Name: TinyXml + Description: Simple, small, C++ XML parser + Version: #{version} + Libs: -L${libdir} -ltinyxml + Cflags: -I${includedir} + EOS end end |
