diff options
| author | Harald Fernengel | 2012-01-21 15:28:28 +0100 |
|---|---|---|
| committer | Jack Nagel | 2012-02-01 17:23:15 -0600 |
| commit | b35dde24db02ed332425ac7b3fe6cfb942c35410 (patch) | |
| tree | 25cdf0f5fb96c9266f5fcc12793daa4b7ba3e67f /Library/Formula/nspr.rb | |
| parent | c6a548cd2acf506e421cf7bec55b87e5d055eaff (diff) | |
| download | homebrew-b35dde24db02ed332425ac7b3fe6cfb942c35410.tar.bz2 | |
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 <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/nspr.rb')
| -rw-r--r-- | Library/Formula/nspr.rb | 15 |
1 files changed, 15 insertions, 0 deletions
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 |
