From b35dde24db02ed332425ac7b3fe6cfb942c35410 Mon Sep 17 00:00:00 2001 From: Harald Fernengel Date: Sat, 21 Jan 2012 15:28:28 +0100 Subject: 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 #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 --- Library/Formula/nspr.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'Library/Formula') diff --git a/Library/Formula/nspr.rb b/Library/Formula/nspr.rb index 174a38336..92fa67915 100644 --- a/Library/Formula/nspr.rb +++ b/Library/Formula/nspr.rb @@ -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 -- cgit v1.2.3