nspr: install pkg-config file

Some configure scripts are checking for nspr via pkg-config since most
Linux distros seem to add that to their package.

Closes Homebrew/homebrew#9705.

Note: upstream has been asked several times over the last few years to
provide pkg-config files, but nothing has come of it.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
master
Harald Fernengel 2012-01-21 15:28:28 +01:00 committed by Jack Nagel
parent 0e6c00ef36
commit d315274d42
1 changed files with 15 additions and 0 deletions

View File

@ -22,6 +22,21 @@ class Nspr < Formula
system "make"
system "make install"
(lib+'pkgconfig/nspr.pc').write pkg_file
end
end
def pkg_file; <<-EOF
prefix=#{HOMEBREW_PREFIX}
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include/nspr
Name: NSPR
Description: Netscape Portable Runtime
Version: 4.8.8
Libs: -L${libdir} -lplds4 -lplc4 -lnspr4
Cflags: -I${includedir}
EOF
end
end