luabind: write pkg-config file
Closes Homebrew/homebrew#45721. Signed-off-by: Dominyk Tiller <dominyktiller@gmail.com>
This commit is contained in:
parent
d177b69c42
commit
fa2c2e046a
1 changed files with 16 additions and 0 deletions
|
@ -58,6 +58,22 @@ class Luabind < Formula
|
|||
end
|
||||
args << "--prefix=#{prefix}"
|
||||
system "bjam", *args
|
||||
|
||||
(lib/"pkgconfig/luabind.pc").write pc_file
|
||||
end
|
||||
|
||||
def pc_file; <<-EOS.undent
|
||||
prefix=#{HOMEBREW_PREFIX}
|
||||
exec_prefix=${prefix}
|
||||
libdir=${exec_prefix}/lib
|
||||
includedir=${exec_prefix}/include
|
||||
|
||||
Name: luabind
|
||||
Description: Library for bindings between C++ and Lua
|
||||
Version: 0.9.1
|
||||
Libs: -L${libdir} -lluabind
|
||||
Cflags: -I${includedir}
|
||||
EOS
|
||||
end
|
||||
|
||||
test do
|
||||
|
|
Loading…
Reference in a new issue