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:
parent
073959abdc
commit
dcd74429b2
1 changed files with 15 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue