tinyxml: add pkgconfig file

Closes Homebrew/homebrew#28072.
Closes Homebrew/homebrew#28077.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Francesco Romano 2014-04-02 16:49:43 +02:00 committed by Jack Nagel
parent 073959abdc
commit dcd74429b2

View file

@ -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