[2.26] branch dasher and gnome-power-manager
[jhbuild/xnox.git] / patches / nspr.pkgconfig.patch
bloba4ba9a754645431e894fdd3afa8708ea0c7041be
1 #! /bin/sh /usr/share/dpatch/dpatch-run
2 ## 30_pkgconfig.dpatch by <glandium@debian.org>
3 ##
4 ## All lines beginning with `## DP:' are a description of the patch.
5 ## DP: Generate pkgconfig file. bz#375284.
7 @DPATCH@
9 --- nspr/mozilla/nsprpub/config/Makefile.in
10 +++ nspr/mozilla/nsprpub/config/Makefile.in
11 @@ -158,3 +158,7 @@
12 install:: nspr.m4
13 $(NSINSTALL) -D $(DESTDIR)$(datadir)/aclocal
14 $(NSINSTALL) -t -m 0644 $< $(DESTDIR)$(datadir)/aclocal
16 +install:: nspr.pc
17 + $(NSINSTALL) -D $(DESTDIR)$(libdir)/pkgconfig
18 + $(NSINSTALL) -t -m 0644 $< $(DESTDIR)$(libdir)/pkgconfig
19 --- nspr/mozilla/nsprpub/config/nspr.pc.in
20 +++ nspr/mozilla/nsprpub/config/nspr.pc.in
21 @@ -0,0 +1,10 @@
22 +prefix=@prefix@
23 +exec_prefix=@exec_prefix@
24 +libdir=@libdir@
25 +includedir=@includedir@
27 +Name: NSPR
28 +Description: The Netscape Portable Runtime
29 +Version: @MOD_MAJOR_VERSION@.@MOD_MINOR_VERSION@.@MOD_PATCH_VERSION@
30 +Libs: -L@libdir@ -lplds@MOD_MAJOR_VERSION@ -lplc@MOD_MAJOR_VERSION@ -lnspr@MOD_MAJOR_VERSION@ @OS_LIBS@
31 +Cflags: -I@includedir@
32 --- nspr/mozilla/nsprpub/configure.in
33 +++ nspr/mozilla/nsprpub/configure.in
34 @@ -2766,6 +2766,7 @@
35 config/nsprincl.mk
36 config/nsprincl.sh
37 config/nspr-config
38 +config/nspr.pc
39 lib/Makefile
40 lib/ds/Makefile
41 lib/libc/Makefile